C# Класс ComponentFactory.Krypton.Toolkit.ViewLayoutViewport

View element that allows scrolling around a contained view element.
Наследование: ViewComposite
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
ApplyPadding System.Drawing.Rectangle
CalculateAlignedOffset int
MoveDirection void
OffsetForChildRect Point
OnAnimationTick void

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Clean up any resources being used.

Приватные методы

Метод Описание
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

Описание методов

BringIntoView() публичный Метод

Move viewport to display the requested part of area.
public BringIntoView ( Rectangle rect ) : void
rect System.Drawing.Rectangle Rectangle to display.
Результат void

Dispose() защищенный Метод

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Результат void

GetPreferredSize() публичный Метод

Discover the preferred size of the element.
public GetPreferredSize ( ViewLayoutContext context ) : Size
context ViewLayoutContext Layout context.
Результат System.Drawing.Size

Layout() публичный Метод

Perform a layout of the elements.
public Layout ( ViewLayoutContext context ) : void
context ViewLayoutContext Layout context.
Результат void

MoveNext() публичный Метод

Move the viewport to show the next part of area.
public MoveNext ( ) : void
Результат void

MovePrevious() публичный Метод

Move the viewport to show the previous part of area.
public MovePrevious ( ) : void
Результат void

Render() публичный Метод

Perform a render of the elements.
public Render ( RenderContext context ) : void
context RenderContext Rendering context.
Результат void

SetMetrics() публичный Метод

Updates the metrics source and metric to use.
public SetMetrics ( IPaletteMetric paletteMetric ) : void
paletteMetric IPaletteMetric Source for aquiring metrics.
Результат void

SetMetrics() публичный Метод

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.
Результат void

SetOffsetH() публичный Метод

Update the horizontal scrolling offset.
public SetOffsetH ( int offset ) : void
offset int New offset to use.
Результат void

SetOffsetV() публичный Метод

Update the vertical scrolling offset.
public SetOffsetV ( int offset ) : void
offset int New offset to use.
Результат void

ToString() публичный Метод

Obtains the String representation of this instance.
public ToString ( ) : string
Результат string

ViewLayoutViewport() публичный Метод

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.
Результат System