Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

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, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current DocumentPosition instance.
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() protected 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