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

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

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

Метод Описание
Add ( ViewBase item, ViewDockStyle dock ) : void

Append a view to the collection.

GetDock ( ViewBase child ) : ViewDockStyle

Gets the dock setting for the provided child instance.

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.

ViewLayoutDocker ( ) : System

Initialize a new instance of the ViewLayoutDocker 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.

UpdateFillerRect ( Rectangle fillerRect, Control control ) : Rectangle

Allow the filler rectangle calculated by Layout to be modified before use.

UpdatePreferredSize ( Size preferredSize ) : Size

Allow the preferred size calculated by GetPreferredSize to be modified before use.

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

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

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

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

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

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

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

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

Allow the filler rectangle calculated by Layout to be modified before use.
protected UpdateFillerRect ( Rectangle fillerRect, Control control ) : Rectangle
fillerRect System.Drawing.Rectangle Original filler rectangle.
control System.Windows.Forms.Control Owning control instance.
Результат System.Drawing.Rectangle

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

Allow the preferred size calculated by GetPreferredSize to be modified before use.
protected UpdatePreferredSize ( Size preferredSize ) : Size
preferredSize System.Drawing.Size Original preferred size value.
Результат System.Drawing.Size

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

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