C# 클래스 SourceGrid.GridVirtual

상속: CustomScrollControl
파일 보기 프로젝트 열기: zhuangyy/Motion 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
m_MouseCellPosition Position
m_MouseDownPosition Position

Private Properties

프로퍼티 타입 설명
GetVisibleRegion IEnumerable
PerformStretch void
SetScrollArea void

공개 메소드들

메소드 설명
ArrangeLinkedControls ( ) : void

Refresh the linked controls bounds

AutoSizeCells ( ) : void

Auto size all the columns and all the rows with the required width and height

AutoSizeCells ( Range p_RangeToAutoSize ) : void

Auto size the columns and the rows speified

ChangeDragCell ( CellContext cell, DragEventArgs pDragEventArgs ) : void

Fired when the cell in the drag events change. For internal use only.

ChangeMouseCell ( Position p_Cell ) : void

Fired when the cell under the mouse change. For internal use only.

ChangeMouseDownCell ( Position p_MouseDownCell, Position p_MouseCell ) : void

Change the cell currently under the mouse

ChangeMouseSelectionCorner ( Position p_Corner ) : void

Fired when the corner of the mouse selection change. For internal use only.

CheckPositions ( ) : void

Check if the positions saved are still valid, for example if all the selected cells are still valid positions, if not the selection are removed without calling any other methods.

ClearValues ( RangeRegion region ) : void

Clear all the selected cells with a valid Model.

GetCell ( Position p_Position ) : Cells.ICellVirtual

Return the Cell at the specified Row and Col position. This method is called for sort operations and for Move operations. If position is Empty return null. This method calls GetCell(int p_iRow, int p_iCol)

GetCell ( int p_iRow, int p_iCol ) : Cells.ICellVirtual

Return the Cell at the specified Row and Col position. Abstract, must be implemented in the derived class.

GetCellsAtColumn ( int p_ColumnIndex ) : Cells.ICellVirtual[]

Returns all the cells at specified column position

GetCellsAtRow ( int p_RowIndex ) : Cells.ICellVirtual[]

Returns all the cells at specified row position

GetFixedLeftArea ( ) : Rectangle
GetFixedTopArea ( ) : Rectangle
GetFixedTopLeftArea ( ) : Rectangle
GetPositionType ( Position position ) : CellPositionType

Returns the type of a cell position

GetScrollableArea ( ) : Rectangle
GetVisibleColumns ( Rectangle displayRectangle, bool returnsPartial ) : List
GetVisibleColumns ( bool returnsPartial ) : List
GetVisibleRows ( Rectangle displayRectangle, bool returnsPartial ) : List
GetVisibleRows ( bool returnsPartial ) : List
GridVirtual ( ) : System

Grid constructor

InvalidateCell ( Position position ) : void

Force a cell to redraw.

InvalidateRange ( Range range ) : void

Force a range of cells to redraw.

IsCellVisible ( Position position, bool partial ) : bool

Indicates if the specified cell is visible.

MouseSelectionFinish ( ) : void

Fired when the mouse selection finish. See also MouseSelectionRange.

OnCellsAreaChanged ( ) : void

Force to recalculate scrollbars and panels location. Used usually after changing width and height of the columns / rows, or after adding or removing rows and columns.

OnUserException ( ExceptionEventArgs e ) : void

Event fired when an exception is throw in some method that require a notification to the user. If not handled by the user (Handled property = false) a MessageBox is used to display the exception.

PositionAtPoint ( Point point ) : Position

Returns the cell at the specified grid view relative point (the point must be relative to the grid display region), SearchInFixedCells = true. Return Position.Empty if no valid cells are found.

PositionToCellRange ( Position pPosition ) : Range

This method converts a Position to the real range of the cell. This is usefull when RowSpan or ColumnSpan is greater than 1. For example suppose to have at grid[0,0] a cell with ColumnSpan equal to 2. If you call this method with the position 0,0 returns 0,0-0,1 and if you call this method with 0,1 return again 0,0-0,1.

