Class CalendarCellStyleInfo
Represents the class that defines the cell style information for the SfCalendar control.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.WinForms.Input.Styles
Assembly: Syncfusion.SfInput.WinForms.dll
Syntax
public class CalendarCellStyleInfo : StyleInfoSubObjectBase, ICustomTypeDescriptor, IDisposable, IStyleInfo, ISupportInitialize, IFormattable, IConvertible, IXmlSerializable, IStyleInfoSubObject
Constructors
CalendarCellStyleInfo()
Initializes a new instance of the CalendarCellStyleInfo class.
Declaration
public CalendarCellStyleInfo()
CalendarCellStyleInfo(StyleInfoSubObjectIdentity)
Initializes a new instance of the CalendarCellStyleInfo class and associates it with an existing StyleInfoStore.
Declaration
public CalendarCellStyleInfo(StyleInfoSubObjectIdentity identity)
Parameters
Type | Name | Description |
---|---|---|
StyleInfoSubObjectIdentity | identity | A StyleInfoSubObjectIdentity that holds the identity for this StyleInfoBase. |
CalendarCellStyleInfo(StyleInfoSubObjectIdentity, CalendarCellStyleInfoStore)
Initializes a new instance of the CalendarCellStyleInfo class and associates it with an existing StyleInfoStore.
Declaration
public CalendarCellStyleInfo(StyleInfoSubObjectIdentity identity, CalendarCellStyleInfoStore store)
Parameters
Type | Name | Description |
---|---|---|
StyleInfoSubObjectIdentity | identity | A StyleInfoSubObjectIdentity that holds the identity for this StyleInfoBase. |
CalendarCellStyleInfoStore | store | A CalendarCellStyleInfoStore that holds data for this object. All changes in this style object will be saved in the CalendarCellStyleInfoStore object. |
Properties
BlackoutDatesBackColor
Gets or sets the background color of date cells which are disabled by BlackoutDates.
Declaration
public Color BlackoutDatesBackColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
BlackoutDatesFont
Gets or sets the font used for date cells which are disabled by BlackoutDates.
Declaration
public Font BlackoutDatesFont { get; set; }
Property Value
Type |
---|
System.Drawing.Font |
BlackoutDatesForeColor
Gets or sets foreground color of date cells which are disabled by BlackoutDates.
Declaration
public Color BlackoutDatesForeColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
CellBackColor
Gets or sets the background color of date cells in SfCalendar.
Declaration
public Color CellBackColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
CellFont
Gets or sets the font used for date cells in SfCalendar.
Declaration
public Font CellFont { get; set; }
Property Value
Type |
---|
System.Drawing.Font |
CellForeColor
Gets or sets the foreground color of date cells in SfCalendar.
Declaration
public Color CellForeColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
CellHoverBorderColor
Gets or sets the border color of date cells in hover state.
Declaration
public Color CellHoverBorderColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
DefaultStyle
Gets the default style value for the date cells of SfCalendar.
Declaration
public static CalendarCellStyleInfo DefaultStyle { get; }
Property Value
Type |
---|
CalendarCellStyleInfo |
SelectedCellBackColor
Gets or sets the background color of selected date cells in SfCalendar.
Declaration
public Color SelectedCellBackColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
SelectedCellBorderColor
Gets or sets the foreground color of selected date in SfCalendar.
Declaration
public Color SelectedCellBorderColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
SelectedCellFont
Gets or sets the font used for selected date cells in SfCalendar.
Declaration
public Font SelectedCellFont { get; set; }
Property Value
Type |
---|
System.Drawing.Font |
SelectedCellForeColor
Gets or sets the foreground color of selected date in SfCalendar.
Declaration
public Color SelectedCellForeColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
SelectedCellHoverBorderColor
Gets or sets the border color of selected date in hover state.
Declaration
public Color SelectedCellHoverBorderColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
TodayBackColor
Gets or sets the background color of today cell in SfCalendar.
Declaration
public Color TodayBackColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
Remarks
This color has filled to background of the today cell only when set the HighlightTodayCell property to true.
TodayFont
Gets or sets the font used to draw the today cell in SfCalendar.
Declaration
public Font TodayFont { get; set; }
Property Value
Type |
---|
System.Drawing.Font |
Remarks
This font used to draw the today cell only when set the HighlightTodayCell property to true.
TodayForeColor
Gets or sets the foreground color of today cell in SfCalendar.
Declaration
public Color TodayForeColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
Remarks
This color has used for foreground of the today cell only when set the HighlightTodayCell property to true.
TodayHoverBorderColor
Gets or sets the border color of today cell in hover state.
Declaration
public Color TodayHoverBorderColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
Remarks
This color used to draw border of the today cell only when set the HighlightTodayCell property to true.
TrailingCellBackColor
Gets or sets the cell background color of the previous and following months that appear in SfCalendar.
Declaration
public Color TrailingCellBackColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
TrailingCellFont
Gets or sets the font used in cell of the previous and following months that appear in SfCalendar.
Declaration
public Font TrailingCellFont { get; set; }
Property Value
Type |
---|
System.Drawing.Font |
TrailingCellForeColor
Gets or sets the cell foreground color of the previous and following months that appear in SfCalendar.
Declaration
public Color TrailingCellForeColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
WeekNumberBackColor
Gets or sets the background color of week numbers in SfCalendar.
Declaration
public Color WeekNumberBackColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
WeekNumberFont
Gets or sets the font used to draw week numbers in SfCalendar.
Declaration
public Font WeekNumberFont { get; set; }
Property Value
Type |
---|
System.Drawing.Font |
WeekNumberForeColor
Gets or sets the foreground color of week numbers in in hover state.
Declaration
public Color WeekNumberForeColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
Methods
GetDefaultStyle()
Provide the default style of the Calendar Grid.
Declaration
protected override StyleInfoBase GetDefaultStyle()
Returns
Type | Description |
---|---|
StyleInfoBase | Default style object. |
Overrides
MakeCopy(StyleInfoBase, StyleInfoProperty)
Makes an exact copy of the current object.
Declaration
public override IStyleInfoSubObject MakeCopy(StyleInfoBase newOwner, StyleInfoProperty sip)
Parameters
Type | Name | Description |
---|---|---|
StyleInfoBase | newOwner | The new owner style object for the copied object. |
StyleInfoProperty | sip | The identifier for this object. |
Returns
Type | Description |
---|---|
IStyleInfoSubObject | A copy of the current object registered with the new owner style object. |