SceneRectangle Class

An axis-aligned rectangle.

public sealed class SceneRectangle : SceneShape
Inheritance
SceneShape SceneRectangle

Constructors

NameDescription
SceneRectangle(double, double, double, double)An axis-aligned rectangle.

SceneRectangle(double, double, double, double)

SceneRectangle.cs

An axis-aligned rectangle.

public SceneRectangle(double x, double y, double width, double height)

Parameters

x double
The left edge.
y double
The top edge.
width double
The width.
height double
The height.

Properties

NameDescription
CornerRadiusGets or sets the radius of the rounded corners.
HeightGets the height.
WidthGets the width.
XGets the left edge.
YGets the top edge.

CornerRadius

SceneRectangle.cs

Gets or sets the radius of the rounded corners.

public double CornerRadius { get; set; }

Property value

double

Gets the height.

public double Height { get; }

Property value

double

Gets the width.

public double Width { get; }

Property value

double

Gets the left edge.

public double X { get; }

Property value

double

Gets the top edge.

public double Y { get; }

Property value

double