ITextViewLine Methods

Include Protected Members
Include Inherited Members

The ITextViewLine type exposes the following members.

Methods

  Name Description
Public method ContainsBufferPosition Determines whether the specified buffer position lies within this text line.
Public method GetAdornmentBounds Calculates the bounds of the specified adornment.
Public method GetAdornmentTags Gets the adornments positioned on the line.
Public method GetBufferPositionFromXCoordinate(Double) Gets the buffer position of the character whose character bounds contains the given x-coordinate.
Public method GetBufferPositionFromXCoordinate(Double, Boolean) Gets the buffer position of the character whose character bounds contains the given x-coordinate.
Public method GetCharacterBounds(SnapshotPoint) Calculates the bounds of the character at the specified buffer position.
Public method GetCharacterBounds(VirtualSnapshotPoint) Calculates the bounds of the character at the specified buffer position.
Public method GetExtendedCharacterBounds(SnapshotPoint) Calculates the bounds of the character at the specified buffer position, including any adjacent space-negotiating adornments.
Public method GetExtendedCharacterBounds(VirtualSnapshotPoint) Calculates the bounds of the character at the specified virtual buffer position, including any adjacent space-negotiating adornments.
Public method GetInsertionBufferPositionFromXCoordinate Gets the buffer position used if new data were to be inserted at the given x-coordinate.
Public method GetNormalizedTextBounds Gets a collection of TextBounds structures for the text that corresponds to the given span.
Public method GetTextElementSpan Gets the span whose text element index corresponds to the given buffer position.
Public method GetVirtualBufferPositionFromXCoordinate Gets the buffer position of the character whose character bounds contains the given x-coordinate.
Public method IntersectsBufferSpan Determines whether a bufferSpan intersects this text line.

Top

See Also

Reference

ITextViewLine Interface

Microsoft.VisualStudio.Text.Formatting Namespace