PositionToRectangle ( Position position ) : Rectangle

Get the rectangle of the cell respect to the client area visible, the grid DisplayRectangle. Returns Rectangle.Empty if the Position is empty or if is not valid.

PositionToStartPosition ( Position p_Position ) : Position

This method converts a Position to the real start position of cell. This is usefull when RowSpan or ColumnSPan is greater than 1. For example suppose to have at grid[0,0] a cell with ColumnSpan equal to 2. If you call this method with the position 0,0 returns 0,0 and if you call this method with 0,1 return again 0,0. Get the real position for the specified position. For example when p_Position is a merged cell this method returns the starting position of the merged cells. Usually this method returns the same cell specified as parameter. This method is used for processing arrow keys, to find a valid cell when the focus is in a merged cell. For this class returns always p_Position.

ProcessSpecialGridKey ( KeyEventArgs e ) : void

Process Delete, Ctrl+C, Ctrl+V, Up, Down, Left, Right, Tab keys

RangeAtArea ( CellPositionType areaType ) : Range

Get the range of cells at the specified dispaly area. This method consider only the visible cells using the current scroll position. Returns a single Range for the specified grid area (scrollable, fixedtop, fixedleft, fixedtopleft). Returns Range.Empty if there isn't a valid range in the specified area.

RangeToRectangle ( Range range ) : Rectangle

Returns the relative rectangle to the current scrollable area of the specified Range. Returns a Rectangle.Empty if the Range is not valid.

RangeToSize ( Range range ) : Size
ScrollOnPoint ( Point mousePoint ) : void

Move the scrollbars to the direction specified by the point specified. Method used by the Mouse multi selection (MouseSelection.cs)

ShowCell ( Position p_Position, bool ignorePartial ) : bool

Scroll the view to show the cell passed. Ensure that if the cell if invisible or partial visible it will be totally visible

SortRangeRows ( IRangeLoader p_RangeToSort, int keyColumn, bool p_bAsc, IComparer p_CellComparer ) : void

Sort a range of the grid

SortRangeRows ( Range p_Range, int keyColumn, bool p_bAscending, IComparer p_CellComparer ) : void

Sort a range of the grid.

보호된 메소드들

메소드 설명
CreateColumnsObject ( ) : SourceGrid.ColumnsBase

Abstract method used to create the columns object.

CreateRowsObject ( ) : SourceGrid.RowsBase

Abstract method used to create the rows object.

CreateSelectionObject ( ) : SelectionBase

Virtual factory method used to create the SelectionBase derived object. The base method create a different object based on the value of SelectionMode property.

Dispose ( bool disposing ) : void

Clean up any resources being used.

GetScrollColumns ( int displayWidth ) : int

Calculate the number of columns to scroll. 0 to disable the scrollbar. The returned value is independent from the current scrolling position, must be a fixed value calculated based on the total number of columns and the available area.

GetScrollPositionToShowCell ( Position position, bool partial, Point &newScrollPosition ) : bool

Indicates if the specified range is visible

Return the scroll position that must be set to show a specific cell.

GetScrollRows ( int displayHeight ) : int

Returns the logical scroll size (usually Rows and Columns) for the specified display area.

Returns true if the vertical scrollbar is required

Returns true if the horizontal scrollbar is required

Calculate the number of rows to scroll. 0 to disable the scrollbar. The returned value is independent from the current scrolling position, must be a fixed value calculated based on the total number of rows and the available area.

InvalidateScrollableArea ( ) : void

Invalidate the cells

IsInputChar ( char charCode ) : bool

IsInputChar method.

IsInputKey ( Keys keyData ) : bool

Allow the grid to handle specials keys like Arrows and Tab. See also Grid.SpecialKeys

OnApplyMouseSelection ( RangeEventArgs e ) : void

