C# Class ComponentFactory.Krypton.Toolkit.ViewLayoutMetricSpacer

View element that draws nothing and just takes up the metric provided size.
Inheritance: ViewLeaf
Mostra file 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.

SetMetrics ( IPaletteMetric paletteMetric ) : void

Updates the metrics source and metric to use.

SetMetrics ( IPaletteMetric paletteMetric, PaletteMetricInt metricInt ) : void

Updates the metrics source and metric to use.

ToString ( ) : string

Obtains the String representation of this instance.

ViewLayoutMetricSpacer ( IPaletteMetric paletteMetric, PaletteMetricInt metricInt ) : System

Initialize a new instance of the ViewLayoutMetricSpacer 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

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, PaletteMetricInt metricInt ) : void
paletteMetric IPaletteMetric Source for aquiring metrics.
metricInt PaletteMetricInt Actual integer metric to use.
return void

ToString() public method

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

ViewLayoutMetricSpacer() public method

Initialize a new instance of the ViewLayoutMetricSpacer class.
public ViewLayoutMetricSpacer ( IPaletteMetric paletteMetric, PaletteMetricInt metricInt ) : System
paletteMetric IPaletteMetric Palette source for metric values.
metricInt PaletteMetricInt Metric used to get spacer size.
return System