C# Class ComponentFactory.Krypton.Toolkit.ViewDrawScrollBar

View element that draws a scrollbar.
Inheritance: ViewLeaf
Afficher le fichier Open project: ComponentFactory/Krypton Class Usage Examples

Méthodes publiques

Méthode Description
GetPreferredSize ( ViewLayoutContext context ) : Size

Discover the preferred size of the element.

Layout ( ViewLayoutContext context ) : void

Perform a layout of the elements.

SetScrollValues ( int min, int max, int smallChange, int largeChange, int offset ) : void

Update the scrollbar with the latest scrolling values.

ToString ( ) : string

Obtains the String representation of this instance.

ViewDrawScrollBar ( bool vertical ) : System

Initialize a new instance of the ViewDrawScrollBar class.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Release unmanaged and optionally managed resources.

Private Methods

Méthode Description
CreateScrollBar ( Control parent ) : void
OnScrollBarChange ( object sender, ScrollEventArgs e ) : void
RemoveScrollBar ( ) : void

Method Details

Dispose() protected méthode

Release unmanaged and optionally managed resources.
protected Dispose ( bool disposing ) : void
disposing bool Called from Dispose method.
Résultat void

GetPreferredSize() public méthode

Discover the preferred size of the element.
public GetPreferredSize ( ViewLayoutContext context ) : Size
context ViewLayoutContext Layout context.
Résultat System.Drawing.Size

Layout() public méthode

Perform a layout of the elements.
public Layout ( ViewLayoutContext context ) : void
context ViewLayoutContext Layout context.
Résultat void

SetScrollValues() public méthode

Update the scrollbar with the latest scrolling values.
public SetScrollValues ( int min, int max, int smallChange, int largeChange, int offset ) : void
min int Scroll minimum value.
max int Scroll maximum value.
smallChange int Size of a small change.
largeChange int Size of a large change.
offset int Current scrolling offset.
Résultat void

ToString() public méthode

Obtains the String representation of this instance.
public ToString ( ) : string
Résultat string

ViewDrawScrollBar() public méthode

Initialize a new instance of the ViewDrawScrollBar class.
public ViewDrawScrollBar ( bool vertical ) : System
vertical bool Is this a vertical scrollbar.
Résultat System