Class Selection
Represents the selection.
Inherited Members
Namespace: Telerik.Windows.Controls.Spreadsheet.Worksheets
Assembly: Telerik.Windows.Controls.Spreadsheet.dll
Syntax
public class Selection : SelectionBase
Properties
ActiveCell
Gets the active cell selection.
Declaration
public CellSelection ActiveCell { get; }
Property Value
Telerik.Windows.Documents.Spreadsheet.Model.CellSelection
The active cell selection. |
ActiveCellIndex
Gets the index of the active cell.
Declaration
public CellIndex ActiveCellIndex { get; }
Property Value
Telerik.Windows.Documents.Spreadsheet.Model.CellIndex
The index of the active cell. |
ActiveCellMode
Gets or sets the active cell mode.
Declaration
public ActiveCellMode ActiveCellMode { get; set; }
Property Value
ActiveCellMode
The active cell mode. |
FillSelection
Gets the fill selection.
Declaration
public FillSelection FillSelection { get; }
Property Value
FillSelection
The fill selection. |
IsCellSelection
Gets or sets the value indicating whether the active selection is cell selection or shape selection.
Declaration
public bool IsCellSelection { get; }
Property Value
System.Boolean
The value returned is true if the active selection is cell selection and false if it is shape selection. |
Shapes
Gets the selected shapes.
Declaration
public ShapeSelection Shapes { get; }
Property Value
ShapeSelection
The selected shapes. |
Methods
CreateSelectionState()
Creates the selection state.
Declaration
public SelectionState CreateSelectionState()
Returns
Telerik.Windows.Documents.Spreadsheet.Model.SelectionState
The selection state. |
EnsureDisplayMode()
Ensures the display mode.
Declaration
public void EnsureDisplayMode()
IntersectsColumn(Int32)
Checks if the column intersects with the selection.
Declaration
public override sealed bool IntersectsColumn(int columnIndex)
Parameters
System.Int32
columnIndex
Index of the column. |
Returns
System.Boolean
|
Overrides
IntersectsRow(Int32)
Checks if the row intersects with the selection.
Declaration
public override sealed bool IntersectsRow(int rowIndex)
Parameters
System.Int32
rowIndex
Index of the row. |
Returns
System.Boolean
|
Overrides
OnActiveCellModeChanged()
Called when the active cell mode is changed.
Declaration
protected virtual void OnActiveCellModeChanged()
OnSelectionChanged()
Called when the selection is changed.
Declaration
protected override void OnSelectionChanged()
Overrides
RestoreSelectionState(SelectionState)
Restores the selection state.
Declaration
public void RestoreSelectionState(SelectionState selectionState)
Parameters
Telerik.Windows.Documents.Spreadsheet.Model.SelectionState
selectionState
State of the selection. |
Select(IEnumerable<FloatingShapeBase>, Boolean)
Selects the specified shapes.
Declaration
public void Select(IEnumerable<FloatingShapeBase> shapes, bool clearSelection = true)
Parameters
System.Collections.Generic.IEnumerable<Telerik.Windows.Documents.Spreadsheet.Model.Shapes.FloatingShapeBase>
shapes
The shapes. |
System.Boolean
clearSelection
Defines if the old selection has to be cleared. |
Select(FloatingShapeBase, Boolean)
Selects the specified shape.
Declaration
public void Select(FloatingShapeBase shape, bool clearSelection = true)
Parameters
Telerik.Windows.Documents.Spreadsheet.Model.Shapes.FloatingShapeBase
shape
The shape. |
System.Boolean
clearSelection
Defines if the old selection has to be cleared. |
SelectActiveCell()
Selects the active cell.
Declaration
public void SelectActiveCell()
Events
ActiveCellModeChanged
Occurs when the active cell mode is changed.
Declaration
public event EventHandler ActiveCellModeChanged
Event Type
System.EventHandler
|
SelectionTypeChanged
Occurs when the selection type is changed between cell selection and shape selection.
Declaration
public event EventHandler SelectionTypeChanged
Event Type
System.EventHandler
|