C# Class ComponentFactory.Krypton.Toolkit.ViewDrawCanvas

View element that applies padding to the drawing of a border and background.
Inheritance: ViewComposite
显示文件 Open project: ComponentFactory/Krypton Class Usage Examples

Public Methods

Method Description
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.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

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

EvalTransparentPaint() public method

Evaluate the need for drawing transparent areas.
public EvalTransparentPaint ( ViewContext context ) : bool
context ViewContext Evaluation context.
return bool

GetOuterBorderPath() public method

Gets a path that describes the outside of the border.
public GetOuterBorderPath ( RenderContext context ) : GraphicsPath
context RenderContext Context used by the renderer.
return System.Drawing.Drawing2D.GraphicsPath

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

RenderAfter() public method

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

RenderBefore() public method

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

RenderBorder() public method

Draw the canvas border.
public RenderBorder ( RenderContext context ) : void
context RenderContext
return void

SetPalettes() public method

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.
return void

SetPalettes() public method

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.
return void

ToString() public method

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

ViewDrawCanvas() public method

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.
return System

ViewDrawCanvas() public method

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.
return System