C# Class ComponentFactory.Krypton.Toolkit.ViewDrawScrollBar

View element that draws a scrollbar.
Inheritance: ViewLeaf
Show file Open project: ComponentFactory/Krypton Class Usage Examples

Public Methods

Method 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.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Release unmanaged and optionally managed resources.

Private Methods

Method Description
CreateScrollBar ( Control parent ) : void
OnScrollBarChange ( object sender, ScrollEventArgs e ) : void
RemoveScrollBar ( ) : void

Method Details

Dispose() protected method

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

GetPreferredSize() public method

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

Layout() public method

Perform a layout of the elements.
public Layout ( ViewLayoutContext context ) : void
context ViewLayoutContext Layout context.
return void

SetScrollValues() public method

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.
return void

ToString() public method

Obtains the String representation of this instance.
public ToString ( ) : string
return string

ViewDrawScrollBar() public method

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