C# Class ComponentFactory.Krypton.Toolkit.ButtonSpecManagerDraw

Manage a collection of button specs for placing within a collection of ViewDrawDocker instances.
Inheritance: ButtonSpecManagerBase
ファイルを表示 Open project: ComponentFactory/Krypton Class Usage Examples

Public Methods

Method Description
ButtonSpecManagerDraw ( Control control, PaletteRedirect redirector, ButtonSpecCollectionBase variableSpecs, ButtonSpecCollectionBase fixedSpecs, ViewDrawDocker viewDockers, IPaletteMetric viewMetrics, PaletteMetricInt viewMetricIntOutside, PaletteMetricInt viewMetricIntInside, PaletteMetricPadding viewMetricPaddings, GetToolStripRenderer getRenderer, NeedPaintHandler needPaint ) : System

Initialize a new instance of the ButtonSpecManagerDraw class.

ButtonSpecManagerDraw ( Control control, PaletteRedirect redirector, ButtonSpecCollectionBase variableSpecs, ButtonSpecCollectionBase fixedSpecs, ViewDrawDocker viewDockers, IPaletteMetric viewMetrics, PaletteMetricInt viewMetricInt, PaletteMetricPadding viewMetricPaddings, GetToolStripRenderer getRenderer, NeedPaintHandler needPaint ) : System

Initialize a new instance of the ButtonSpecManagerDraw class.

Protected Methods

Method Description
AddSpacersToDocker ( int i, ViewLayoutMetricSpacer spacerL, ViewLayoutMetricSpacer spacerR ) : void

Add the spacing views into the indexed docker.

AddViewToDocker ( int i, ViewDockStyle dockStyle, ViewBase view, bool usingSpacers ) : void

Add a view element to a docker.

DockerIndex ( ViewBase viewDocker ) : int

Gets the index of the provided docker.

DockerOrientation ( int i ) : VisualOrientation

Gets the orientation of the docker at the specified index.

GetDockerForeground ( int i ) : ViewDrawContent

Gets the element that represents the foreground color.

IndexDocker ( int i ) : ViewBase

Gets the docker at the specified index.

Method Details

AddSpacersToDocker() protected method

Add the spacing views into the indexed docker.
protected AddSpacersToDocker ( int i, ViewLayoutMetricSpacer spacerL, ViewLayoutMetricSpacer spacerR ) : void
i int Index of docker.
spacerL ViewLayoutMetricSpacer Spacer for the left side.
spacerR ViewLayoutMetricSpacer Spacer for the right side.
return void

AddViewToDocker() protected method

Add a view element to a docker.
protected AddViewToDocker ( int i, ViewDockStyle dockStyle, ViewBase view, bool usingSpacers ) : void
i int Index of view docker.
dockStyle ViewDockStyle Dock style for placement.
view ViewBase Actual view to add.
usingSpacers bool Are view spacers being used.
return void

ButtonSpecManagerDraw() public method

Initialize a new instance of the ButtonSpecManagerDraw class.
public ButtonSpecManagerDraw ( Control control, PaletteRedirect redirector, ButtonSpecCollectionBase variableSpecs, ButtonSpecCollectionBase fixedSpecs, ViewDrawDocker viewDockers, IPaletteMetric viewMetrics, PaletteMetricInt viewMetricIntOutside, PaletteMetricInt viewMetricIntInside, PaletteMetricPadding viewMetricPaddings, GetToolStripRenderer getRenderer, NeedPaintHandler needPaint ) : System
control System.Windows.Forms.Control Control that owns the button manager.
redirector PaletteRedirect Palette redirector.
variableSpecs ButtonSpecCollectionBase Variable set of button specifications.
fixedSpecs ButtonSpecCollectionBase Fixed set of button specifications.
viewDockers ViewDrawDocker Array of target view dockers.
viewMetrics IPaletteMetric Array of target metric providers.
viewMetricIntOutside PaletteMetricInt Array of target metrics for outside spacer size.
viewMetricIntInside PaletteMetricInt Array of target metrics for inside spacer size.
viewMetricPaddings PaletteMetricPadding Array of target metrics for button padding.
getRenderer GetToolStripRenderer Delegate for returning a tool strip renderer.
needPaint NeedPaintHandler Delegate for notifying paint requests.
return System

ButtonSpecManagerDraw() public method

Initialize a new instance of the ButtonSpecManagerDraw class.
public ButtonSpecManagerDraw ( Control control, PaletteRedirect redirector, ButtonSpecCollectionBase variableSpecs, ButtonSpecCollectionBase fixedSpecs, ViewDrawDocker viewDockers, IPaletteMetric viewMetrics, PaletteMetricInt viewMetricInt, PaletteMetricPadding viewMetricPaddings, GetToolStripRenderer getRenderer, NeedPaintHandler needPaint ) : System
control System.Windows.Forms.Control Control that owns the button manager.
redirector PaletteRedirect Palette redirector.
variableSpecs ButtonSpecCollectionBase Variable set of button specifications.
fixedSpecs ButtonSpecCollectionBase Fixed set of button specifications.
viewDockers ViewDrawDocker Array of target view dockers.
viewMetrics IPaletteMetric Array of target metric providers.
viewMetricInt PaletteMetricInt Array of target metrics for outside/inside spacer size.
viewMetricPaddings PaletteMetricPadding Array of target metrics for button padding.
getRenderer GetToolStripRenderer Delegate for returning a tool strip renderer.
needPaint NeedPaintHandler Delegate for notifying paint requests.
return System

DockerIndex() protected method

Gets the index of the provided docker.
protected DockerIndex ( ViewBase viewDocker ) : int
viewDocker ViewBase View docker reference.
return int

DockerOrientation() protected method

Gets the orientation of the docker at the specified index.
protected DockerOrientation ( int i ) : VisualOrientation
i int Index.
return VisualOrientation

GetDockerForeground() protected method

Gets the element that represents the foreground color.
protected GetDockerForeground ( int i ) : ViewDrawContent
i int Index.
return ViewDrawContent

IndexDocker() protected method

Gets the docker at the specified index.
protected IndexDocker ( int i ) : ViewBase
i int Index.
return ViewBase