C# Class ComponentFactory.Krypton.Toolkit.ViewDrawToday

Draw todays date as a button.
Inheritance: ViewDrawButton, IContentValues
Afficher le fichier Open project: ComponentFactory/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.

GetShortText ( ) : string

Gets the content short text.

Layout ( ViewLayoutContext context ) : void

Perform a layout of the elements.

ToString ( ) : string

Obtains the String representation of this instance.

ViewDrawToday ( IKryptonMonthCalendar calendar, IPaletteTriple paletteDisabled, IPaletteTriple paletteNormal, IPaletteTriple paletteTracking, IPaletteTriple palettePressed, NeedPaintHandler needPaintHandler ) : System

Initialize a new instance of the ViewDrawToday class.

Private Methods

Méthode Description
OnClick ( object sender, MouseEventArgs e ) : void

Method Details

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

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

ToString() public méthode

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

ViewDrawToday() public méthode

Initialize a new instance of the ViewDrawToday class.
public ViewDrawToday ( IKryptonMonthCalendar calendar, IPaletteTriple paletteDisabled, IPaletteTriple paletteNormal, IPaletteTriple paletteTracking, IPaletteTriple palettePressed, NeedPaintHandler needPaintHandler ) : System
calendar IKryptonMonthCalendar Provider of month calendar values.
paletteDisabled IPaletteTriple Palette source for the disabled state.
paletteNormal IPaletteTriple Palette source for the normal state.
paletteTracking IPaletteTriple Palette source for the tracking state.
palettePressed IPaletteTriple Palette source for the pressed state.
needPaintHandler NeedPaintHandler Delegate for requested repainting.
Résultat System