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

View element that draws nothing and just takes up the metric provided size.
Наследование: ViewLeaf
Показать файл Открыть проект Примеры использования класса

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

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

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

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

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, PaletteMetricInt metricInt ) : void
paletteMetric IPaletteMetric Source for aquiring metrics.
metricInt PaletteMetricInt Actual integer metric to use.
Результат void

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

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

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

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