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

View element that applies padding to the drawing of a border and background.
Наследование: ViewComposite
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
EvalTransparentPaint ( ViewContext context ) : bool

Evaluate the need for drawing transparent areas.

GetOuterBorderPath ( RenderContext context ) : GraphicsPath

Gets a path that describes the outside of the border.

GetPreferredSize ( ViewLayoutContext context ) : Size

Discover the preferred size of the element.

Layout ( ViewLayoutContext context ) : void

Perform a layout of the elements.

RenderAfter ( RenderContext context ) : void

Perform rendering after child elements are rendered.

RenderBefore ( RenderContext context ) : void

Perform rendering before child elements are rendered.

RenderBorder ( RenderContext context ) : void

Draw the canvas border.

SetPalettes ( IPaletteBack paletteBack, IPaletteBorder paletteBorder ) : void

Update the source palettes for drawing.

SetPalettes ( IPaletteBack paletteBack, IPaletteBorder paletteBorder, IPaletteMetric paletteMetric ) : void

Update the source palettes for drawing.

ToString ( ) : string

Obtains the String representation of this instance.

ViewDrawCanvas ( IPaletteBack paletteBack, IPaletteBorder paletteBorder, IPaletteMetric paletteMetric, PaletteMetricPadding metricPadding, VisualOrientation orientation ) : System

Initialize a new instance of the ViewDrawCanvas class.

ViewDrawCanvas ( IPaletteBack paletteBack, IPaletteBorder paletteBorder, VisualOrientation orientation ) : System

Initialize a new instance of the ViewDrawCanvas class.

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

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

Clean up any resources being used.

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

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

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

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

Evaluate the need for drawing transparent areas.
public EvalTransparentPaint ( ViewContext context ) : bool
context ViewContext Evaluation context.
Результат bool

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

Gets a path that describes the outside of the border.
public GetOuterBorderPath ( RenderContext context ) : GraphicsPath
context RenderContext Context used by the renderer.
Результат System.Drawing.Drawing2D.GraphicsPath

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

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

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

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

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

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

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

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

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

Draw the canvas border.
public RenderBorder ( RenderContext context ) : void
context RenderContext
Результат void

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

Update the source palettes for drawing.
public SetPalettes ( IPaletteBack paletteBack, IPaletteBorder paletteBorder ) : void
paletteBack IPaletteBack Palette source for the background.
paletteBorder IPaletteBorder Palette source for the border.
Результат void

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

Update the source palettes for drawing.
public SetPalettes ( IPaletteBack paletteBack, IPaletteBorder paletteBorder, IPaletteMetric paletteMetric ) : void
paletteBack IPaletteBack Palette source for the background.
paletteBorder IPaletteBorder Palette source for the border.
paletteMetric IPaletteMetric Palette source for the metric.
Результат void

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

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

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

Initialize a new instance of the ViewDrawCanvas class.
public ViewDrawCanvas ( IPaletteBack paletteBack, IPaletteBorder paletteBorder, IPaletteMetric paletteMetric, PaletteMetricPadding metricPadding, VisualOrientation orientation ) : System
paletteBack IPaletteBack Palette source for the background.
paletteBorder IPaletteBorder Palette source for the border.
paletteMetric IPaletteMetric Palette source for metric values.
metricPadding PaletteMetricPadding Matric used to get padding values.
orientation VisualOrientation Visual orientation of the content.
Результат System

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

Initialize a new instance of the ViewDrawCanvas class.
public ViewDrawCanvas ( IPaletteBack paletteBack, IPaletteBorder paletteBorder, VisualOrientation orientation ) : System
paletteBack IPaletteBack Palette source for the background.
paletteBorder IPaletteBorder Palette source for the border.
orientation VisualOrientation Visual orientation of the content.
Результат System