C# Class ComponentFactory.Krypton.Toolkit.ViewLayoutPadding

View element that draws nothing and will use a padding around the children.
Inheritance: ViewComposite
Mostra file Open project: ComponentFactory/Krypton

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.

ToString ( ) : string

Obtains the String representation of this instance.

ViewLayoutPadding ( ) : System

Initialize a new instance of the ViewLayoutPadding class.

ViewLayoutPadding ( Padding displayPadding ) : System

Initialize a new instance of the ViewLayoutPadding class.

ViewLayoutPadding ( Padding displayPadding, ViewBase child ) : System

Initialize a new instance of the ViewLayoutPadding class.

Method Details

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

ToString() public method

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

ViewLayoutPadding() public method

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

ViewLayoutPadding() public method

Initialize a new instance of the ViewLayoutPadding class.
public ViewLayoutPadding ( Padding displayPadding ) : System
displayPadding Padding Padding to use around area.
return System

ViewLayoutPadding() public method

Initialize a new instance of the ViewLayoutPadding class.
public ViewLayoutPadding ( Padding displayPadding, ViewBase child ) : System
displayPadding Padding Padding to use around area.
child ViewBase Child to add into view hierarchy.
return System