GetOffset(PathPoint) Method

Definition

Assembly Broadside.Viewer.dll

Gets the caret offset nearest a point: on a glyph, before or after it by which half the point falls in; elsewhere, by the nearest glyph, preferring the line level with the point (so a point past a line's end selects to its end).

public int GetOffset(PathPoint point)

Parameters

point
PathPoint

The point in default user space.

Returns

Int32
An offset from 0 to Length; 0 when the page has no selectable glyph.