Gets whether segment fully contains the specified segment.

C# | Visual Basic | Visual C++ |
<ExtensionAttribute> _ Public Shared Function Contains ( _ segment As ISegment, _ offset As Integer, _ length As Integer _ ) As Boolean
public: [ExtensionAttribute] static bool Contains( ISegment^ segment, int offset, int length )

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: 5.0.0.4238