Class GeometryPath
Represents a GeometryPath.
Inherited Members
Namespace: DRIT.Document.Drawing
Assembly: DRIT.Document.dll
Syntax
public sealed class GeometryPath
Properties
CoordinateHeight
Gets the height of the custom path coordinate space in points.
Declaration
public double CoordinateHeight { get; }
Property Value
| Type | Description |
|---|---|
| double |
CoordinateWidth
Gets the width of the custom path coordinate space in points.
Declaration
public double CoordinateWidth { get; }
Property Value
| Type | Description |
|---|---|
| double |
Count
Gets count.
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| int |
Segments
Gets segments.
Declaration
public IReadOnlyList<GeometryPathSegment> Segments { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<GeometryPathSegment> |
Methods
ArcTo(double, double, double, double)
Provides the arc To behavior for this object.
Declaration
public GeometryPath ArcTo(double widthRadius, double heightRadius, double startAngle, double sweepAngle)
Parameters
| Type | Name | Description |
|---|---|---|
| double | widthRadius | The width Radius used by the operation. |
| double | heightRadius | The height Radius used by the operation. |
| double | startAngle | The start Angle used by the operation. |
| double | sweepAngle | The sweep Angle used by the operation. |
Returns
| Type | Description |
|---|---|
| GeometryPath | The resulting value. |
CloseFigure()
Provides the close Figure behavior for this object.
Declaration
public GeometryPath CloseFigure()
Returns
| Type | Description |
|---|---|
| GeometryPath | The resulting value. |
CubicBezierTo(double, double, double, double, double, double)
Adds a cubic Bezier segment to the path.
Declaration
public GeometryPath CubicBezierTo(double control1X, double control1Y, double control2X, double control2Y, double x, double y)
Parameters
| Type | Name | Description |
|---|---|---|
| double | control1X | |
| double | control1Y | |
| double | control2X | |
| double | control2Y | |
| double | x | |
| double | y |
Returns
| Type | Description |
|---|---|
| GeometryPath |
LineTo(double, double)
Provides the line To behavior for this object.
Declaration
public GeometryPath LineTo(double x, double y)
Parameters
| Type | Name | Description |
|---|---|---|
| double | x | The x used by the operation. |
| double | y | The y used by the operation. |
Returns
| Type | Description |
|---|---|
| GeometryPath | The resulting value. |
MoveTo(double, double)
Provides the move To behavior for this object.
Declaration
public GeometryPath MoveTo(double x, double y)
Parameters
| Type | Name | Description |
|---|---|---|
| double | x | The x used by the operation. |
| double | y | The y used by the operation. |
Returns
| Type | Description |
|---|---|
| GeometryPath | The resulting value. |
QuadraticBezierTo(double, double, double, double)
Adds a quadratic Bezier segment to the path.
Declaration
public GeometryPath QuadraticBezierTo(double controlX, double controlY, double x, double y)
Parameters
| Type | Name | Description |
|---|---|---|
| double | controlX | |
| double | controlY | |
| double | x | |
| double | y |
Returns
| Type | Description |
|---|---|
| GeometryPath |
RemoveAt(int)
Removes an item from this collection.
Declaration
public void RemoveAt(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The zero-based index of the item. |