C# 클래스 ComponentFactory.Krypton.Toolkit.ViewLayoutViewport

View element that allows scrolling around a contained view element.
상속: ViewComposite
파일 보기 프로젝트 열기: ComponentFactory/Krypton 1 사용 예제들

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