Fired when the mouse selection is succesfully finished. See also MouseSelectionRange.

OnEnter ( EventArgs e ) : void
OnHScrollPositionChanged ( ScrollPositionChangedEventArgs e ) : void

OnHScrollPositionChanged

OnKeyDown ( KeyEventArgs e ) : void
OnKeyPress ( KeyPressEventArgs e ) : void
OnKeyUp ( KeyEventArgs e ) : void
OnMouseClick ( MouseEventArgs e ) : void
OnMouseDoubleClick ( MouseEventArgs e ) : void
OnMouseDown ( MouseEventArgs e ) : void
OnMouseLeave ( EventArgs e ) : void
OnMouseMove ( MouseEventArgs e ) : void
OnMouseSelectionChange ( EventArgs e ) : void

Fired when the mouse selection change. See also MouseSelectionRange.

OnMouseSelectionFinish ( RangeEventArgs e ) : void

Fired when the selection eith the mouse is finished

OnMouseUp ( MouseEventArgs e ) : void
OnMouseWheel ( MouseEventArgs e ) : void

Fired when a user scroll with the mouse wheel

OnPaint ( PaintEventArgs e ) : void
OnRangePaint ( RangePaintEventArgs e ) : void
OnResize ( EventArgs e ) : void
OnSortedRangeRows ( SortRangeRowsEventArgs e ) : void

Fired after calling SortRangeRows method

OnSortingRangeRows ( SortRangeRowsEventArgs e ) : void

Fired when calling SortRangeRows method

OnUndoMouseSelection ( RangeEventArgs e ) : void

Fired when the mouse selection must be canceled. See also MouseSelectionRange.

OnVScrollPositionChanged ( ScrollPositionChangedEventArgs e ) : void

OnVScrollPositionChanged

OnValidated ( EventArgs e ) : void
PaintCell ( DevAge graphics, CellContext cellContext, RectangleF drawRectangle ) : void

Draw the specified Cell

ProcessCmdKey ( Message &msg, Keys keyData ) : bool

Processes a command key.

비공개 메소드들

메소드 설명
GetVisibleRegion ( ) : IEnumerable

Get the range for the specific area type and rectangle

Get the visible ranges. Returns a list of Range, one for each area.

PerformStretch ( ) : void

Recalculate the scrollbar position and value based on the current cells, scroll client area, linked controls and more. If redraw == false this method has not effect. This method is called when you put Redraw = true;

SetScrollArea ( ) : void

메소드 상세

ArrangeLinkedControls() 공개 메소드

Refresh the linked controls bounds
public ArrangeLinkedControls ( ) : void
리턴 void

AutoSizeCells() 공개 메소드

Auto size all the columns and all the rows with the required width and height
public AutoSizeCells ( ) : void
리턴 void

AutoSizeCells() 공개 메소드

Auto size the columns and the rows speified
public AutoSizeCells ( Range p_RangeToAutoSize ) : void
p_RangeToAutoSize Range
리턴 void

ChangeDragCell() 공개 메소드

Fired when the cell in the drag events change. For internal use only.
public ChangeDragCell ( CellContext cell, DragEventArgs pDragEventArgs ) : void
cell CellContext
pDragEventArgs System.Windows.Forms.DragEventArgs
리턴 void

ChangeMouseCell() 공개 메소드

Fired when the cell under the mouse change. For internal use only.
public ChangeMouseCell ( Position p_Cell ) : void
p_Cell Position
리턴 void

ChangeMouseDownCell() 공개 메소드

Change the cell currently under the mouse
public ChangeMouseDownCell ( Position p_MouseDownCell, Position p_MouseCell ) : void
p_MouseDownCell Position
p_MouseCell Position
리턴 void

ChangeMouseSelectionCorner() 공개 메소드

Fired when the corner of the mouse selection change. For internal use only.
public ChangeMouseSelectionCorner ( Position p_Corner ) : void
p_Corner Position
리턴 void

