C# Class ComponentFactory.Krypton.Toolkit.ViewLayoutControl

View element that contains a control that has a view hierarchy of its own.
Inheritance: ViewLeaf
Show file Open project: ComponentFactory/Krypton Class Usage Examples

Public Methods

Method Description
GetPreferredSize ( ViewLayoutContext context ) : Size

Discover the preferred size of the element.

Layout ( ViewLayoutContext context ) : void

Perform a layout of the elements.

MakeParent ( Control c ) : void

Reparent the provided control as a child of ourself.

ToString ( ) : string

Obtains the String representation of this instance.

ViewFromPoint ( Point pt ) : ViewBase

Find the view that contains the specified point.

ViewLayoutControl ( ViewControl viewControl, VisualControl rootControl, ViewBase viewChild ) : System

Initialize a new instance of the ViewLayoutControl class.

ViewLayoutControl ( VisualControl rootControl, ViewBase viewChild ) : System

Initialize a new instance of the ViewLayoutControl class.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Release unmanaged and optionally managed resources.

Private Methods

Method Description
UpdateParent ( Control parentControl ) : void

Method Details

Dispose() protected method

Release unmanaged and optionally managed resources.
protected Dispose ( bool disposing ) : void
disposing bool Called from Dispose method.
return void

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

MakeParent() public method

Reparent the provided control as a child of ourself.
public MakeParent ( Control c ) : void
c System.Windows.Forms.Control Control to reparent.
return void

ToString() public method

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

ViewFromPoint() public method

Find the view that contains the specified point.
public ViewFromPoint ( Point pt ) : ViewBase
pt Point Point in view coordinates.
return ViewBase

ViewLayoutControl() public method

Initialize a new instance of the ViewLayoutControl class.
public ViewLayoutControl ( ViewControl viewControl, VisualControl rootControl, ViewBase viewChild ) : System
viewControl ViewControl View control to use as child.
rootControl VisualControl Top level visual control.
viewChild ViewBase View used to size and position the child control.
return System

ViewLayoutControl() public method

Initialize a new instance of the ViewLayoutControl class.
public ViewLayoutControl ( VisualControl rootControl, ViewBase viewChild ) : System
rootControl VisualControl Top level visual control.
viewChild ViewBase View used to size and position the child control.
return System