C# Class ComponentFactory.Krypton.Toolkit.ViewDrawSeparator

View element that can draw a separator
Inheritance: ViewLeaf
Mostra file Open project: ComponentFactory/Krypton Class Usage Examples

Public Methods

Method Description
GetPreferredSize ( ViewLayoutContext context ) : Size

Discover the preferred size of the element.

Layout ( ViewLayoutContext context ) : void

Perform a layout of the elements.

RenderBefore ( RenderContext context ) : void

Perform rendering before child elements are rendered.

SetPalettes ( IPaletteDouble paletteDisabled, IPaletteDouble paletteNormal, IPaletteDouble paletteTracking, IPaletteDouble palettePressed, IPaletteMetric metricDisabled, IPaletteMetric metricNormal, IPaletteMetric metricTracking, IPaletteMetric metricPressed ) : void

Update the source palettes for drawing.

ToString ( ) : string

Obtains the String representation of this instance.

ViewDrawSeparator ( IPaletteDouble paletteDisabled, IPaletteDouble paletteNormal, IPaletteDouble paletteTracking, IPaletteDouble palettePressed, IPaletteMetric metricDisabled, IPaletteMetric metricNormal, IPaletteMetric metricTracking, IPaletteMetric metricPressed, PaletteMetricPadding metricPadding, Orientation orientation ) : System

Initialize a new instance of the ViewDrawSeparator class.

Private Methods

Method Description
CheckPaletteState ( ) : void

Method Details

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

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 ( IPaletteDouble paletteDisabled, IPaletteDouble paletteNormal, IPaletteDouble paletteTracking, IPaletteDouble palettePressed, IPaletteMetric metricDisabled, IPaletteMetric metricNormal, IPaletteMetric metricTracking, IPaletteMetric metricPressed ) : void
paletteDisabled IPaletteDouble Palette source for the disabled state.
paletteNormal IPaletteDouble Palette source for the normal state.
paletteTracking IPaletteDouble Palette source for the tracking state.
palettePressed IPaletteDouble Palette source for the pressed state.
metricDisabled IPaletteMetric Palette source for disabled metric values.
metricNormal IPaletteMetric Palette source for normal metric values.
metricTracking IPaletteMetric Palette source for tracking metric values.
metricPressed IPaletteMetric Palette source for pressed metric values.
return void

ToString() public method

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

ViewDrawSeparator() public method

Initialize a new instance of the ViewDrawSeparator class.
public ViewDrawSeparator ( IPaletteDouble paletteDisabled, IPaletteDouble paletteNormal, IPaletteDouble paletteTracking, IPaletteDouble palettePressed, IPaletteMetric metricDisabled, IPaletteMetric metricNormal, IPaletteMetric metricTracking, IPaletteMetric metricPressed, PaletteMetricPadding metricPadding, Orientation orientation ) : System
paletteDisabled IPaletteDouble Palette source for the disabled state.
paletteNormal IPaletteDouble Palette source for the normal state.
paletteTracking IPaletteDouble Palette source for the tracking state.
palettePressed IPaletteDouble Palette source for the pressed state.
metricDisabled IPaletteMetric Palette source for disabled metric values.
metricNormal IPaletteMetric Palette source for normal metric values.
metricTracking IPaletteMetric Palette source for tracking metric values.
metricPressed IPaletteMetric Palette source for pressed metric values.
metricPadding PaletteMetricPadding Metric used to get padding values.
orientation Orientation Visual orientation of the content.
return System