Version

IsCompatibleWith Method

Determines if 2 RichTextDocumentVersion's are compatible. When the document's root or body node is changed (which happens when a document is loaded as well), the document's version is made incompatible with previous version objects. Also versions from two different RichTextDocument instances are considered incompatible.
Syntax
'Declaration
 
Public Function IsCompatibleWith( _
   ByVal other As RichTextDocumentVersion _
) As Boolean
public bool IsCompatibleWith( 
   RichTextDocumentVersion other
)

Parameters

other
The document version to check for compatibility.

Return Value

True if the specified version is compatible with this one, otherwise false.
Remarks

Note: if versions are not compatible then VersionedDocumentOffset's and VersionedDocumentSpan's can not be translated between them. Calling either VersionedDocumentOffset.TranslateTo or VersionedDocumentSpan.TranslateTo with an incompatible instancce will raise an exception.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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