Skip to content

ITextViewHost.GetLineLayout method

The laid-out line holding the offset, laying it out when it is outside the viewport. Null when there is no line to lay out. A line long enough to be cut into slices answers with the slice the offset falls in. The layout follows the current viewport, so a wrapping view answers meaningfully only once it has been given a width.

public TextLineLayout? GetLineLayout(int documentOffset)