Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Struct

OfficeInkPoint

OfficeIMO.Drawing

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

A sampled point in a format-neutral ink stroke.

Inheritance

  • ValueType
  • OfficeInkPoint

Usage

Explore 9 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 2

Accepted by parameters 7

Constructors

public OfficeInkPoint(double x, double y, double? pressure = null, double? tiltX = null, double? tiltY = null, TimeSpan? timestamp = null) #

Creates an ink sample.

Parameters

x double required
y double required
pressure double? = null optional
tiltX double? = null optional
tiltY double? = null optional
timestamp System.TimeSpan? = null optional

Methods

Equals 2 overloads
public bool Equals(OfficeInkPoint other) #

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

Parameters

other OfficeIMO.Drawing.OfficeInkPoint 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.
public static bool op_Equality(OfficeInkPoint left, OfficeInkPoint right) #

Returns true when two samples are equal.

Parameters

left OfficeIMO.Drawing.OfficeInkPoint required
right OfficeIMO.Drawing.OfficeInkPoint required

Returns

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

Returns true when two samples are different.

Parameters

left OfficeIMO.Drawing.OfficeInkPoint required
right OfficeIMO.Drawing.OfficeInkPoint required

Returns

bool
public OfficeInkPoint Transform(OfficeTransform transform) #

Returns this sample transformed into another canvas coordinate space.

Parameters

transform OfficeIMO.Drawing.OfficeTransform required

Properties

public double X { get; } #

Horizontal coordinate in the owning canvas unit.

public double Y { get; } #

Vertical coordinate in the owning canvas unit.

public double? Pressure { get; } #

Optional normalized pressure from 0 through 1.

public double? TiltX { get; } #

Optional horizontal pen tilt in degrees.

public double? TiltY { get; } #

Optional vertical pen tilt in degrees.

public TimeSpan? Timestamp { get; } #

Optional sample timestamp relative to the stroke origin.