C# Class ComponentFactory.Krypton.Ribbon.ViewLayoutRibbonPadding

View element adds padding to the provided drawing area.
Inheritance: ComponentFactory.Krypton.Toolkit.ViewComposite
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.

ToString ( ) : string

Obtains the String representation of this instance.

ViewLayoutRibbonPadding ( Padding preferredPadding ) : System

Initialize a new instance of the ViewLayoutRibbonPadding class.

Method Details

GetPreferredSize() public method

Discover the preferred size of the element.
public GetPreferredSize ( ViewLayoutContext context ) : Size
context ComponentFactory.Krypton.Toolkit.ViewLayoutContext Layout context.
return System.Drawing.Size

Layout() public method

Perform a layout of the elements.
public Layout ( ViewLayoutContext context ) : void
context ComponentFactory.Krypton.Toolkit.ViewLayoutContext Layout context.
return void

ToString() public method

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

ViewLayoutRibbonPadding() public method

Initialize a new instance of the ViewLayoutRibbonPadding class.
public ViewLayoutRibbonPadding ( Padding preferredPadding ) : System
preferredPadding Padding Padding to use when calculating space.
return System