C# Class ComponentFactory.Krypton.Toolkit.ViewLayoutScrollViewport

View element that provides scrollbars around a viewport filler.
Inheritance: ViewLayoutDocker
Mostra file Open project: ComponentFactory/Krypton Class Usage Examples

Public Methods

Method Description
BringIntoView ( Rectangle rect ) : void

Move viewport to display the requested part of area.

Layout ( ViewLayoutContext context ) : void

Perform a layout of the elements.

MakeParent ( Control c ) : void

Make the provided control parented to ourself.

RevertParent ( Control newParent, Control c ) : void

Revert the provided control back to a different control.

SetPalettes ( PaletteBorderEdge borderEdge ) : void

Update the palettes being used by the view.

ToString ( ) : string

Obtains the String representation of this instance.

ViewLayoutScrollViewport ( VisualControl rootControl, ViewBase viewportFiller, PaletteBorderEdge paletteBorderEdge, IPaletteMetric paletteMetrics, PaletteMetricPadding metricPadding, PaletteMetricInt metricOvers, VisualOrientation orientation, RelativePositionAlign alignment, bool animateChange, bool vertical, NeedPaintHandler needPaintDelegate ) : System

Initialize a new instance of the ViewLayoutScrollViewport class.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Release unmanaged and optionally managed resources.

DockerLayout ( ViewLayoutContext context ) : void

Ask the base docker element to perform a layout.

NeedPaint ( bool needLayout ) : void

Requests a paint and optional layout of the control.

Private Methods

Method Description
OnAnimateStep ( object sender, EventArgs e ) : void
OnScrollHChanged ( object sender, EventArgs e ) : void
OnScrollVChanged ( object sender, EventArgs e ) : void
ViewportOrientation ( bool vertical ) : VisualOrientation

Method Details

BringIntoView() public method

Move viewport to display the requested part of area.
public BringIntoView ( Rectangle rect ) : void
rect System.Drawing.Rectangle Rectangle to display.
return void

Dispose() protected method

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

DockerLayout() protected method

Ask the base docker element to perform a layout.
protected DockerLayout ( ViewLayoutContext context ) : void
context ViewLayoutContext
return void

Layout() public method

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

MakeParent() public method

Make the provided control parented to ourself.
public MakeParent ( Control c ) : void
c System.Windows.Forms.Control Control to reparent.
return void

NeedPaint() protected method

Requests a paint and optional layout of the control.
protected NeedPaint ( bool needLayout ) : void
needLayout bool Is a layout required.
return void

RevertParent() public method

Revert the provided control back to a different control.
public RevertParent ( Control newParent, Control c ) : void
newParent System.Windows.Forms.Control Control to become parent.
c System.Windows.Forms.Control Control to reparent.
return void

SetPalettes() public method

Update the palettes being used by the view.
public SetPalettes ( PaletteBorderEdge borderEdge ) : void
borderEdge PaletteBorderEdge Palette for the border edge.
return void

ToString() public method

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

ViewLayoutScrollViewport() public method

Initialize a new instance of the ViewLayoutScrollViewport class.
public ViewLayoutScrollViewport ( VisualControl rootControl, ViewBase viewportFiller, PaletteBorderEdge paletteBorderEdge, IPaletteMetric paletteMetrics, PaletteMetricPadding metricPadding, PaletteMetricInt metricOvers, VisualOrientation orientation, RelativePositionAlign alignment, bool animateChange, bool vertical, NeedPaintHandler needPaintDelegate ) : System
rootControl VisualControl Top level visual control.
viewportFiller ViewBase View element to place inside viewport.
paletteBorderEdge PaletteBorderEdge Palette for use with the border edge.
paletteMetrics IPaletteMetric Palette source for metrics.
metricPadding PaletteMetricPadding Metric used to get view padding.
metricOvers PaletteMetricInt Metric used to get overposition.
orientation VisualOrientation Orientation for the viewport children.
alignment RelativePositionAlign Alignment of the children within the viewport.
animateChange bool Animate changes in the viewport.
vertical bool Is the viewport vertical.
needPaintDelegate NeedPaintHandler Delegate for notifying paint requests.
return System