CheckPositions() 공개 메소드

Check if the positions saved are still valid, for example if all the selected cells are still valid positions, if not the selection are removed without calling any other methods.
public CheckPositions ( ) : void
리턴 void

ClearValues() 공개 메소드

Clear all the selected cells with a valid Model.
public ClearValues ( RangeRegion region ) : void
region RangeRegion
리턴 void

CreateColumnsObject() 보호된 추상적인 메소드

Abstract method used to create the columns object.
protected abstract CreateColumnsObject ( ) : SourceGrid.ColumnsBase
리턴 SourceGrid.ColumnsBase

CreateRowsObject() 보호된 추상적인 메소드

Abstract method used to create the rows object.
protected abstract CreateRowsObject ( ) : SourceGrid.RowsBase
리턴 SourceGrid.RowsBase

CreateSelectionObject() 보호된 메소드

Virtual factory method used to create the SelectionBase derived object. The base method create a different object based on the value of SelectionMode property.
protected CreateSelectionObject ( ) : SelectionBase
리턴 SourceGrid.Selection.SelectionBase

Dispose() 보호된 메소드

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

GetCell() 공개 메소드

Return the Cell at the specified Row and Col position. This method is called for sort operations and for Move operations. If position is Empty return null. This method calls GetCell(int p_iRow, int p_iCol)
public GetCell ( Position p_Position ) : Cells.ICellVirtual
p_Position Position
리턴 Cells.ICellVirtual

GetCell() 공개 추상적인 메소드

Return the Cell at the specified Row and Col position. Abstract, must be implemented in the derived class.
public abstract GetCell ( int p_iRow, int p_iCol ) : Cells.ICellVirtual
p_iRow int
p_iCol int
리턴 Cells.ICellVirtual

GetCellsAtColumn() 공개 메소드

Returns all the cells at specified column position
public GetCellsAtColumn ( int p_ColumnIndex ) : Cells.ICellVirtual[]
p_ColumnIndex int
리턴 Cells.ICellVirtual[]

GetCellsAtRow() 공개 메소드

Returns all the cells at specified row position
public GetCellsAtRow ( int p_RowIndex ) : Cells.ICellVirtual[]
p_RowIndex int
리턴 Cells.ICellVirtual[]

GetFixedLeftArea() 공개 메소드

public GetFixedLeftArea ( ) : Rectangle
리턴 System.Drawing.Rectangle

GetFixedTopArea() 공개 메소드

public GetFixedTopArea ( ) : Rectangle
리턴 System.Drawing.Rectangle

GetFixedTopLeftArea() 공개 메소드

public GetFixedTopLeftArea ( ) : Rectangle
리턴 System.Drawing.Rectangle

GetPositionType() 공개 메소드

Returns the type of a cell position
public GetPositionType ( Position position ) : CellPositionType
position Position
리턴 CellPositionType

GetScrollColumns() 보호된 메소드

Calculate the number of columns to scroll. 0 to disable the scrollbar. The returned value is independent from the current scrolling position, must be a fixed value calculated based on the total number of columns and the available area.
protected GetScrollColumns ( int displayWidth ) : int
displayWidth int
리턴 int

GetScrollPositionToShowCell() 보호된 메소드

Indicates if the specified range is visible Return the scroll position that must be set to show a specific cell.
protected GetScrollPositionToShowCell ( Position position, bool partial, Point &newScrollPosition ) : bool
position Position
partial bool True to return also partial visible cells
newScrollPosition Point
리턴 bool

GetScrollRows() 보호된 메소드

Returns the logical scroll size (usually Rows and Columns) for the specified display area. Returns true if the vertical scrollbar is required Returns true if the horizontal scrollbar is required Calculate the number of rows to scroll. 0 to disable the scrollbar. The returned value is independent from the current scrolling position, must be a fixed value calculated based on the total number of rows and the available area.
protected GetScrollRows ( int displayHeight ) : int
displayHeight int
리턴 int

