C# Class ComponentFactory.Krypton.Toolkit.ViewLayoutViewport

View element that allows scrolling around a contained view element.
Inheritance: ViewComposite
显示文件 Open project: ComponentFactory/Krypton Class Usage Examples

Private Properties

Property Type Description
ApplyPadding System.Drawing.Rectangle
CalculateAlignedOffset int
MoveDirection void
OffsetForChildRect Point
OnAnimationTick void

Public Methods

Method Description
BringIntoView ( Rectangle rect ) : void

Move viewport to display the requested part of area.

GetPreferredSize ( ViewLayoutContext context ) : Size

Discover the preferred size of the element.

Layout ( ViewLayoutContext context ) : void

Perform a layout of the elements.

MoveNext ( ) : void

Move the viewport to show the next part of area.

MovePrevious ( ) : void

Move the viewport to show the previous part of area.

Render ( RenderContext context ) : void

Perform a render of the elements.

SetMetrics ( IPaletteMetric paletteMetric ) : void

Updates the metrics source and metric to use.

SetMetrics ( IPaletteMetric paletteMetric, PaletteMetricPadding metricPadding, PaletteMetricInt metricOvers ) : void

Updates the metrics source and metric to use.

SetOffsetH ( int offset ) : void

Update the horizontal scrolling offset.

SetOffsetV ( int offset ) : void

Update the vertical scrolling offset.

ToString ( ) : string

Obtains the String representation of this instance.

ViewLayoutViewport ( IPaletteMetric paletteMetrics, PaletteMetricPadding metricPadding, PaletteMetricInt metricOvers, VisualOrientation orientation, RelativePositionAlign alignment, bool animateChange ) : System

Initialize a new instance of the ViewLayoutViewport class.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
ApplyPadding ( Rectangle rect, Padding padding ) : Rectangle
CalculateAlignedOffset ( RelativePositionAlign alignment, int posRect, int posRectLength, int offset, int extent, int limit ) : int
MoveDirection ( bool next ) : void
OffsetForChildRect ( Rectangle rect ) : Point
OnAnimationTick ( object sender, EventArgs e ) : void

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

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
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

MoveNext() public method

Move the viewport to show the next part of area.
public MoveNext ( ) : void
return void

MovePrevious() public method

Move the viewport to show the previous part of area.
public MovePrevious ( ) : void
return void

Render() public method

Perform a render of the elements.
public Render ( RenderContext context ) : void
context RenderContext Rendering context.
return void

SetMetrics() public method

Updates the metrics source and metric to use.
public SetMetrics ( IPaletteMetric paletteMetric ) : void
paletteMetric IPaletteMetric Source for aquiring metrics.
return void

SetMetrics() public method

Updates the metrics source and metric to use.
public SetMetrics ( IPaletteMetric paletteMetric, PaletteMetricPadding metricPadding, PaletteMetricInt metricOvers ) : void
paletteMetric IPaletteMetric Source for aquiring metrics.
metricPadding PaletteMetricPadding Actual padding metric to use.
metricOvers PaletteMetricInt Actual overs metric to use.
return void

SetOffsetH() public method

Update the horizontal scrolling offset.
public SetOffsetH ( int offset ) : void
offset int New offset to use.
return void

SetOffsetV() public method

Update the vertical scrolling offset.
public SetOffsetV ( int offset ) : void
offset int New offset to use.
return void

ToString() public method

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

ViewLayoutViewport() public method

Initialize a new instance of the ViewLayoutViewport class.
public ViewLayoutViewport ( IPaletteMetric paletteMetrics, PaletteMetricPadding metricPadding, PaletteMetricInt metricOvers, VisualOrientation orientation, RelativePositionAlign alignment, bool animateChange ) : System
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.
return System