SnapshotSpan.Contains Method (SnapshotPoint)
Determines whether the specified SnapshotPoint lies within the span.
Namespace: Microsoft.VisualStudio.Text
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Syntax
'Declaration
Public Function Contains ( _
point As SnapshotPoint _
) As Boolean
public bool Contains(
SnapshotPoint point
)
public:
bool Contains(
SnapshotPoint point
)
member Contains :
point:SnapshotPoint -> bool
public function Contains(
point : SnapshotPoint
) : boolean
Parameters
point
Type: Microsoft.VisualStudio.Text.SnapshotPointThe SnapshotPoint.
Return Value
Type: System.Boolean
true if the position is greater than or equal to parameter span.Start and strictly less than parameter span.End, otherwise false.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.