C# Class ComponentFactory.Krypton.Toolkit.ViewLayoutMetricSpacer

View element that draws nothing and just takes up the metric provided size.
Inheritance: ViewLeaf
Afficher le fichier Open project: ComponentFactory/Krypton Class Usage Examples

Méthodes publiques

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

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

ToString() public méthode

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

ViewLayoutMetricSpacer() public méthode

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