Skip to main content

SelectionCollection Members

A collection of selections in the document.

Properties

Name Description
Count Returns the number of selections in a collection.
Item[Int32] Gets the selection specified by its index.

Methods

Name Description
Add(DocumentRange) Adds a range to the collection of selections.
Add(List<DocumentRange>) Adds listed ranges to the collection of selections.
Clear() Removes all items from the collection.
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 object. Inherited from Object.
GetEnumerator() Returns an enumerator that iterates through the SelectionCollection instance.
GetHashCode() Serves as the default hash function. Inherited from 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.
RemoveAt(Int32) Deletes a selection specified by its index.
ToString() Returns a string that represents the current object. Inherited from Object.
Unselect(DocumentRange) Unselects a specified range.
See Also