GetWhitespaceBefore Method (textSource, offset)
NamespacesICSharpCode.AvalonEdit.DocumentTextUtilitiesGetWhitespaceBefore(ITextSource, Int32)
Gets all whitespace (' ' and '\t', but no newlines) before offset.
Declaration Syntax
C#Visual BasicVisual C++
public static ISegment GetWhitespaceBefore(
	ITextSource textSource,
	int offset
Public Shared Function GetWhitespaceBefore ( _
	textSource As ITextSource, _
	offset As Integer _
) As ISegment
static ISegment^ GetWhitespaceBefore(
	ITextSource^ textSource, 
	int offset
textSource (ITextSource)
The text source.
offset (Int32)
The offset where the whitespace ends.
Return Value
The segment containing the whitespace.

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