C# Class ComponentFactory.Krypton.Toolkit.ViewDrawDocker

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

Public Methods

Method 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.

Protected Methods

Method 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

Method 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 method

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

CalculateDock() protected method

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.
return ViewDockStyle

EvalTransparentPaint() public method

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

GetDock() public method

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

GetNonChildSize() public method

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

GetPreferredSize() public method

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

Layout() public method

Perform a layout of the elements.
public Layout ( ViewLayoutContext context ) : void
context ViewLayoutContext Layout context.
return void

OrientateDock() protected method

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

SetDock() public method

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.
return void

ToString() public method

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

ViewDrawDocker() public method

Initialize a new instance of the ViewDrawDocker class.
public ViewDrawDocker ( ) : System
return System

ViewDrawDocker() public method

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.
return System

ViewDrawDocker() public method

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.
return System

ViewDrawDocker() public method

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.
return System

ViewDrawDocker() public method

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.
return System