Class Rectangle
Draws a rectangle shape, which can have a stroke and a fill.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Shapes
Assembly: OpenSilver.dll
Syntax
public class Rectangle : Shape, IFrameworkElement, IUIElement, IDependencyObject
Constructors
| Improve this Doc View SourceRectangle()
Initializes a new instance of the Rectangle class.
Declaration
public Rectangle()
Fields
| Improve this Doc View SourceRadiusXProperty
Identifies the RadiusX dependency property.
Declaration
public static readonly DependencyProperty RadiusXProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
RadiusYProperty
Identifies the RadiusY dependency property.
Declaration
public static readonly DependencyProperty RadiusYProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceRadiusX
Gets or sets the x-axis radius of the ellipse that is used to round the corners of the rectangle.
Declaration
public double RadiusX { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The x-axis radius of the ellipse that is used to round the corners of the rectangle. |
RadiusY
Gets or sets the y-axis radius of the ellipse that is used to round the corners of the rectangle.
Declaration
public double RadiusY { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The y-axis radius of the ellipse that is used to round the corners of the rectangle. The default 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 SourceMeasureOverride(Size)
Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
Type | Name | Description |
---|---|---|
Size | availableSize |
Returns
Type | Description |
---|---|
Size |