C# Class ComponentFactory.Krypton.Toolkit.ViewLayoutDocker

Extends the ViewComposite by applying a docking style for each child.
Inheritance: ViewComposite
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.

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.

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.

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.

Private Methods

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

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

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

ToString() public méthode

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

UpdateFillerRect() protected méthode

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

UpdatePreferredSize() protected méthode

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

ViewLayoutDocker() public méthode

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