C# Class ComponentFactory.Krypton.Toolkit.ViewDrawContent

View element that can draw a content
Inheritance: ViewLeaf
Mostra file Open project: ComponentFactory/Krypton Class Usage Examples

Public Methods

Method Description
GetPalette ( ) : IPaletteContent

Gets the source palette used for drawing.

GetPreferredSize ( ViewLayoutContext context ) : Size

Discover the preferred size of the element.

ImageRectangle ( ViewContext context ) : Rectangle

Get a value indicating if the content image is being displayed.

IsImageDisplayed ( ViewContext context ) : bool

Get a value indicating if the content image is being displayed.

Layout ( ViewLayoutContext context ) : void

Perform a layout of the elements.

LongTextRect ( ViewContext context ) : Rectangle

Gets the short text drawing rectangle.

RenderBefore ( RenderContext context ) : void

Perform rendering before child elements are rendered.

SetPalette ( IPaletteContent paletteContent ) : void

Update the source palette for drawing.

ShortTextRect ( ViewContext context ) : Rectangle

Gets the short text drawing rectangle.

ToString ( ) : string

Obtains the String representation of this instance.

ViewDrawContent ( IPaletteContent paletteContent, IContentValues values, VisualOrientation orientation ) : System

Initialize a new instance of the ViewDrawContent class.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
ShowFocusCues ( Control c ) : bool

Method Details

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

GetPalette() public method

Gets the source palette used for drawing.
public GetPalette ( ) : IPaletteContent
return IPaletteContent

GetPreferredSize() public method

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

ImageRectangle() public method

Get a value indicating if the content image is being displayed.
public ImageRectangle ( ViewContext context ) : Rectangle
context ViewContext ViewLayoutContext context.
return System.Drawing.Rectangle

IsImageDisplayed() public method

Get a value indicating if the content image is being displayed.
public IsImageDisplayed ( ViewContext context ) : bool
context ViewContext ViewLayoutContext context.
return bool

Layout() public method

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

LongTextRect() public method

Gets the short text drawing rectangle.
public LongTextRect ( ViewContext context ) : Rectangle
context ViewContext
return System.Drawing.Rectangle

RenderBefore() public method

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

SetPalette() public method

Update the source palette for drawing.
public SetPalette ( IPaletteContent paletteContent ) : void
paletteContent IPaletteContent Palette source for the content.
return void

ShortTextRect() public method

Gets the short text drawing rectangle.
public ShortTextRect ( ViewContext context ) : Rectangle
context ViewContext
return System.Drawing.Rectangle

ToString() public method

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

ViewDrawContent() public method

Initialize a new instance of the ViewDrawContent class.
public ViewDrawContent ( IPaletteContent paletteContent, IContentValues values, VisualOrientation orientation ) : System
paletteContent IPaletteContent Palette source for the content.
values IContentValues Reference to actual content values.
orientation VisualOrientation Visual orientation of the content.
return System