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

DocumentPosition Methods

A position within a document.

Name Description
BeginUpdateDocument()

Starts modifying the document obtained via the document's position (e.g. via the caret position).

EndUpdateDocument(SubDocument)

Finalizes modifications performed for the document obtained via the document's position (e.g. via the caret position).

Equals(Object)

Determines whether the specified object is equal to the current DocumentPosition instance.

Equals(Object, Object) static Determines whether the specified object instances are considered equal.
(Inherited from Object)
GetHashCode()

Gets the hash code (a number) that corresponds to the value of the current DocumentPosition object.

GetType() Gets the Type of the current instance.
(Inherited from Object)
MemberwiseClone() Creates a shallow copy of the current Object.
(Inherited from Object)
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance.
(Inherited from Object)
ToInt()

Returns an integer representation of the DocumentPosition object.

ToString()

Converts the numeric value of this instance to its equivalent string representation.

See Also