C# Class SourceGrid.Selection.FreeSelection

A selection class that support free selection of cells (ranges)
Inheritance: SelectionBase
Datei anzeigen Open project: zhuangyy/Motion

Public Methods

Method Description
BindToGrid ( GridVirtual p_grid ) : void
FreeSelection ( ) : System
GetSelectionRegion ( ) : RangeRegion

Returns the selected region.

IntersectsWith ( Range rng ) : bool

Returns true if the specified selection intersect with the range

IsEmpty ( ) : bool

Returns true if the selection is empty

IsSelectedCell ( Position position ) : bool
IsSelectedColumn ( int column ) : bool
IsSelectedRange ( Range range ) : bool
IsSelectedRow ( int row ) : bool
SelectCell ( Position position, bool select ) : void
SelectColumn ( int column, bool select ) : void
SelectRange ( Range range, bool select ) : void
SelectRow ( int row, bool select ) : void
UnBindToGrid ( ) : void

Protected Methods

Method Description
OnResetSelection ( ) : void

Method Details

BindToGrid() public method

public BindToGrid ( GridVirtual p_grid ) : void
p_grid GridVirtual
return void

FreeSelection() public method

public FreeSelection ( ) : System
return System

GetSelectionRegion() public method

Returns the selected region.
public GetSelectionRegion ( ) : RangeRegion
return RangeRegion

IntersectsWith() public method

Returns true if the specified selection intersect with the range
public IntersectsWith ( Range rng ) : bool
rng Range
return bool

IsEmpty() public method

Returns true if the selection is empty
public IsEmpty ( ) : bool
return bool

IsSelectedCell() public method

public IsSelectedCell ( Position position ) : bool
position Position
return bool

IsSelectedColumn() public method

public IsSelectedColumn ( int column ) : bool
column int
return bool

IsSelectedRange() public method

public IsSelectedRange ( Range range ) : bool
range Range
return bool

IsSelectedRow() public method

public IsSelectedRow ( int row ) : bool
row int
return bool

OnResetSelection() protected method

protected OnResetSelection ( ) : void
return void

SelectCell() public method

public SelectCell ( Position position, bool select ) : void
position Position
select bool
return void

SelectColumn() public method

public SelectColumn ( int column, bool select ) : void
column int
select bool
return void

SelectRange() public method

public SelectRange ( Range range, bool select ) : void
range Range
select bool
return void

SelectRow() public method

public SelectRow ( int row, bool select ) : void
row int
select bool
return void

UnBindToGrid() public method

public UnBindToGrid ( ) : void
return void