C# Класс ComponentFactory.Krypton.Toolkit.ViewDrawMonthDays

Draws all the month grid entries including the column names and day values
Наследование: ViewLeaf, IContentValues
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
DayFromPoint ( Point pt, bool exact ) : DateTime?

Gets the day that is underneath the provided point.

DayNearPoint ( Point pt ) : System.DateTime

Gets the button for the day that is nearest (date wise) to the point provided.

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.

ViewDrawMonthDays ( IKryptonMonthCalendar calendar, ViewLayoutMonths months ) : System

Initialize a new instance of the ViewDrawMonthDays class.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Release unmanaged and optionally managed resources.

Приватные методы

Метод Описание
BoldedDate ( System.DateTime date ) : bool

Описание методов

DayFromPoint() публичный Метод

Gets the day that is underneath the provided point.
public DayFromPoint ( Point pt, bool exact ) : DateTime?
pt Point Point to lookup.
exact bool Exact requires that the day must be with the month range.
Результат DateTime?

DayNearPoint() публичный Метод

Gets the button for the day that is nearest (date wise) to the point provided.
public DayNearPoint ( Point pt ) : System.DateTime
pt Point Point to lookup.
Результат System.DateTime

Dispose() защищенный Метод

Release unmanaged and optionally managed resources.
protected Dispose ( bool disposing ) : void
disposing bool Called from Dispose method.
Результат void

GetImage() публичный Метод

Gets the content image.
public GetImage ( PaletteState state ) : Image
state PaletteState The state for which the image is needed.
Результат Image

GetImageTransparentColor() публичный Метод

Gets the image color that should be transparent.
public GetImageTransparentColor ( PaletteState state ) : Color
state PaletteState The state for which the image is needed.
Результат Color

GetLongText() публичный Метод

Gets the content long text.
public GetLongText ( ) : string
Результат string

GetPreferredSize() публичный Метод

Discover the preferred size of the element.
public GetPreferredSize ( ViewLayoutContext context ) : Size
context ViewLayoutContext Layout context.
Результат System.Drawing.Size

GetShortText() публичный Метод

Gets the content short text.
public GetShortText ( ) : string
Результат string

Layout() публичный Метод

Perform a layout of the elements.
public Layout ( ViewLayoutContext context ) : void
context ViewLayoutContext Layout context.
Результат void

RenderBefore() публичный Метод

Perform rendering before child elements are rendered.
public RenderBefore ( RenderContext context ) : void
context RenderContext Rendering context.
Результат void

ToString() публичный Метод

Obtains the String representation of this instance.
public ToString ( ) : string
Результат string

ViewDrawMonthDays() публичный Метод

Initialize a new instance of the ViewDrawMonthDays class.
public ViewDrawMonthDays ( IKryptonMonthCalendar calendar, ViewLayoutMonths months ) : System
calendar IKryptonMonthCalendar Reference to calendar provider.
months ViewLayoutMonths Reference to months instance.
Результат System