OfficePathCommand
OfficeIMO.Drawing
Dependency-free path command used by shared drawing descriptors. Coordinates are expressed in the path's local top-left coordinate space.
Inheritance
- ValueType
- OfficePathCommand
Usage
Explore 17 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 7
- Property OfficeClipPath.Commands
- Method OfficePathCommand.Close
- Method OfficePathCommand.CubicBezierTo
- Method OfficePathCommand.LineTo
- Method OfficePathCommand.MoveTo
- Method OfficePathCommand.QuadraticBezierTo
- Property OfficeShape.PathCommands
Accepted by parameters 10
- Method OfficeClipPath.Path
- Method OfficePathCommand.Equals
- Method OfficePathCommand.op_Equality
- Method OfficePathCommand.op_Equality
- Method OfficePathCommand.op_Inequality
- Method OfficePathCommand.op_Inequality
- Method OfficeShape.Path
- Method OfficeSvgFormatting.AppendPathData
- Method OfficeSvgFormatting.AppendPathElement
- Method OfficeSvgFormatting.FormatPathData
Methods
public static OfficePathCommand CubicBezierTo(double control1X, double control1Y, double control2X, double control2Y, double endX, double endY) #Creates a cubic Bezier curve command.
Parameters
- control1X double
- control1Y double
- control2X double
- control2Y double
- endX double
- endY double
Returns
OfficePathCommandpublic static OfficePathCommand CubicBezierTo(OfficePoint controlPoint1, OfficePoint controlPoint2, OfficePoint endPoint) #Creates a cubic Bezier curve command.
Parameters
- controlPoint1 OfficeIMO.Drawing.OfficePoint
- controlPoint2 OfficeIMO.Drawing.OfficePoint
- endPoint OfficeIMO.Drawing.OfficePoint
Returns
OfficePathCommandpublic bool Equals(OfficePathCommand other) #Indicates whether the current object is equal to another object of the same type.
Parameters
- other OfficeIMO.Drawing.OfficePathCommand
- An object to compare with this object.
Returns
bool true if the current object is equal to the other parameter; otherwise, false.public override bool Equals(object? obj) #Indicates whether this instance and a specified object are equal.
Parameters
- obj object?
- The object to compare with the current instance.
Returns
bool true if obj and this instance are the same type and represent the same value; otherwise, false.public override int GetHashCode() #Returns the hash code for this instance.
Returns
int A 32-bit signed integer that is the hash code for this instance.public static OfficePathCommand LineTo(double x, double y) #Creates a line command.
Parameters
- x double
- y double
Returns
OfficePathCommandpublic static OfficePathCommand LineTo(OfficePoint point) #Creates a line command.
Parameters
- point OfficeIMO.Drawing.OfficePoint
Returns
OfficePathCommandpublic static OfficePathCommand MoveTo(double x, double y) #Creates a move command.
Parameters
- x double
- y double
Returns
OfficePathCommandpublic static OfficePathCommand MoveTo(OfficePoint point) #Creates a move command.
Parameters
- point OfficeIMO.Drawing.OfficePoint
Returns
OfficePathCommandpublic static bool op_Equality(OfficePathCommand left, OfficePathCommand right) #Compares two path commands for equality.
Parameters
- left OfficeIMO.Drawing.OfficePathCommand
- right OfficeIMO.Drawing.OfficePathCommand
Returns
boolpublic static bool op_Inequality(OfficePathCommand left, OfficePathCommand right) #Compares two path commands for inequality.
Parameters
- left OfficeIMO.Drawing.OfficePathCommand
- right OfficeIMO.Drawing.OfficePathCommand
Returns
boolpublic static OfficePathCommand QuadraticBezierTo(double controlX, double controlY, double endX, double endY) #Creates a quadratic Bezier curve command.
Parameters
- controlX double
- controlY double
- endX double
- endY double
Returns
OfficePathCommandpublic static OfficePathCommand QuadraticBezierTo(OfficePoint controlPoint, OfficePoint endPoint) #Creates a quadratic Bezier curve command.
Parameters
- controlPoint OfficeIMO.Drawing.OfficePoint
- endPoint OfficeIMO.Drawing.OfficePoint
Returns
OfficePathCommand