GetRectsForSegment Method (textView, segment, extendToFullWidthAtLineEnd)
NamespacesICSharpCode.AvalonEdit.RenderingBackgroundGeometryBuilderGetRectsForSegment(TextView, ISegment, Boolean)
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 BasicVisual 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)
static IEnumerable<Rect>^ GetRectsForSegment(
	TextView^ textView, 
	ISegment^ segment, 
	bool extendToFullWidthAtLineEnd = false
textView (TextView)
segment (ISegment)
extendToFullWidthAtLineEnd (Boolean) (Optional)

Assembly: ICSharpCode.AvalonEdit (Module: ICSharpCode.AvalonEdit.dll) Version: