PathCommand Struct

A command of a PathData. The fields that do not apply to its kind are 0.

public readonly struct PathCommand : IEquatable<PathCommand>
Implements

Constructors

NameDescription
PathCommand(PathCommandKind, double, double, double, double, double, double, bool, bool)A command of a PathData. The fields that do not apply to its kind are 0.

PathCommand(PathCommandKind, double, double, double, double, double, double, bool, bool)

A command of a PathData. The fields that do not apply to its kind are 0.

public PathCommand(PathCommandKind Kind, double X, double Y, double X1 = 0d, double Y1 = 0d, double X2 = 0d, double Y2 = 0d, bool LargeArc = false, bool Sweep = false)

Parameters

Kind PathCommandKind
The kind of the command.
X double
The x coordinate of the end point.
Y double
The y coordinate of the end point.
X1 double
The x coordinate of the first control point, or the x radius of an arc.
Y1 double
The y coordinate of the first control point, or the y radius of an arc.
X2 double
The x coordinate of the second control point, or the rotation of an arc in degrees.
Y2 double
The y coordinate of the second control point.
LargeArc bool
For an arc, whether it is the larger of the two candidate arcs.
Sweep bool
For an arc, whether it is drawn clockwise.

Properties

NameDescription
KindThe kind of the command.
LargeArcFor an arc, whether it is the larger of the two candidate arcs.
SweepFor an arc, whether it is drawn clockwise.
XThe x coordinate of the end point.
X1The x coordinate of the first control point, or the x radius of an arc.
X2The x coordinate of the second control point, or the rotation of an arc in degrees.
YThe y coordinate of the end point.
Y1The y coordinate of the first control point, or the y radius of an arc.
Y2The y coordinate of the second control point.

The kind of the command.

public PathCommandKind Kind { get; init; }

Property value

PathCommandKind

For an arc, whether it is the larger of the two candidate arcs.

public bool LargeArc { get; init; }

Property value

bool

For an arc, whether it is drawn clockwise.

public bool Sweep { get; init; }

Property value

bool

The x coordinate of the end point.

public double X { get; init; }

Property value

double

The x coordinate of the first control point, or the x radius of an arc.

public double X1 { get; init; }

Property value

double

The x coordinate of the second control point, or the rotation of an arc in degrees.

public double X2 { get; init; }

Property value

double

The y coordinate of the end point.

public double Y { get; init; }

Property value

double

The y coordinate of the first control point, or the y radius of an arc.

public double Y1 { get; init; }

Property value

double

The y coordinate of the second control point.

public double Y2 { get; init; }

Property value

double

Methods

NameDescription
Deconstruct(PathCommandKind, double, double, double, double, double, double, bool, bool)
Equals(PathCommand)
Equals(object)
GetHashCode()
ToString()

Deconstruct(PathCommandKind, double, double, double, double, double, double, bool, bool)

public void Deconstruct(out PathCommandKind Kind, out double X, out double Y, out double X1, out double Y1, out double X2, out double Y2, out bool LargeArc, out bool Sweep)

Parameters

Kind PathCommandKind
X double
Y double
X1 double
Y1 double
X2 double
Y2 double
LargeArc bool
Sweep bool

No documentation is available.

Equals overloads

Equals(PathCommand)

public bool Equals(PathCommand other)
Parameters
other PathCommand
Returns

bool

No documentation is available.

Equals(object)

public override bool Equals(object obj)
Parameters
obj object
Returns

bool

No documentation is available.

GetHashCode()

public override int GetHashCode()

Returns

int

No documentation is available.

ToString()

public override string ToString()

Returns

string

No documentation is available.

Operators

NameDescription
operator ==(PathCommand, PathCommand)
operator !=(PathCommand, PathCommand)

operator ==(PathCommand, PathCommand)

public static bool operator ==(PathCommand left, PathCommand right)

Parameters

left PathCommand
right PathCommand

Returns

bool

No documentation is available.

operator !=(PathCommand, PathCommand)

public static bool operator !=(PathCommand left, PathCommand right)

Parameters

left PathCommand
right PathCommand

Returns

bool

No documentation is available.