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

DocumentPosition Members

A position within a document.

Methods

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.

Operators

Name Description
Equality(DocumentPosition, DocumentPosition) static

Compares two DocumentPosition objects for equality.

GreaterThan(DocumentPosition, DocumentPosition) static

Evaluates two DocumentPosition instances to determine if one instance is greater than the other.

GreaterThanOrEqual(DocumentPosition, DocumentPosition) static

Evaluates two DocumentPosition instances to determine whether one instance is greater than or equal to the other.

Inequality(DocumentPosition, DocumentPosition) static

Compares two DocumentPosition objects to determine whether they are not equal.

LessThan(DocumentPosition, DocumentPosition) static

Evaluates two DocumentPosition instances to determine whether one instance is less than the other.

LessThanOrEqual(DocumentPosition, DocumentPosition) static

Evaluates two DocumentPosition instances to determine whether one instance is less than or equal to the other.

See Also