Version

IsCompatibleWith Method

Determines if 2 snapshots are compatible (i.e. have the same root buffer)
Syntax
'Declaration
 
Public Function IsCompatibleWith( _
   ByVal other As TextDocumentSnapshot _
) As Boolean
public bool IsCompatibleWith( 
   TextDocumentSnapshot other
)

Parameters

other
The snapshot to compare.

Return Value

true if both snapshots have the same root buffer, otherwise false.
Remarks

Note: if snapshots are not compatible then SnapshotPoints and SnapshotSpans can not be translated between them. Calling either SnapshotPoint.TranslateTo or SnapshotSpan.TranslateTo with an incompatible snapshot will raise an exception.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also