GetScrollableArea() 공개 메소드

public GetScrollableArea ( ) : Rectangle
리턴 System.Drawing.Rectangle

GetVisibleColumns() 공개 메소드

public GetVisibleColumns ( Rectangle displayRectangle, bool returnsPartial ) : List
displayRectangle System.Drawing.Rectangle
returnsPartial bool
리턴 List

GetVisibleColumns() 공개 메소드

public GetVisibleColumns ( bool returnsPartial ) : List
returnsPartial bool
리턴 List

GetVisibleRows() 공개 메소드

public GetVisibleRows ( Rectangle displayRectangle, bool returnsPartial ) : List
displayRectangle System.Drawing.Rectangle
returnsPartial bool
리턴 List

GetVisibleRows() 공개 메소드

public GetVisibleRows ( bool returnsPartial ) : List
returnsPartial bool
리턴 List

GridVirtual() 공개 메소드

Grid constructor
public GridVirtual ( ) : System
리턴 System

InvalidateCell() 공개 메소드

Force a cell to redraw.
public InvalidateCell ( Position position ) : void
position Position
리턴 void

InvalidateRange() 공개 메소드

Force a range of cells to redraw.
public InvalidateRange ( Range range ) : void
range Range
리턴 void

InvalidateScrollableArea() 보호된 메소드

Invalidate the cells
protected InvalidateScrollableArea ( ) : void
리턴 void

IsCellVisible() 공개 메소드

Indicates if the specified cell is visible.
public IsCellVisible ( Position position, bool partial ) : bool
position Position
partial bool True to returns also partial visible cells
리턴 bool

IsInputChar() 보호된 메소드

IsInputChar method.
protected IsInputChar ( char charCode ) : bool
charCode char
리턴 bool

IsInputKey() 보호된 메소드

Allow the grid to handle specials keys like Arrows and Tab. See also Grid.SpecialKeys
protected IsInputKey ( Keys keyData ) : bool
keyData Keys
리턴 bool

MouseSelectionFinish() 공개 메소드

Fired when the mouse selection finish. See also MouseSelectionRange.
public MouseSelectionFinish ( ) : void
리턴 void

OnApplyMouseSelection() 보호된 메소드

Fired when the mouse selection is succesfully finished. See also MouseSelectionRange.
protected OnApplyMouseSelection ( RangeEventArgs e ) : void
e RangeEventArgs
리턴 void

OnCellsAreaChanged() 공개 메소드

Force to recalculate scrollbars and panels location. Used usually after changing width and height of the columns / rows, or after adding or removing rows and columns.
public OnCellsAreaChanged ( ) : void
리턴 void

OnEnter() 보호된 메소드

protected OnEnter ( EventArgs e ) : void
e System.EventArgs
리턴 void

OnHScrollPositionChanged() 보호된 메소드

OnHScrollPositionChanged
protected OnHScrollPositionChanged ( ScrollPositionChangedEventArgs e ) : void
e ScrollPositionChangedEventArgs
리턴 void

OnKeyDown() 보호된 메소드

protected OnKeyDown ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs
리턴 void

OnKeyPress() 보호된 메소드

protected OnKeyPress ( KeyPressEventArgs e ) : void
e System.Windows.Forms.KeyPressEventArgs
리턴 void

OnKeyUp() 보호된 메소드

protected OnKeyUp ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs
리턴 void

OnMouseClick() 보호된 메소드

protected OnMouseClick ( MouseEventArgs e ) : void
e MouseEventArgs
리턴 void

OnMouseDoubleClick() 보호된 메소드

protected OnMouseDoubleClick ( MouseEventArgs e ) : void
e MouseEventArgs
리턴 void

OnMouseDown() 보호된 메소드

protected OnMouseDown ( MouseEventArgs e ) : void
e MouseEventArgs
리턴 void

