Class LineGeometry
Implements line geometry
Inherited Members
Namespace: EmptyKeys.UserInterface.Media
Assembly: EmptyKeys.UserInterface.dll
Syntax
public class LineGeometry : Geometry
Constructors
LineGeometry()
Initializes a new instance of the LineGeometry class.
Declaration
public LineGeometry()
LineGeometry(PointF, PointF)
Initializes a new instance of the LineGeometry class.
Declaration
public LineGeometry(PointF startPoint, PointF endPoint)
Parameters
Type | Name | Description |
---|---|---|
EmptyKeys.UserInterface.PointF | startPoint | The start point. |
EmptyKeys.UserInterface.PointF | endPoint | The end point. |
Fields
EndPointProperty
The end point property
Declaration
public static readonly DependencyProperty EndPointProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
StartPointProperty
The start point property
Declaration
public static readonly DependencyProperty StartPointProperty
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
EndPoint
Gets or sets the end point.
Declaration
public PointF EndPoint { get; set; }
Property Value
Type | Description |
---|---|
EmptyKeys.UserInterface.PointF | The end point. |
StartPoint
Gets or sets the start point.
Declaration
public PointF StartPoint { get; set; }
Property Value
Type | Description |
---|---|
EmptyKeys.UserInterface.PointF | The start point. |
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 | Type of the primitive. |
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 | Type of the primitive. |
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 |