C# Class ComponentFactory.Krypton.Toolkit.ButtonSpecManagerDraw

Manage a collection of button specs for placing within a collection of ViewDrawDocker instances.
Inheritance: ButtonSpecManagerBase
Afficher le fichier Open project: ComponentFactory/Krypton Class Usage Examples

Méthodes publiques

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

Méthodes protégées

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

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

AddViewToDocker() protected méthode

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

ButtonSpecManagerDraw() public méthode

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

ButtonSpecManagerDraw() public méthode

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

DockerIndex() protected méthode

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

DockerOrientation() protected méthode

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

GetDockerForeground() protected méthode

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

IndexDocker() protected méthode

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