OnMouseLeave() 보호된 메소드

protected OnMouseLeave ( EventArgs e ) : void
e System.EventArgs
리턴 void

OnMouseMove() 보호된 메소드

protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs
리턴 void

OnMouseSelectionChange() 보호된 메소드

Fired when the mouse selection change. See also MouseSelectionRange.
protected OnMouseSelectionChange ( EventArgs e ) : void
e System.EventArgs
리턴 void

OnMouseSelectionFinish() 보호된 메소드

Fired when the selection eith the mouse is finished
protected OnMouseSelectionFinish ( RangeEventArgs e ) : void
e RangeEventArgs
리턴 void

OnMouseUp() 보호된 메소드

protected OnMouseUp ( MouseEventArgs e ) : void
e MouseEventArgs
리턴 void

OnMouseWheel() 보호된 메소드

Fired when a user scroll with the mouse wheel
protected OnMouseWheel ( MouseEventArgs e ) : void
e MouseEventArgs
리턴 void

OnPaint() 보호된 메소드

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
리턴 void

OnRangePaint() 보호된 메소드

protected OnRangePaint ( RangePaintEventArgs e ) : void
e RangePaintEventArgs
리턴 void

OnResize() 보호된 메소드

protected OnResize ( EventArgs e ) : void
e System.EventArgs
리턴 void

OnSortedRangeRows() 보호된 메소드

Fired after calling SortRangeRows method
protected OnSortedRangeRows ( SortRangeRowsEventArgs e ) : void
e SortRangeRowsEventArgs
리턴 void

OnSortingRangeRows() 보호된 메소드

Fired when calling SortRangeRows method
protected OnSortingRangeRows ( SortRangeRowsEventArgs e ) : void
e SortRangeRowsEventArgs
리턴 void

OnUndoMouseSelection() 보호된 메소드

Fired when the mouse selection must be canceled. See also MouseSelectionRange.
protected OnUndoMouseSelection ( RangeEventArgs e ) : void
e RangeEventArgs
리턴 void

OnUserException() 공개 메소드

Event fired when an exception is throw in some method that require a notification to the user. If not handled by the user (Handled property = false) a MessageBox is used to display the exception.
public OnUserException ( ExceptionEventArgs e ) : void
e ExceptionEventArgs
리턴 void

OnVScrollPositionChanged() 보호된 메소드

OnVScrollPositionChanged
protected OnVScrollPositionChanged ( ScrollPositionChangedEventArgs e ) : void
e ScrollPositionChangedEventArgs
리턴 void

OnValidated() 보호된 메소드

protected OnValidated ( EventArgs e ) : void
e System.EventArgs
리턴 void

PaintCell() 보호된 메소드

Draw the specified Cell
protected PaintCell ( DevAge graphics, CellContext cellContext, RectangleF drawRectangle ) : void
graphics DevAge
cellContext CellContext
drawRectangle System.Drawing.RectangleF
리턴 void

PositionAtPoint() 공개 메소드

Returns the cell at the specified grid view relative point (the point must be relative to the grid display region), SearchInFixedCells = true. Return Position.Empty if no valid cells are found.
public PositionAtPoint ( Point point ) : Position
point Point Point relative to the DisplayRectangle area.
리턴 Position

PositionToCellRange() 공개 메소드

This method converts a Position to the real range of the cell. This is usefull when RowSpan or ColumnSpan is greater than 1. For example suppose to have at grid[0,0] a cell with ColumnSpan equal to 2. If you call this method with the position 0,0 returns 0,0-0,1 and if you call this method with 0,1 return again 0,0-0,1.
public PositionToCellRange ( Position pPosition ) : Range
pPosition Position
리턴 Range

PositionToRectangle() 공개 메소드

