C# Class ComponentFactory.Krypton.Navigator.ViewLayoutBar

View element that can size and position each page entry on the bar.
Inheritance: ComponentFactory.Krypton.Toolkit.ViewComposite
Mostra file Open project: ComponentFactory/Krypton Class Usage Examples

Private Properties

Property Type Description
FindStartingXPosition int
FindStartingYPosition int

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 metricGap ) : void

Updates the metrics source and metric to use.

ToString ( ) : string

Obtains the String representation of this instance.

ViewLayoutBar ( BarItemSizing itemSizing, RelativePositionAlign itemAlignment, BarMultiline barMultiline, Size itemMinimumSize, Size itemMaximumSize, int barMinimumHeight, TabBorderStyle tabBorderStyle, bool reorderSelectedLine ) : System

Initialize a new instance of the ViewLayoutBar class.

ViewLayoutBar ( IPaletteMetric paletteMetric, PaletteMetricInt metricGap, BarItemSizing itemSizing, RelativePositionAlign itemAlignment, BarMultiline barMultiline, Size itemMinimumSize, Size itemMaximumSize, int barMinimumHeight, TabBorderStyle tabBorderStyle, bool reorderSelectedLine ) : System

Initialize a new instance of the ViewLayoutBar class.

ViewLayoutBar ( IPaletteMetric paletteMetric, PaletteMetricInt metricGap, BarItemSizing itemSizing, RelativePositionAlign itemAlignment, BarMultiline barMultiline, Size itemMinimumSize, Size itemMaximumSize, int barMinimumHeight, bool reorderSelectedLine ) : System

Initialize a new instance of the ViewLayoutBar class.

Private Methods

Method Description
FindStartingXPosition ( ViewLayoutContext context, LineDetails lineDetails, bool reversePosition ) : int
FindStartingYPosition ( ViewLayoutContext context, LineDetails lineDetails, bool reversePosition ) : int

Method Details

GetPreferredSize() public method

Discover the preferred size of the element.
public GetPreferredSize ( ViewLayoutContext context ) : Size
context ComponentFactory.Krypton.Toolkit.ViewLayoutContext Layout context.
return System.Drawing.Size

Layout() public method

Perform a layout of the elements.
public Layout ( ViewLayoutContext context ) : void
context ComponentFactory.Krypton.Toolkit.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 metricGap ) : void
paletteMetric IPaletteMetric Palette source for metric values.
metricGap PaletteMetricInt Metric for gap between each child item.
return void

ToString() public method

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

ViewLayoutBar() public method

Initialize a new instance of the ViewLayoutBar class.
public ViewLayoutBar ( BarItemSizing itemSizing, RelativePositionAlign itemAlignment, BarMultiline barMultiline, Size itemMinimumSize, Size itemMaximumSize, int barMinimumHeight, TabBorderStyle tabBorderStyle, bool reorderSelectedLine ) : System
itemSizing BarItemSizing Method used to calculate item size.
itemAlignment RelativePositionAlign Method used to align items within lines.
barMultiline BarMultiline Multline showing of items.
itemMinimumSize System.Drawing.Size Maximum allowed item size.
itemMaximumSize System.Drawing.Size Minimum allowed item size.
barMinimumHeight int Minimum height of the bar.
tabBorderStyle TabBorderStyle Tab border style.
reorderSelectedLine bool Should line with selection be reordered.
return System

ViewLayoutBar() public method

Initialize a new instance of the ViewLayoutBar class.
public ViewLayoutBar ( IPaletteMetric paletteMetric, PaletteMetricInt metricGap, BarItemSizing itemSizing, RelativePositionAlign itemAlignment, BarMultiline barMultiline, Size itemMinimumSize, Size itemMaximumSize, int barMinimumHeight, TabBorderStyle tabBorderStyle, bool reorderSelectedLine ) : System
paletteMetric IPaletteMetric Palette source for metric values.
metricGap PaletteMetricInt Metric for gap between each child item.
itemSizing BarItemSizing Method used to calculate item size.
itemAlignment RelativePositionAlign Method used to align items within lines.
barMultiline BarMultiline Multline showing of items.
itemMinimumSize System.Drawing.Size Maximum allowed item size.
itemMaximumSize System.Drawing.Size Minimum allowed item size.
barMinimumHeight int Minimum height of the bar.
tabBorderStyle TabBorderStyle Tab border style.
reorderSelectedLine bool Should line with selection be reordered.
return System

ViewLayoutBar() public method

Initialize a new instance of the ViewLayoutBar class.
public ViewLayoutBar ( IPaletteMetric paletteMetric, PaletteMetricInt metricGap, BarItemSizing itemSizing, RelativePositionAlign itemAlignment, BarMultiline barMultiline, Size itemMinimumSize, Size itemMaximumSize, int barMinimumHeight, bool reorderSelectedLine ) : System
paletteMetric IPaletteMetric Palette source for metric values.
metricGap PaletteMetricInt Metric for gap between each child item.
itemSizing BarItemSizing Method used to calculate item size.
itemAlignment RelativePositionAlign Method used to align items within lines.
barMultiline BarMultiline Multline showing of items.
itemMinimumSize System.Drawing.Size Maximum allowed item size.
itemMaximumSize System.Drawing.Size Minimum allowed item size.
barMinimumHeight int Minimum height of the bar.
reorderSelectedLine bool Should line with selection be reordered.
return System