• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class GeometryPath

Represents the geometry path class used by the spreadsheet model.

Inheritance
object
GeometryPath
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
Namespace: DRIT.Spreadsheet.Drawing
Assembly: DRIT.Spreadsheet.dll
Syntax
public sealed class GeometryPath

Constructors

GeometryPath()

Represents the geometry path class used by the spreadsheet model.

Declaration
public GeometryPath()

Properties

Count

Reports the number of items currently held by GeometryPath.

Declaration
public int Count { get; }
Property Value
Type Description
int

The count returned by the operation.

Segments

Exposes the segments associated with GeometryPath.

Declaration
public IReadOnlyList<GeometryPathSegment> Segments { get; }
Property Value
Type Description
IReadOnlyList<GeometryPathSegment>

The segments returned by the operation.

Methods

ArcTo(double, double, double, double)

Exposes the arc to associated with GeometryPath.

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 arc to returned by the operation.

CloseFigure()

Exposes the close figure associated with GeometryPath.

Declaration
public GeometryPath CloseFigure()
Returns
Type Description
GeometryPath

The close figure returned by the operation.

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

The first control point X coordinate.

double control1Y

The first control point Y coordinate.

double control2X

The second control point X coordinate.

double control2Y

The second control point Y coordinate.

double x

The endpoint X coordinate.

double y

The endpoint Y coordinate.

Returns
Type Description
GeometryPath

This path.

LineTo(double, double)

Exposes the line to associated with GeometryPath.

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 line to returned by the operation.

MoveTo(double, double)

Exposes the move to associated with GeometryPath.

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 move to returned by the operation.

RemoveAt(int)

Removes the selected at from GeometryPath.

Declaration
public void RemoveAt(int index)
Parameters
Type Name Description
int index

The index used by the operation.

Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX