C# Class ComponentFactory.Krypton.Toolkit.ViewDrawDocker

Extends the ViewDrawCanvas by applying a docking style for each child.
Inheritance: ViewDrawCanvas
Afficher le fichier Open project: ComponentFactory/Krypton Class Usage Examples

Méthodes publiques

Méthode Description
Add ( ViewBase item, ViewDockStyle dock ) : void

Append a view to the collection.

EvalTransparentPaint ( ViewContext context ) : bool

Evaluate the need for drawing transparent areas.

GetDock ( ViewBase child ) : ViewDockStyle

Gets the dock setting for the provided child instance.

GetNonChildSize ( ViewLayoutContext context ) : Size

Gets the size required for all except the contents.

GetPreferredSize ( ViewLayoutContext context ) : Size

Discover the preferred size of the element.

Layout ( ViewLayoutContext context ) : void

Perform a layout of the elements.

SetDock ( ViewBase child, ViewDockStyle dock ) : void

Sets the dock setting for the provided child instance.

ToString ( ) : string

Obtains the String representation of this instance.

ViewDrawDocker ( ) : System

Initialize a new instance of the ViewDrawDocker class.

ViewDrawDocker ( IPaletteBack paletteBack, IPaletteBorder paletteBorder ) : System

Initialize a new instance of the ViewDrawDocker class.

ViewDrawDocker ( IPaletteBack paletteBack, IPaletteBorder paletteBorder, IPaletteMetric paletteMetric ) : System

Initialize a new instance of the ViewDrawDocker class.

ViewDrawDocker ( IPaletteBack paletteBack, IPaletteBorder paletteBorder, IPaletteMetric paletteMetric, PaletteMetricBool metricOverlay ) : System

Initialize a new instance of the ViewDrawDocker class.

ViewDrawDocker ( IPaletteBack paletteBack, IPaletteBorder paletteBorder, IPaletteMetric paletteMetric, PaletteMetricBool metricOverlay, PaletteMetricPadding metricPadding, VisualOrientation orientation ) : System

Initialize a new instance of the ViewDrawDocker class.

Méthodes protégées

Méthode Description
CalculateDock ( ViewDockStyle ds, Control control ) : ViewDockStyle

Find the actual docking to apply for the specified RightToLeft setting.

OrientateDock ( ViewDockStyle style ) : ViewDockStyle

Update the incoming dock style to reflect our orientation.

Private Methods

Méthode Description
AdjustPaddingForDockers ( Padding padding, Rectangle fillerRect, int borderWidth ) : Padding
UpdateChildBorders ( ViewBase child, ViewLayoutContext context, PaletteDrawBorders &leftEdges, PaletteDrawBorders &rightEdges, PaletteDrawBorders &topEdges, PaletteDrawBorders &bottomEdges, PaletteDrawBorders &fillEdges ) : void

Method Details

Add() public méthode

Append a view to the collection.
public Add ( ViewBase item, ViewDockStyle dock ) : void
item ViewBase ViewBase reference.
dock ViewDockStyle DockStyle setting.
Résultat void

CalculateDock() protected méthode

Find the actual docking to apply for the specified RightToLeft setting.
protected CalculateDock ( ViewDockStyle ds, Control control ) : ViewDockStyle
ds ViewDockStyle Docking style.
control System.Windows.Forms.Control Control for which the setting is needed.
Résultat ViewDockStyle

EvalTransparentPaint() public méthode

Evaluate the need for drawing transparent areas.
public EvalTransparentPaint ( ViewContext context ) : bool
context ViewContext Evaluation context.
Résultat bool

GetDock() public méthode

Gets the dock setting for the provided child instance.
public GetDock ( ViewBase child ) : ViewDockStyle
child ViewBase Child view element.
Résultat ViewDockStyle

GetNonChildSize() public méthode

Gets the size required for all except the contents.
public GetNonChildSize ( ViewLayoutContext context ) : Size
context ViewLayoutContext Layout context.
Résultat System.Drawing.Size

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

OrientateDock() protected méthode

Update the incoming dock style to reflect our orientation.
protected OrientateDock ( ViewDockStyle style ) : ViewDockStyle
style ViewDockStyle Incoming dock style.
Résultat ViewDockStyle

SetDock() public méthode

Sets the dock setting for the provided child instance.
public SetDock ( ViewBase child, ViewDockStyle dock ) : void
child ViewBase Child view element.
dock ViewDockStyle DockStyle setting.
Résultat void

ToString() public méthode

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

ViewDrawDocker() public méthode

Initialize a new instance of the ViewDrawDocker class.
public ViewDrawDocker ( ) : System
Résultat System

ViewDrawDocker() public méthode

Initialize a new instance of the ViewDrawDocker class.
public ViewDrawDocker ( IPaletteBack paletteBack, IPaletteBorder paletteBorder ) : System
paletteBack IPaletteBack Palette source for the background.
paletteBorder IPaletteBorder Palette source for the border.
Résultat System

ViewDrawDocker() public méthode

Initialize a new instance of the ViewDrawDocker class.
public ViewDrawDocker ( IPaletteBack paletteBack, IPaletteBorder paletteBorder, IPaletteMetric paletteMetric ) : System
paletteBack IPaletteBack Palette source for the background.
paletteBorder IPaletteBorder Palette source for the border.
paletteMetric IPaletteMetric Palette source for metrics.
Résultat System

ViewDrawDocker() public méthode

Initialize a new instance of the ViewDrawDocker class.
public ViewDrawDocker ( IPaletteBack paletteBack, IPaletteBorder paletteBorder, IPaletteMetric paletteMetric, PaletteMetricBool metricOverlay ) : System
paletteBack IPaletteBack Palette source for the background.
paletteBorder IPaletteBorder Palette source for the border.
paletteMetric IPaletteMetric Palette source for metrics.
metricOverlay PaletteMetricBool Metric to use for border overlay.
Résultat System

ViewDrawDocker() public méthode

Initialize a new instance of the ViewDrawDocker class.
public ViewDrawDocker ( IPaletteBack paletteBack, IPaletteBorder paletteBorder, IPaletteMetric paletteMetric, PaletteMetricBool metricOverlay, PaletteMetricPadding metricPadding, VisualOrientation orientation ) : System
paletteBack IPaletteBack Palette source for the background.
paletteBorder IPaletteBorder Palette source for the border.
paletteMetric IPaletteMetric Palette source for metric values.
metricOverlay PaletteMetricBool Metric to use for border overlay.
metricPadding PaletteMetricPadding Matric used to get padding values.
orientation VisualOrientation Visual orientation of the content.
Résultat System