Get the rectangle of the cell respect to the client area visible, the grid DisplayRectangle. Returns Rectangle.Empty if the Position is empty or if is not valid.
public PositionToRectangle ( Position position ) : Rectangle
position Position
리턴 System.Drawing.Rectangle

PositionToStartPosition() 공개 메소드

This method converts a Position to the real start position of cell. This is usefull when RowSpan or ColumnSPan is greater than 1. For example suppose to have at grid[0,0] a cell with ColumnSpan equal to 2. If you call this method with the position 0,0 returns 0,0 and if you call this method with 0,1 return again 0,0. Get the real position for the specified position. For example when p_Position is a merged cell this method returns the starting position of the merged cells. Usually this method returns the same cell specified as parameter. This method is used for processing arrow keys, to find a valid cell when the focus is in a merged cell. For this class returns always p_Position.
public PositionToStartPosition ( Position p_Position ) : Position
p_Position Position
리턴 Position

ProcessCmdKey() 보호된 메소드

Processes a command key.
protected ProcessCmdKey ( Message &msg, Keys keyData ) : bool
msg System.Windows.Forms.Message
keyData Keys
리턴 bool

ProcessSpecialGridKey() 공개 메소드

Process Delete, Ctrl+C, Ctrl+V, Up, Down, Left, Right, Tab keys
public ProcessSpecialGridKey ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs
리턴 void

RangeAtArea() 공개 메소드

Get the range of cells at the specified dispaly area. This method consider only the visible cells using the current scroll position. Returns a single Range for the specified grid area (scrollable, fixedtop, fixedleft, fixedtopleft). Returns Range.Empty if there isn't a valid range in the specified area.
public RangeAtArea ( CellPositionType areaType ) : Range
areaType CellPositionType
리턴 Range

RangeToRectangle() 공개 메소드

Returns the relative rectangle to the current scrollable area of the specified Range. Returns a Rectangle.Empty if the Range is not valid.
public RangeToRectangle ( Range range ) : Rectangle
range Range
리턴 System.Drawing.Rectangle

RangeToSize() 공개 메소드

public RangeToSize ( Range range ) : Size
range Range
리턴 System.Drawing.Size

ScrollOnPoint() 공개 메소드

Move the scrollbars to the direction specified by the point specified. Method used by the Mouse multi selection (MouseSelection.cs)
public ScrollOnPoint ( Point mousePoint ) : void
mousePoint Point
리턴 void

ShowCell() 공개 메소드

Scroll the view to show the cell passed. Ensure that if the cell if invisible or partial visible it will be totally visible
public ShowCell ( Position p_Position, bool ignorePartial ) : bool
p_Position Position
ignorePartial bool true to ignore and consider already visible partial visible cells
리턴 bool

SortRangeRows() 공개 메소드

Sort a range of the grid
public SortRangeRows ( IRangeLoader p_RangeToSort, int keyColumn, bool p_bAsc, IComparer p_CellComparer ) : void
p_RangeToSort IRangeLoader Range to sort
keyColumn int Index of the column relative to the grid to use as sort keys, must be between start and end col of the range
p_bAsc bool Ascending true, Descending false
p_CellComparer IComparer CellComparer, if null the default comparer will be used
리턴 void

SortRangeRows() 공개 메소드

Sort a range of the grid.
public SortRangeRows ( Range p_Range, int keyColumn, bool p_bAscending, IComparer p_CellComparer ) : void
p_Range Range
keyColumn int Index of the column relative to the grid to use as sort keys, must be between start and end col
p_bAscending bool Ascending true, Descending false
p_CellComparer IComparer CellComparer, if null the default ValueCellComparer comparer will be used
리턴 void

프로퍼티 상세

m_MouseCellPosition 보호되어 있는 프로퍼티

protected Position,SourceGrid m_MouseCellPosition
리턴 Position

m_MouseDownPosition 보호되어 있는 프로퍼티

Represents the cell that receive the mouse down event
protected Position,SourceGrid m_MouseDownPosition
리턴 Position