Contains Method (segment, offset, length)
NamespacesICSharpCode.AvalonEdit.DocumentISegmentExtensionsContains(ISegment, Int32, Int32)
Gets whether segment fully contains the specified segment.
Declaration Syntax
C#Visual BasicVisual C++
public static bool Contains(
	this ISegment segment,
	int offset,
	int length
<ExtensionAttribute> _
Public Shared Function Contains ( _
	segment As ISegment, _
	offset As Integer, _
	length As Integer _
) As Boolean
static bool Contains(
	ISegment^ segment, 
	int offset, 
	int length
segment (ISegment)
offset (Int32)
length (Int32)
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type ISegment. When you use instance method syntax to call this method, omit the first parameter.
Use segment.Contains(offset, 0) to detect whether a segment (end inclusive) contains offset; use segment.Contains(offset, 1) to detect whether a segment (end exclusive) contains offset.

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