C# Class ComponentFactory.Krypton.Toolkit.ViewDrawSplitCanvas

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

Private Properties

Property Type Description
DrawBackground void
DrawBorder void
RenderBackground void
RenderBorder void

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.

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.

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

Initialize a new instance of the ViewDrawSplitCanvas class.

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

Initialize a new instance of the ViewDrawSplitCanvas class.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
DrawBackground ( RenderContext context, Rectangle rect, IPaletteBack paletteBack, IPaletteBorder paletteBorder, PaletteState state ) : void
DrawBorder ( RenderContext context, Rectangle rect, IPaletteBorder paletteBorder, PaletteState state ) : void
RenderBackground ( RenderContext context, Rectangle rect ) : void
RenderBorder ( RenderContext context, Rectangle rect ) : void

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

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

ViewDrawSplitCanvas() public method

Initialize a new instance of the ViewDrawSplitCanvas class.
public ViewDrawSplitCanvas ( 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

ViewDrawSplitCanvas() public method

Initialize a new instance of the ViewDrawSplitCanvas class.
public ViewDrawSplitCanvas ( 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