RichTextKit v0.4

HitTestResult Struct

Assembly: Topten.RichTextKit.dll
Namespace: Topten.RichTextKit

Used to return hit test information from the TextBlock.HitTest(float, float) method.

public struct HitTestResult

Inheritance

HitTestResult → ValueTypeobject

Fields

AltCaretPosition

Indicates that the point is closest to the alternate caret position of ClosestCodePointIndex.

ClosestCodePointIndex

The code point index of the first code point in the cluster that the point is closest to.

ClosestLine

The zero based index of the closest line to the passed y-coordinate.

None

Hit test result indicating no hit, or untested hit

OverCodePointIndex

The code point index of the first code point in the cluster that the point is actually over, or -1 if not over a cluster.

OverLine

The zero based index of the line number the y-coordinate is directly over, or -1 if the y-coordinate is before the first line, or after the last line.

Properties

CaretPosition

Helper to get the closest position as a CaretPosition

IsNone

Check is this is the "none" hit test result

Overridden & Inherited

Equals(object)

Compares this object to another instance

GetHashCode()

Gets a hash code for this object