.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

DocumentRange Members

Defines a document range.

Properties

Name Description
End

Gets the end position of the DocumentRange.

IsFrozen

Indicates whether the current DocumentRange is frozen.

Length

Gets the length of a document range in characters.

Start

Gets the start position of the DocumentRange.

Methods

Name Description
BeginUpdateDocument()

Starts modifying the document obtained via the document's range (e.g. via selection).

Contains(DocumentPosition)

Gets whether the current document range contains a specified position.

EndUpdateDocument(SubDocument)

Finalizes modifications of the document obtained via the document's range (e.g. via selection).

Freeze()

Makes the current DocumentRange object uneditable.

See Also