C# Class ComponentFactory.Krypton.Toolkit.ViewDrawContent

View element that can draw a content
Inheritance: ViewLeaf
Afficher le fichier Open project: ComponentFactory/Krypton Class Usage Examples

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Méthode Description
ShowFocusCues ( Control c ) : bool

Method Details

Dispose() protected méthode

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

GetPalette() public méthode

Gets the source palette used for drawing.
public GetPalette ( ) : IPaletteContent
Résultat IPaletteContent

GetPreferredSize() public méthode

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

ImageRectangle() public méthode

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

IsImageDisplayed() public méthode

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

Layout() public méthode

Perform a layout of the elements.
public Layout ( ViewLayoutContext context ) : void
context ViewLayoutContext Layout context.
Résultat void

LongTextRect() public méthode

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

RenderBefore() public méthode

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

SetPalette() public méthode

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

ShortTextRect() public méthode

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

ToString() public méthode

Obtains the String representation of this instance.
public ToString ( ) : string
Résultat string

ViewDrawContent() public méthode

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.
Résultat System