C# Класс ComponentFactory.Krypton.Toolkit.ViewDrawDocker

Extends the ViewDrawCanvas by applying a docking style for each child.
Наследование: ViewDrawCanvas
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
AdjustPaddingForDockers ( Padding padding, Rectangle fillerRect, int borderWidth ) : Padding
UpdateChildBorders ( ViewBase child, ViewLayoutContext context, PaletteDrawBorders &leftEdges, PaletteDrawBorders &rightEdges, PaletteDrawBorders &topEdges, PaletteDrawBorders &bottomEdges, PaletteDrawBorders &fillEdges ) : void

Описание методов

Add() публичный Метод

Append a view to the collection.
public Add ( ViewBase item, ViewDockStyle dock ) : void
item ViewBase ViewBase reference.
dock ViewDockStyle DockStyle setting.
Результат void

CalculateDock() защищенный Метод

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.
Результат ViewDockStyle

EvalTransparentPaint() публичный Метод

Evaluate the need for drawing transparent areas.
public EvalTransparentPaint ( ViewContext context ) : bool
context ViewContext Evaluation context.
Результат bool

GetDock() публичный Метод

Gets the dock setting for the provided child instance.
public GetDock ( ViewBase child ) : ViewDockStyle
child ViewBase Child view element.
Результат ViewDockStyle

GetNonChildSize() публичный Метод

Gets the size required for all except the contents.
public GetNonChildSize ( ViewLayoutContext context ) : Size
context ViewLayoutContext Layout context.
Результат System.Drawing.Size

GetPreferredSize() публичный Метод

Discover the preferred size of the element.
public GetPreferredSize ( ViewLayoutContext context ) : Size
context ViewLayoutContext Layout context.
Результат System.Drawing.Size

Layout() публичный Метод

Perform a layout of the elements.
public Layout ( ViewLayoutContext context ) : void
context ViewLayoutContext Layout context.
Результат void

OrientateDock() защищенный Метод

Update the incoming dock style to reflect our orientation.
protected OrientateDock ( ViewDockStyle style ) : ViewDockStyle
style ViewDockStyle Incoming dock style.
Результат ViewDockStyle

SetDock() публичный Метод

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.
Результат void

ToString() публичный Метод

Obtains the String representation of this instance.
public ToString ( ) : string
Результат string

ViewDrawDocker() публичный Метод

Initialize a new instance of the ViewDrawDocker class.
public ViewDrawDocker ( ) : System
Результат System

ViewDrawDocker() публичный Метод

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.
Результат System

ViewDrawDocker() публичный Метод

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.
Результат System

ViewDrawDocker() публичный Метод

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.
Результат System

ViewDrawDocker() публичный Метод

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.
Результат System