C# Class ComponentFactory.Krypton.Toolkit.ViewLayoutViewport

View element that allows scrolling around a contained view element.
Inheritance: ViewComposite
Afficher le fichier Open project: ComponentFactory/Krypton Class Usage Examples

Private Properties

Свойство Type Description
ApplyPadding System.Drawing.Rectangle
CalculateAlignedOffset int
MoveDirection void
OffsetForChildRect Point
OnAnimationTick void

Méthodes publiques

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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

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

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

Dispose() protected méthode

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

MoveNext() public méthode

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

MovePrevious() public méthode

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

Render() public méthode

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

SetMetrics() public méthode

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

SetMetrics() public méthode

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.
Résultat void

SetOffsetH() public méthode

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

SetOffsetV() public méthode

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

ToString() public méthode

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

ViewLayoutViewport() public méthode

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.
Résultat System