C# Класс ComponentFactory.Krypton.Toolkit.ViewDrawContent

View element that can draw a content
Наследование: ViewLeaf
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Clean up any resources being used.

Приватные методы

Метод Описание
ShowFocusCues ( Control c ) : bool

Описание методов

Dispose() защищенный Метод

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Результат void

GetPalette() публичный Метод

Gets the source palette used for drawing.
public GetPalette ( ) : IPaletteContent
Результат IPaletteContent

GetPreferredSize() публичный Метод

Discover the preferred size of the element.
public GetPreferredSize ( ViewLayoutContext context ) : Size
context ViewLayoutContext Layout context.
Результат System.Drawing.Size

ImageRectangle() публичный Метод

Get a value indicating if the content image is being displayed.
public ImageRectangle ( ViewContext context ) : Rectangle
context ViewContext ViewLayoutContext context.
Результат System.Drawing.Rectangle

IsImageDisplayed() публичный Метод

Get a value indicating if the content image is being displayed.
public IsImageDisplayed ( ViewContext context ) : bool
context ViewContext ViewLayoutContext context.
Результат bool

Layout() публичный Метод

Perform a layout of the elements.
public Layout ( ViewLayoutContext context ) : void
context ViewLayoutContext Layout context.
Результат void

LongTextRect() публичный Метод

Gets the short text drawing rectangle.
public LongTextRect ( ViewContext context ) : Rectangle
context ViewContext
Результат System.Drawing.Rectangle

RenderBefore() публичный Метод

Perform rendering before child elements are rendered.
public RenderBefore ( RenderContext context ) : void
context RenderContext Rendering context.
Результат void

SetPalette() публичный Метод

Update the source palette for drawing.
public SetPalette ( IPaletteContent paletteContent ) : void
paletteContent IPaletteContent Palette source for the content.
Результат void

ShortTextRect() публичный Метод

Gets the short text drawing rectangle.
public ShortTextRect ( ViewContext context ) : Rectangle
context ViewContext
Результат System.Drawing.Rectangle

ToString() публичный Метод

Obtains the String representation of this instance.
public ToString ( ) : string
Результат string

ViewDrawContent() публичный Метод

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.
Результат System