C# Class ComponentFactory.Krypton.Toolkit.ViewDrawCanvas

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

Méthodes publiques

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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

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

EvalTransparentPaint() public méthode

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

GetOuterBorderPath() public méthode

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

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

Layout() public méthode

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

RenderAfter() public méthode

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

RenderBefore() public méthode

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

RenderBorder() public méthode

Draw the canvas border.
public RenderBorder ( RenderContext context ) : void
context RenderContext
Résultat void

SetPalettes() public méthode

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

SetPalettes() public méthode

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

ToString() public méthode

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

ViewDrawCanvas() public méthode

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

ViewDrawCanvas() public méthode

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