Calculates the list of rectangle where the segment in shown.
This method usually returns one rectangle for each line inside the segment
(but potentially more, e.g. when bidirectional text is involved).
Declaration Syntax
C# | Visual Basic | Visual C++ |
public static IEnumerable<Rect> GetRectsForSegment( TextView textView, ISegment segment, bool extendToFullWidthAtLineEnd = false )
Public Shared Function GetRectsForSegment ( _ textView As TextView, _ segment As ISegment, _ Optional extendToFullWidthAtLineEnd As Boolean = False _ ) As IEnumerable(Of Rect)
public: static IEnumerable<Rect>^ GetRectsForSegment( TextView^ textView, ISegment^ segment, bool extendToFullWidthAtLineEnd = false )
Assembly: ICSharpCode.AvalonEdit (Module: ICSharpCode.AvalonEdit.dll) Version: 5.0.0.4238