WPF-FrameworkElement-Shape

#region 程序集 PresentationFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
// C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\10.0.9\ref\net10.0\PresentationFramework.dll
#endregion

using System.ComponentModel;
using System.Windows.Media;

namespace System.Windows.Shapes
{
    //
    // 摘要:
    //     Provides a base class for shape elements, such as System.Windows.Shapes.Ellipse,
    //     System.Windows.Shapes.Polygon, and System.Windows.Shapes.Rectangle.
    [Localizability(LocalizationCategory.None, Readability = Readability.Unreadable)]
    public abstract class Shape : FrameworkElement
    {
        //
        // 摘要:
        //     Identifies the System.Windows.Shapes.Shape.Fill dependency property. This field
        //     is read-only.
        public static readonly DependencyProperty FillProperty;
        //
        // 摘要:
        //     Identifies the System.Windows.Shapes.Shape.StrokeThickness dependency property.
        public static readonly DependencyProperty StrokeThicknessProperty;
        //
        // 摘要:
        //     Identifies the System.Windows.Shapes.Shape.Stroke dependency property.
        public static readonly DependencyProperty StrokeProperty;
        //
        // 摘要:
        //     Identifies the System.Windows.Shapes.Shape.StrokeMiterLimit dependency property.
        public static readonly DependencyProperty StrokeMiterLimitProperty;
        //
        // 摘要:
        //     Identifies the System.Windows.Shapes.Shape.StrokeLineJoin dependency property.
        public static readonly DependencyProperty StrokeLineJoinProperty;
        //
        // 摘要:
        //     Identifies the System.Windows.Shapes.Shape.StrokeStartLineCap dependency property.
        public static readonly DependencyProperty StrokeStartLineCapProperty;
        //
        // 摘要:
        //     Identifies the System.Windows.Shapes.Shape.StrokeDashOffset dependency property.
        public static readonly DependencyProperty StrokeDashOffsetProperty;
        //
        // 摘要:
        //     Identifies the System.Windows.Shapes.Shape.StrokeDashCap dependency property.
        public static readonly DependencyProperty StrokeDashCapProperty;
        //
        // 摘要:
        //     Identifies the System.Windows.Shapes.Shape.StrokeDashArray dependency property.
        public static readonly DependencyProperty StrokeDashArrayProperty;
        //
        // 摘要:
        //     Identifies the System.Windows.Shapes.Shape.Stretch dependency property.
        public static readonly DependencyProperty StretchProperty;
        //
        // 摘要:
        //     Identifies the System.Windows.Shapes.Shape.StrokeEndLineCap dependency property.
        public static readonly DependencyProperty StrokeEndLineCapProperty;

        //
        // 摘要:
        //     Initializes a new instance of the System.Windows.Shapes.Shape class.
        protected Shape();

