Class EllipseGeometry
Implements Ellipse geometry generation (fill and stroke)
Inherited Members
Namespace: EmptyKeys.UserInterface.Media
Assembly: EmptyKeys.UserInterface.dll
Syntax
public class EllipseGeometry : Geometry
Constructors
EllipseGeometry()
Initializes a new instance of the EllipseGeometry class.
Declaration
public EllipseGeometry()
EllipseGeometry(PointF, Single, Single)
Initializes a new instance of the EllipseGeometry class.
Declaration
public EllipseGeometry(PointF center, float radiusX, float radiusY)
Parameters
Type | Name | Description |
---|---|---|
EmptyKeys.UserInterface.PointF | center | The center. |
System.Single | radiusX | The radius x. |
System.Single | radiusY | The radius y. |
EllipseGeometry(Rect)
Initializes a new instance of the EllipseGeometry class.
Declaration
public EllipseGeometry(Rect rect)
Parameters
Type | Name | Description |
---|---|---|
EmptyKeys.UserInterface.Rect | rect | The rect. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Rectangle is empty.;rect |
Fields
CenterProperty
The center property
Declaration
public static readonly DependencyProperty CenterProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
RadiusXProperty
The radius x property
Declaration
public static readonly DependencyProperty RadiusXProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
RadiusYProperty
The radius y property
Declaration
public static readonly DependencyProperty RadiusYProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
Bounds
Gets the bounds.
Declaration
public override Rect Bounds { get; }
Property Value
Type | Description |
---|---|
EmptyKeys.UserInterface.Rect | The bounds. |
Overrides
Center
Gets or sets the center.
Declaration
public PointF Center { get; set; }
Property Value
Type | Description |
---|---|
EmptyKeys.UserInterface.PointF | The center. |
RadiusX
Gets or sets the radius x.
Declaration
public float RadiusX { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The radius x. |
RadiusY
Gets or sets the radius y.
Declaration
public float RadiusY { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The radius y. |
Methods
Contains(PointF)
Determines whether [contains] [the specified local point].
Declaration
public override bool Contains(PointF localPoint)
Parameters
Type | Name | Description |
---|---|---|
EmptyKeys.UserInterface.PointF | localPoint | The local point. |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
GetFillGeometryData(Single, out GeometryPrimitiveType)
Gets the fill geometry data.
Declaration
public override List<PointF> GetFillGeometryData(float strokeThickness, out GeometryPrimitiveType primitiveType)
Parameters
Type | Name | Description |
---|---|---|
System.Single | strokeThickness | The stroke thickness. |
EmptyKeys.UserInterface.Media.GeometryPrimitiveType | primitiveType |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<EmptyKeys.UserInterface.PointF> |
Overrides
GetStrokeGeometryData(Single, out GeometryPrimitiveType)
Gets the stroke geometry data.
Declaration
public override List<PointF> GetStrokeGeometryData(float thickness, out GeometryPrimitiveType primitiveType)
Parameters
Type | Name | Description |
---|---|---|
System.Single | thickness | The thickness. |
EmptyKeys.UserInterface.Media.GeometryPrimitiveType | primitiveType |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<EmptyKeys.UserInterface.PointF> |
Overrides
IsEmpty()
Determines whether this instance is empty.
Declaration
public override bool IsEmpty()
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
MayHaveCurves()
Mays the have curves, like rounded corners etc.
Declaration
public override bool MayHaveCurves()
Returns
Type | Description |
---|---|
System.Boolean |