Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Struct

OfficePathCommand

OfficeIMO.Drawing

Namespace
OfficeIMO.Drawing
Assembly
OfficeIMO.Core
Source revision
ba882f6b0d07 with working tree changes
Base
ValueType
Implements
IEquatable<OfficePathCommand>
Modifiers
sealed

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.

Accepted by parameters 10

Methods

public static OfficePathCommand Close() #

Creates a close command.

CubicBezierTo 2 overloads
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 required
control1Y double required
control2X double required
control2Y double required
endX double required
endY double required
public static OfficePathCommand CubicBezierTo(OfficePoint controlPoint1, OfficePoint controlPoint2, OfficePoint endPoint) #

Creates a cubic Bezier curve command.

Parameters

controlPoint1 OfficeIMO.Drawing.OfficePoint required
controlPoint2 OfficeIMO.Drawing.OfficePoint required
endPoint OfficeIMO.Drawing.OfficePoint required
Equals 2 overloads
public bool Equals(OfficePathCommand other) #

Indicates whether the current object is equal to another object of the same type.

Parameters

other OfficeIMO.Drawing.OfficePathCommand required
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? required
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.
LineTo 2 overloads
public static OfficePathCommand LineTo(double x, double y) #

Creates a line command.

Parameters

x double required
y double required
public static OfficePathCommand LineTo(OfficePoint point) #

Creates a line command.

Parameters

point OfficeIMO.Drawing.OfficePoint required
MoveTo 2 overloads
public static OfficePathCommand MoveTo(double x, double y) #

Creates a move command.

Parameters

x double required
y double required
public static OfficePathCommand MoveTo(OfficePoint point) #

Creates a move command.

Parameters

point OfficeIMO.Drawing.OfficePoint required
public static bool op_Equality(OfficePathCommand left, OfficePathCommand right) #

Compares two path commands for equality.

Parameters

left OfficeIMO.Drawing.OfficePathCommand required
right OfficeIMO.Drawing.OfficePathCommand required

Returns

bool
public static bool op_Inequality(OfficePathCommand left, OfficePathCommand right) #

Compares two path commands for inequality.

Parameters

left OfficeIMO.Drawing.OfficePathCommand required
right OfficeIMO.Drawing.OfficePathCommand required

Returns

bool
QuadraticBezierTo 2 overloads
public static OfficePathCommand QuadraticBezierTo(double controlX, double controlY, double endX, double endY) #

Creates a quadratic Bezier curve command.

Parameters

controlX double required
controlY double required
endX double required
endY double required
public static OfficePathCommand QuadraticBezierTo(OfficePoint controlPoint, OfficePoint endPoint) #

Creates a quadratic Bezier curve command.

Parameters

controlPoint OfficeIMO.Drawing.OfficePoint required
endPoint OfficeIMO.Drawing.OfficePoint required

Properties

public OfficePathCommandKind Kind { get; } #

Command type.

public OfficePoint Point { get; } #

Primary point. For Bezier commands this is the end point.

public OfficePoint ControlPoint1 { get; } #

First Bezier control point.

public OfficePoint ControlPoint2 { get; } #

Second cubic Bezier control point.