C# Class ComponentFactory.Krypton.Toolkit.ViewDrawWeekNumbers

Draws all the month grid entries including the column names and day values
Inheritance: ViewLeaf, IContentValues
Afficher le fichier Open project: Cocotteseb/Krypton Class Usage Examples

Méthodes publiques

Méthode Description
GetImage ( PaletteState state ) : Image

Gets the content image.

GetImageTransparentColor ( PaletteState state ) : Color

Gets the image color that should be transparent.

GetLongText ( ) : string

Gets the content long text.

GetPreferredSize ( ViewLayoutContext context ) : Size

Discover the preferred size of the element.

GetShortText ( ) : string

Gets the content short text.

Layout ( ViewLayoutContext context ) : void

Perform a layout of the elements.

RenderBefore ( RenderContext context ) : void

Perform rendering before child elements are rendered.

ToString ( ) : string

Obtains the String representation of this instance.

ViewDrawWeekNumbers ( IKryptonMonthCalendar calendar, ViewLayoutMonths months ) : System

Initialize a new instance of the ViewDrawWeekNumbers class.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Release unmanaged and optionally managed resources.

Private Methods

Méthode Description
DisplayWeekNumber ( System.DateTime displayDate, System.DateTime &weekDate ) : bool
GetWeekNumber ( System.DateTime dt ) : int

Method Details

Dispose() protected méthode

Release unmanaged and optionally managed resources.
protected Dispose ( bool disposing ) : void
disposing bool Called from Dispose method.
Résultat void

GetImage() public méthode

Gets the content image.
public GetImage ( PaletteState state ) : Image
state PaletteState The state for which the image is needed.
Résultat Image

GetImageTransparentColor() public méthode

Gets the image color that should be transparent.
public GetImageTransparentColor ( PaletteState state ) : Color
state PaletteState The state for which the image is needed.
Résultat Color

GetLongText() public méthode

Gets the content long text.
public GetLongText ( ) : string
Résultat string

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

GetShortText() public méthode

Gets the content short text.
public GetShortText ( ) : string
Résultat string

Layout() public méthode

Perform a layout of the elements.
public Layout ( ViewLayoutContext context ) : void
context ViewLayoutContext Layout 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

ToString() public méthode

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

ViewDrawWeekNumbers() public méthode

Initialize a new instance of the ViewDrawWeekNumbers class.
public ViewDrawWeekNumbers ( IKryptonMonthCalendar calendar, ViewLayoutMonths months ) : System
calendar IKryptonMonthCalendar Reference to calendar provider.
months ViewLayoutMonths Reference to months instance.
Résultat System