Class Selection
Represents the selection.
Inherited Members
Namespace: Telerik.WinForms.Controls.Spreadsheet.Worksheets
Assembly: Telerik.WinControls.RadSpreadsheet.dll
Syntax
public class Selection : SelectionBase, IWeakEventListener
Properties
ActiveCell
Gets the active cell selection.
Declaration
public CellSelection ActiveCell { get; }
Property Value
Cell The active cell selection. |
ActiveCellIndex
Gets the index of the active cell.
Declaration
public CellIndex ActiveCellIndex { get; }
Property Value
Cell The index of the active cell. |
ActiveCellMode
Gets or sets the active cell mode.
Declaration
public ActiveCellMode ActiveCellMode { get; set; }
Property Value
Active The active cell mode. |
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. 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
Shape The selected shapes. |
Methods
CreateSelectionState()
Creates the selection state.
Declaration
public SelectionState CreateSelectionState()
Returns
Selection The selection state. |
EnsureDisplayMode()
Ensures the display mode.
Declaration
public void EnsureDisplayMode()
IntersectsColumn(Int32)
Checks if the the column intersects with the selection.
Declaration
public override sealed bool IntersectsColumn(int columnIndex)
Parameters
System. Index of the column. |
Returns
System.
|
Overrides
IntersectsRow(Int32)
Checks if the the row intersects with the selection.
Declaration
public override sealed bool IntersectsRow(int rowIndex)
Parameters
System. Index of the row. |
Returns
System.
|
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
ReceiveWeakEvent(Type, Object, EventArgs)
Receives events from the centralized event manager.
Declaration
public bool ReceiveWeakEvent(Type managerType, object sender, EventArgs e)
Parameters
System. The type of the System. |
System. Object that originated the event. |
System. Event data. |
Returns
System. true if the listener handled the event. It is considered an error by
the System. |
RestoreSelectionState(SelectionState)
Restores the selection state.
Declaration
public void RestoreSelectionState(SelectionState selectionState)
Parameters
Selection State of the selection. |
Select(IEnumerable<FloatingShapeBase>, Boolean)
Selects the specified shapes.
Declaration
public void Select(IEnumerable<FloatingShapeBase> shapes, bool clearSelection = true)
Parameters
System. The shapes. |
System. 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
Floating The shape. |
System. 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.
|
SelectionTypeChanged
Occurs when the selection type is changed between cell selection and shape selection.
Declaration
public event EventHandler SelectionTypeChanged
Event Type
System.
|