C# Class SourceGrid.CustomScrollControl

Inheritance: System.Windows.Forms.Panel
Datei anzeigen Open project: zhuangyy/Motion

Private Properties

Property Type Description
HScroll_Change void
RecalcCustomScrollBars void
RecalcHScrollBar void
RecalcVScrollBar void
VScroll_Change void

Public Methods

Method Description
CustomScrollControl ( ) : System
CustomScrollLineDown ( ) : void

Scroll the page down one line

CustomScrollLineLeft ( ) : void

Scroll the page left one line

CustomScrollLineRight ( ) : void

Scroll the page right one line

CustomScrollLineUp ( ) : void

Scroll the page up one line

CustomScrollPageDown ( ) : void

Scroll the page down

CustomScrollPageLeft ( ) : void

Scroll the page left

CustomScrollPageRight ( ) : void

Scroll the page right

CustomScrollPageUp ( ) : void

Scroll the page up

CustomScrollWheel ( int rotationDelta ) : void
IsSuspended ( ) : bool
PerformLayout ( ) : void
PerformLayout ( Control affectedControl, string affectedProperty ) : void
ResumeLayout ( ) : void
ResumeLayout ( bool performLayout ) : void
SuspendLayout ( ) : void

Protected Methods

Method Description
CreateDockControls ( ) : void
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.

GetScrollRows ( int displayHeight ) : int

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 scrollable area

LoadScrollArea ( int verticalPage, int horizontalPage ) : void

Load the scrollable area that will affect the maximum scroll values.

OnHScrollPositionChanged ( ScrollPositionChangedEventArgs e ) : void

Fired when the scroll horizontal posizion change

OnLayout ( System.Windows.Forms.LayoutEventArgs levent ) : void

OnLayout Method

OnVScrollPositionChanged ( ScrollPositionChangedEventArgs e ) : void

Fired when the scroll vertical posizion change

PrepareScrollBars ( bool showHScroll, bool showVScroll ) : void

Prepare the scrollbars with the specified dock option.

SetHScrollBarVisible ( bool value ) : void
SetVScrollBarVisible ( bool value ) : void

Private Methods

Method Description
HScroll_Change ( object sender, EventArgs e ) : void
RecalcCustomScrollBars ( ) : void

Recalculate the scrollbars position and size.

RecalcHScrollBar ( int cols ) : void

recalculate the position of the horizontal scrollbar

RecalcVScrollBar ( int rows ) : void

Recalculate the position of the vertical scrollbar

VScroll_Change ( object sender, EventArgs e ) : void

Method Details

CreateDockControls() protected method

protected CreateDockControls ( ) : void
return void

CustomScrollControl() public method

public CustomScrollControl ( ) : System
return System

CustomScrollLineDown() public method

Scroll the page down one line
public CustomScrollLineDown ( ) : void
return void

CustomScrollLineLeft() public method

Scroll the page left one line
public CustomScrollLineLeft ( ) : void
return void

CustomScrollLineRight() public method

Scroll the page right one line
public CustomScrollLineRight ( ) : void
return void

CustomScrollLineUp() public method

Scroll the page up one line
public CustomScrollLineUp ( ) : void
return void

CustomScrollPageDown() public method

Scroll the page down
public CustomScrollPageDown ( ) : void
return void

CustomScrollPageLeft() public method

Scroll the page left
public CustomScrollPageLeft ( ) : void
return void

CustomScrollPageRight() public method

Scroll the page right
public CustomScrollPageRight ( ) : void
return void

CustomScrollPageUp() public method

Scroll the page up
public CustomScrollPageUp ( ) : void
return void

CustomScrollWheel() public method

public CustomScrollWheel ( int rotationDelta ) : void
rotationDelta int
return void

GetScrollColumns() protected abstract method

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 abstract GetScrollColumns ( int displayWidth ) : int
displayWidth int
return int

GetScrollRows() protected abstract method

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 abstract GetScrollRows ( int displayHeight ) : int
displayHeight int
return int

InvalidateScrollableArea() protected abstract method

Invalidate the scrollable area
protected abstract InvalidateScrollableArea ( ) : void
return void

IsSuspended() public method

public IsSuspended ( ) : bool
return bool

LoadScrollArea() protected method

Load the scrollable area that will affect the maximum scroll values.
protected LoadScrollArea ( int verticalPage, int horizontalPage ) : void
verticalPage int
horizontalPage int
return void

OnHScrollPositionChanged() protected method

Fired when the scroll horizontal posizion change
protected OnHScrollPositionChanged ( ScrollPositionChangedEventArgs e ) : void
e ScrollPositionChangedEventArgs
return void

OnLayout() protected method

OnLayout Method
protected OnLayout ( System.Windows.Forms.LayoutEventArgs levent ) : void
levent System.Windows.Forms.LayoutEventArgs
return void

OnVScrollPositionChanged() protected method

Fired when the scroll vertical posizion change
protected OnVScrollPositionChanged ( ScrollPositionChangedEventArgs e ) : void
e ScrollPositionChangedEventArgs
return void

PerformLayout() public method

public PerformLayout ( ) : void
return void

PerformLayout() public method

public PerformLayout ( Control affectedControl, string affectedProperty ) : void
affectedControl System.Windows.Forms.Control
affectedProperty string
return void

PrepareScrollBars() protected method

Prepare the scrollbars with the specified dock option.
protected PrepareScrollBars ( bool showHScroll, bool showVScroll ) : void
showHScroll bool
showVScroll bool
return void

ResumeLayout() public method

public ResumeLayout ( ) : void
return void

ResumeLayout() public method

public ResumeLayout ( bool performLayout ) : void
performLayout bool
return void

SetHScrollBarVisible() protected method

protected SetHScrollBarVisible ( bool value ) : void
value bool
return void

SetVScrollBarVisible() protected method

protected SetVScrollBarVisible ( bool value ) : void
value bool
return void

SuspendLayout() public method

public SuspendLayout ( ) : void
return void