[]
Represents the full (concrete) implementation of the ISheetSelectionModel interface for a selection model for a sheet, which represents cell selections.
public class DefaultSheetSelectionModel : BaseSheetSelectionModel, ISheetSelectionModel, ISerializeSupport, IEnumerable, ISerializable, IDisjointSelections, IQuerySelection, INotifySelectionChanged, IDeserializationCallback
Public Class DefaultSheetSelectionModel
Inherits BaseSheetSelectionModel
Implements ISheetSelectionModel, ISerializeSupport, IEnumerable, ISerializable, IDisjointSelections, IQuerySelection, INotifySelectionChanged, IDeserializationCallback
| Name | Description |
|---|---|
| DefaultSheetSelectionModel() | Creates a default selection model. |
| DefaultSheetSelectionModel(SerializationInfo, StreamingContext) | Creates a default selection model with data from the specified serialization and stream objects. |
| Name | Description |
|---|---|
| AnchorColumn | Gets the column index of the first cell in the selection of cells. |
| AnchorRow | Gets the row index of the first cell in the selection of cells. |
| Count | Gets the number of selections. |
| this[int] | Gets an item in the model. |
| LeadColumn | Gets the column index of the farthest cell of the selection. |
| LeadRow | Gets the row index of the farthest cell of the selection. |
| SelectionPolicy | Gets or sets whether users can select ranges of items. |
| SelectionUnit | Gets or sets whether users can select cells, rows, or columns. |
| Name | Description |
|---|---|
| AddSelection(int, int, int, int) | Adds a cell or cells to the selection. |
| ClearSelection() | Removes the selection. |
| Deserialize(XmlNodeReader) | Loads the object from XML. |
| ExtendSelection(int, int) | Specifies the extent (or farthest cell) in the selection of cells. |
| GetEnumerator() | Gets an enumerator that can iterate through the selections. |
| GetExtendedSelection(int, int) | Gets the cell range that would be selected if you extended the current selection to the specified row and column indexes. |
| GetObjectData(SerializationInfo, StreamingContext) | Saves the default selection model to the SerializationInfo object. |
| GetSelections(int, int) | Returns an ordered array of CellRange objects, from largest to smallest, containing the selected cells with minimal overlap between the ranges. |
| IsAnyCellInColumnSelected(int) | Determines whether any cell in a specified column is in the selection. |
| IsAnyCellInRowSelected(int) | Determines whether any cell in a specified row is in the selection. |
| IsEmpty() | Determines whether the model has no selections. |
| IsSelected(int, int) | Determines whether the specified cell is in the selection. |
| RemoveSelection(int, int, int, int) | Removes the specified selection range from the selection list, if one exists. |
| Serialize(XmlTextWriter) | Saves the object to XML. |
| SetAnchor(int, int) | Specifies the anchor (or first cell) in the selection of cells. |
| SetSelection(int, int, int, int) | Selects the cells in the specified range. |