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

SelectionCollection Methods

A collection of selections in the document.
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