C# Class ComponentFactory.Krypton.Toolkit.ViewDrawDebug

View element that has a preferred size and then draws a solid color, used for debugging.
Inheritance: ViewLeaf
显示文件 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.

RenderBefore ( RenderContext context ) : void

Perform rendering before child elements are rendered.

ToString ( ) : string

Obtains the String representation of this instance.

ViewDrawDebug ( Size preferredSize, Color color ) : System

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

RenderBefore() public method

Perform rendering before child elements are rendered.
public RenderBefore ( RenderContext context ) : void
context RenderContext Rendering context.
return void

ToString() public method

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

ViewDrawDebug() public method

Initialize a new instance of the ViewDrawDebug class.
public ViewDrawDebug ( Size preferredSize, Color color ) : System
preferredSize System.Drawing.Size Preferred size.
color Color Solid color to draw with.
return System