        //
        // 摘要:
        //     Gets or sets a collection of System.Double values that indicate the pattern of
        //     dashes and gaps that is used to outline shapes.
        //
        // 返回结果:
        //     A collection of System.Double values that specify the pattern of dashes and gaps.
        public DoubleCollection StrokeDashArray { get; set; }
        //
        // 摘要:
        //     Gets or sets a limit on the ratio of the miter length to half the System.Windows.Shapes.Shape.StrokeThickness
        //     of a System.Windows.Shapes.Shape element.
        //
        // 返回结果:
        //     The limit on the ratio of the miter length to the System.Windows.Shapes.Shape.StrokeThickness
        //     of a System.Windows.Shapes.Shape element. This value is always a positive number
        //     that is greater than or equal to 1.
        public double StrokeMiterLimit { get; set; }
        //
        // 摘要:
        //     Gets or sets a System.Windows.Media.PenLineJoin enumeration value that specifies
        //     the type of join that is used at the vertices of a System.Windows.Shapes.Shape.
        //
        //
        // 返回结果:
        //     One of the enumeration values for System.Windows.Media.PenLineJoin
        public PenLineJoin StrokeLineJoin { get; set; }
        //
        // 摘要:
        //     Gets or sets a System.Windows.Media.PenLineCap enumeration value that describes
        //     the System.Windows.Shapes.Shape at the end of a line.
        //
        // 返回结果:
        //     One of the enumeration values for System.Windows.Media.PenLineCap. The default
        //     is System.Windows.Media.PenLineCap.Flat.
        public PenLineCap StrokeEndLineCap { get; set; }
        //
        // 摘要:
        //     Gets or sets a System.Double that specifies the distance within the dash pattern
        //     where a dash begins.
        //
        // 返回结果:
        //     A System.Double that represents the distance within the dash pattern where a
        //     dash begins.
        public double StrokeDashOffset { get; set; }
        //
        // 摘要:
        //     Gets or sets a System.Windows.Media.PenLineCap enumeration value that specifies
        //     how the ends of a dash are drawn.
        //
        // 返回结果:
        //     One of the enumeration values for System.Windows.Media.PenLineCap. The default
        //     is System.Windows.Media.PenLineCap.Flat.
        public PenLineCap StrokeDashCap { get; set; }
        //
        // 摘要:
        //     Gets or sets the System.Windows.Media.Brush that specifies how the System.Windows.Shapes.Shape
        //     outline is painted.
        //
        // 返回结果:
        //     A System.Windows.Media.Brush that specifies how the System.Windows.Shapes.Shape
        //     outline is painted. The default is null.
        public Brush Stroke { get; set; }
        //
        // 摘要:
        //     Gets or sets the width of the System.Windows.Shapes.Shape outline.
        //
        // 返回结果:
        //     The width of the System.Windows.Shapes.Shape outline.
        [TypeConverter(typeof(LengthConverter))]
        public double StrokeThickness { get; set; }
        //
        // 摘要:
        //     Gets a value that represents the final rendered System.Windows.Media.Geometry
        //     of a System.Windows.Shapes.Shape.
        //
        // 返回结果:
        //     The final rendered System.Windows.Media.Geometry of a System.Windows.Shapes.Shape.
        public virtual Geometry RenderedGeometry { get; }
        //
        // 摘要:
        //     Gets a value that represents a System.Windows.Media.Transform that is applied
        //     to the geometry of a System.Windows.Shapes.Shape prior to when it is drawn.
        //
        // 返回结果:
        //     A System.Windows.Media.Transform that is applied to the geometry of a System.Windows.Shapes.Shape
        //     prior to when it is drawn.
        public virtual Transform GeometryTransform { get; }
        //
        // 摘要:
        //     Gets or sets the System.Windows.Media.Brush that specifies how the shape's interior
        //     is painted.
        //
        // 返回结果:
        //     A System.Windows.Media.Brush that describes how the shape's interior is painted.
        //     The default is null.
        public Brush Fill { get; set; }
        //
        // 摘要:
        //     Gets or sets a System.Windows.Media.PenLineCap enumeration value that describes
        //     the System.Windows.Shapes.Shape at the start of a System.Windows.Shapes.Shape.Stroke.
        //
        //
        // 返回结果:
        //     One of the System.Windows.Media.PenLineCap enumeration values. The default is
        //     System.Windows.Media.PenLineCap.Flat.
        public PenLineCap StrokeStartLineCap { get; set; }
        //
        // 摘要:
        //     Gets or sets a System.Windows.Media.Stretch enumeration value that describes
        //     how the shape fills its allocated space.
        //
        // 返回结果:
        //     One of the System.Windows.Media.Stretch enumeration values.
        public Stretch Stretch { get; set; }
        //
        // 摘要:
        //     Gets a value that represents the System.Windows.Media.Geometry of the System.Windows.Shapes.Shape.
        //
        //
        // 返回结果:
        //     The System.Windows.Media.Geometry of the System.Windows.Shapes.Shape.
        protected abstract Geometry DefiningGeometry { get; }

        //
        // 摘要:
        //     Arranges a System.Windows.Shapes.Shape by evaluating its System.Windows.Shapes.Shape.RenderedGeometry
        //     and System.Windows.Shapes.Shape.Stretch properties.
        //
        // 参数:
        //   finalSize:
        //     The final evaluated size of the System.Windows.Shapes.Shape.
        //
        // 返回结果:
        //     The final size of the arranged System.Windows.Shapes.Shape element.
        protected override Size ArrangeOverride(Size finalSize);
        //
        // 摘要:
        //     Measures a System.Windows.Shapes.Shape during the first layout pass prior to
        //     arranging it.
        //
        // 参数:
        //   constraint:
        //     A maximum System.Windows.Size to not exceed.
        //
        // 返回结果:
        //     The maximum System.Windows.Size for the System.Windows.Shapes.Shape.
        protected override Size MeasureOverride(Size constraint);
        //
        // 摘要:
        //     Provides a means to change the default appearance of a System.Windows.Shapes.Shape
        //     element.
        //
        // 参数:
        //   drawingContext:
        //     A System.Windows.Media.DrawingContext object that is drawn during the rendering
        //     pass of this System.Windows.Shapes.Shape.
        protected override void OnRender(DrawingContext drawingContext);
    }
}

image

 

posted @ 2026-06-15 13:14  Tony.Jia  阅读(5)  评论(0)    收藏  举报