Class Shape
Inheritance
Inherited Members
Namespace: System.Windows.Shapes
Assembly: OpenSilver.dll
Syntax
public abstract class Shape : FrameworkElement, IFrameworkElement, IUIElement, IDependencyObject
Constructors
| Improve this Doc View SourceShape()
Initializes a new instance of the Shape class.
Declaration
protected Shape()
Fields
| Improve this Doc View SourceFillProperty
Identifies the Fill dependency property.
Declaration
public static readonly DependencyProperty FillProperty
Field Value
Type | Description |
---|---|
Dependency |
StretchProperty
Identifies the Stretch dependency property.
Declaration
public static readonly DependencyProperty StretchProperty
Field Value
Type | Description |
---|---|
Dependency |
StrokeDashArrayProperty
Identifies the Stroke
Declaration
public static readonly DependencyProperty StrokeDashArrayProperty
Field Value
Type | Description |
---|---|
Dependency |
StrokeDashCapProperty
Identifies the Stroke
Declaration
public static readonly DependencyProperty StrokeDashCapProperty
Field Value
Type | Description |
---|---|
Dependency |
StrokeDashOffsetProperty
Identifies the Stroke
Declaration
public static readonly DependencyProperty StrokeDashOffsetProperty
Field Value
Type | Description |
---|---|
Dependency |
StrokeEndLineCapProperty
Identifies the Stroke
Declaration
[NotImplemented]
public static readonly DependencyProperty StrokeEndLineCapProperty
Field Value
Type | Description |
---|---|
Dependency |
StrokeLineJoinProperty
Identifies the Stroke
Declaration
public static readonly DependencyProperty StrokeLineJoinProperty
Field Value
Type | Description |
---|---|
Dependency |
StrokeMiterLimitProperty
Identifies the Stroke
Declaration
public static readonly DependencyProperty StrokeMiterLimitProperty
Field Value
Type | Description |
---|---|
Dependency |
StrokeProperty
Identifies the Stroke dependency property.
Declaration
public static readonly DependencyProperty StrokeProperty
Field Value
Type | Description |
---|---|
Dependency |
StrokeStartLineCapProperty
Identifies the Stroke
Declaration
[NotImplemented]
public static readonly DependencyProperty StrokeStartLineCapProperty
Field Value
Type | Description |
---|---|
Dependency |
StrokeThicknessProperty
Identifies the Stroke
Declaration
public static readonly DependencyProperty StrokeThicknessProperty
Field Value
Type | Description |
---|---|
Dependency |
Properties
| Improve this Doc View SourceFill
Gets or sets the Brush that specifies how to paint the interior of the shape.
Declaration
public Brush Fill { get; set; }
Property Value
Type | Description |
---|---|
Brush | A Brush that describes how the shape's interior is painted. The default is null. |
GeometryTransform
Gets a value that represents a Transform that is applied to the geometry of a Shape prior to when it is drawn.
Declaration
public virtual Transform GeometryTransform { get; }
Property Value
Type | Description |
---|---|
Transform | A Transform that is applied to the geometry of a Shape prior to when it is drawn. |
Stretch
Gets or sets a Stretch enumeration value that describes how the shape fills its allocated space.
Declaration
public Stretch Stretch { get; set; }
Property Value
Type | Description |
---|---|
Stretch | One of the Stretch enumeration values. The default value at run time depends on the type of Shape. |
Stroke
Declaration
public Brush Stroke { get; set; }
Property Value
Type | Description |
---|---|
Brush | A Brush that specifies how the Shape outline is painted. The default is null. |
StrokeDashArray
Gets or sets a collection of System.
Declaration
public DoubleCollection StrokeDashArray { get; set; }
Property Value
Type | Description |
---|---|
Double |
A collection of System. |
StrokeDashCap
Gets or sets a Pen
Declaration
public PenLineCap StrokeDashCap { get; set; }
Property Value
Type | Description |
---|---|
Pen |
One of the enumeration values for Pen |
StrokeDashOffset
Gets or sets a System.
Declaration
public double StrokeDashOffset { get; set; }
Property Value
Type | Description |
---|---|
System. |
A System. |
StrokeEndLineCap
Gets or sets a Pen
Declaration
[NotImplemented]
public PenLineCap StrokeEndLineCap { get; set; }
Property Value
Type | Description |
---|---|
Pen |
One of the enumeration values for Pen |
StrokeLineJoin
Gets or sets a Pen
Declaration
public PenLineJoin StrokeLineJoin { get; set; }
Property Value
Type | Description |
---|---|
Pen |
A value of the Pen |
StrokeMiterLimit
Gets or sets a limit on the ratio of the miter length to half the
Stroke
Declaration
public double StrokeMiterLimit { get; set; }
Property Value
Type | Description |
---|---|
System. |
The limit on the ratio of the miter length to the Stroke |
StrokeStartLineCap
Gets or sets a Pen
Declaration
[NotImplemented]
public PenLineCap StrokeStartLineCap { get; set; }
Property Value
Type | Description |
---|---|
Pen |
A value of the Pen |
StrokeThickness
Gets or sets the width of the Shape stroke outline.
Declaration
public double StrokeThickness { get; set; }
Property Value
Type | Description |
---|---|
System. |
The width of the Shape outline, in pixels. The default value is 0. |
Methods
| Improve this Doc View SourceArrangeOverride(Size)
Declaration
protected override Size ArrangeOverride(Size finalSize)
Parameters
Type | Name | Description |
---|---|---|
Size | finalSize |
Returns
Type | Description |
---|---|
Size |
Overrides
| Improve this Doc View SourceCreateDomElement(Object, out Object)
Declaration
public sealed override object CreateDomElement(object parentRef, out object domElementWhereToPlaceChildren)
Parameters
Type | Name | Description |
---|---|---|
System. |
parentRef | |
System. |
domElementWhereToPlaceChildren |
Returns
Type | Description |
---|---|
System. |
Overrides
| Improve this Doc View SourceINTERNAL_OnDetachedFromVisualTree()
Declaration
protected sealed override void INTERNAL_OnDetachedFromVisualTree()
Overrides
| Improve this Doc View SourceMeasureOverride(Size)
Declaration
protected override Size MeasureOverride(Size constraint)
Parameters
Type | Name | Description |
---|---|---|
Size | constraint |
Returns
Type | Description |
---|---|
Size |