C# Class ComponentFactory.Krypton.Toolkit.ViewLayoutCenter

View element that draws nothing and will center all children within itself.
Inheritance: ViewComposite
Datei anzeigen Open project: ComponentFactory/Krypton Class Usage Examples

Public Methods

Method Description
GetPreferredSize ( ViewLayoutContext context ) : Size

Discover the preferred size of the element.

Layout ( ViewLayoutContext context ) : void

Perform a layout of the elements.

ToString ( ) : string

Obtains the String representation of this instance.

ViewLayoutCenter ( ) : System

Initialize a new instance of the ViewLayoutCenter class.

ViewLayoutCenter ( IPaletteMetric paletteMetric, PaletteMetricPadding metricPadding, VisualOrientation orientation ) : System

Initialize a new instance of the ViewLayoutCenter class.

ViewLayoutCenter ( IPaletteMetric paletteMetric, PaletteMetricPadding metricPadding, VisualOrientation orientation, ViewBase childElement ) : System

Initialize a new instance of the ViewLayoutCenter class.

ViewLayoutCenter ( ViewBase childElement ) : System

Initialize a new instance of the ViewLayoutCenter class.

ViewLayoutCenter ( int size ) : System

Initialize a new instance of the ViewLayoutCenter class.

Method Details

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

ToString() public method

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

ViewLayoutCenter() public method

Initialize a new instance of the ViewLayoutCenter class.
public ViewLayoutCenter ( ) : System
return System

ViewLayoutCenter() public method

Initialize a new instance of the ViewLayoutCenter class.
public ViewLayoutCenter ( IPaletteMetric paletteMetric, PaletteMetricPadding metricPadding, VisualOrientation orientation ) : System
paletteMetric IPaletteMetric Target for recovering metric values.
metricPadding PaletteMetricPadding Metric to use for border padding.
orientation VisualOrientation Orientation of the element.
return System

ViewLayoutCenter() public method

Initialize a new instance of the ViewLayoutCenter class.
public ViewLayoutCenter ( IPaletteMetric paletteMetric, PaletteMetricPadding metricPadding, VisualOrientation orientation, ViewBase childElement ) : System
paletteMetric IPaletteMetric Target for recovering metric values.
metricPadding PaletteMetricPadding Metric to use for border padding.
orientation VisualOrientation Orientation of the element.
childElement ViewBase Optional element to add as child.
return System

ViewLayoutCenter() public method

Initialize a new instance of the ViewLayoutCenter class.
public ViewLayoutCenter ( ViewBase childElement ) : System
childElement ViewBase Optional element to add as child.
return System

ViewLayoutCenter() public method

Initialize a new instance of the ViewLayoutCenter class.
public ViewLayoutCenter ( int size ) : System
size int Manual padding amount.
return System