Struct LineTo
A "line to" drawing command: draws a straight line from the current point to (X, Y). Coordinates are in font design units.
Inherited Members
Namespace: DRIT.Drawing.Font.Rendering
Assembly: DRIT.Drawing.dll
Syntax
public readonly struct LineTo
Constructors
LineTo(double, double)
Initializes a new LineTo with the specified coordinates.
Declaration
public LineTo(double x, double y)
Parameters
| Type | Name | Description |
|---|---|---|
| double | x | The X coordinate. |
| double | y | The Y coordinate. |
Properties
X
Gets the X coordinate of the line-to point.
Declaration
public double X { get; }
Property Value
| Type | Description |
|---|---|
| double |
Y
Gets the Y coordinate of the line-to point.
Declaration
public double Y { get; }
Property Value
| Type | Description |
|---|---|
| double |
Methods
ToString()
Returns a string representation of this LineTo.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | A string in the format "LineTo(x, y)". |