C# Class SourceGrid.CustomScrollControl

Inheritance: System.Windows.Forms.Panel
Afficher le fichier Open project: zhuangyy/Motion

Private Properties

Свойство Type Description
HScroll_Change void
RecalcCustomScrollBars void
RecalcHScrollBar void
RecalcVScrollBar void
VScroll_Change void

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Méthode 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 méthode

protected CreateDockControls ( ) : void
Résultat void

CustomScrollControl() public méthode

public CustomScrollControl ( ) : System
Résultat System

CustomScrollLineDown() public méthode

Scroll the page down one line
public CustomScrollLineDown ( ) : void
Résultat void

CustomScrollLineLeft() public méthode

Scroll the page left one line
public CustomScrollLineLeft ( ) : void
Résultat void

CustomScrollLineRight() public méthode

Scroll the page right one line
public CustomScrollLineRight ( ) : void
Résultat void

CustomScrollLineUp() public méthode

Scroll the page up one line
public CustomScrollLineUp ( ) : void
Résultat void

CustomScrollPageDown() public méthode

Scroll the page down
public CustomScrollPageDown ( ) : void
Résultat void

CustomScrollPageLeft() public méthode

Scroll the page left
public CustomScrollPageLeft ( ) : void
Résultat void

CustomScrollPageRight() public méthode

Scroll the page right
public CustomScrollPageRight ( ) : void
Résultat void

CustomScrollPageUp() public méthode

Scroll the page up
public CustomScrollPageUp ( ) : void
Résultat void

CustomScrollWheel() public méthode

public CustomScrollWheel ( int rotationDelta ) : void
rotationDelta int
Résultat void

GetScrollColumns() protected abstract méthode

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
Résultat int

GetScrollRows() protected abstract méthode

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
Résultat int

InvalidateScrollableArea() protected abstract méthode

Invalidate the scrollable area
protected abstract InvalidateScrollableArea ( ) : void
Résultat void

IsSuspended() public méthode

public IsSuspended ( ) : bool
Résultat bool

LoadScrollArea() protected méthode

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

OnHScrollPositionChanged() protected méthode

Fired when the scroll horizontal posizion change
protected OnHScrollPositionChanged ( ScrollPositionChangedEventArgs e ) : void
e ScrollPositionChangedEventArgs
Résultat void

OnLayout() protected méthode

OnLayout Method
protected OnLayout ( System.Windows.Forms.LayoutEventArgs levent ) : void
levent System.Windows.Forms.LayoutEventArgs
Résultat void

OnVScrollPositionChanged() protected méthode

Fired when the scroll vertical posizion change
protected OnVScrollPositionChanged ( ScrollPositionChangedEventArgs e ) : void
e ScrollPositionChangedEventArgs
Résultat void

PerformLayout() public méthode

public PerformLayout ( ) : void
Résultat void

PerformLayout() public méthode

public PerformLayout ( Control affectedControl, string affectedProperty ) : void
affectedControl System.Windows.Forms.Control
affectedProperty string
Résultat void

PrepareScrollBars() protected méthode

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

ResumeLayout() public méthode

public ResumeLayout ( ) : void
Résultat void

ResumeLayout() public méthode

public ResumeLayout ( bool performLayout ) : void
performLayout bool
Résultat void

SetHScrollBarVisible() protected méthode

protected SetHScrollBarVisible ( bool value ) : void
value bool
Résultat void

SetVScrollBarVisible() protected méthode

protected SetVScrollBarVisible ( bool value ) : void
value bool
Résultat void

SuspendLayout() public méthode

public SuspendLayout ( ) : void
Résultat void