Class CalendarVisualStyle
Represents the class that defines the style for SfCalendar control.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.WinForms.Input.Styles
Assembly: Syncfusion.SfInput.WinForms.dll
Syntax
public class CalendarVisualStyle : VisualStyleBase, ICustomTypeDescriptor, IDisposable, IStyleInfo, ISupportInitialize, IFormattable, IConvertible, IXmlSerializable, IStyleInfoSubObject
Constructors
CalendarVisualStyle()
Initializes a new instance of the CalendarVisualStyle class.
Declaration
public CalendarVisualStyle()
CalendarVisualStyle(StyleInfoSubObjectIdentity)
Initializes a new instance of the CalendarVisualStyle class.
Declaration
public CalendarVisualStyle(StyleInfoSubObjectIdentity identity)
Parameters
Type | Name | Description |
---|---|---|
StyleInfoSubObjectIdentity | identity | A |
CalendarVisualStyle(StyleInfoSubObjectIdentity, StyleInfoStore)
Initializes a new instance of the CalendarVisualStyle class.
Declaration
public CalendarVisualStyle(StyleInfoSubObjectIdentity identity, StyleInfoStore store)
Parameters
Type | Name | Description |
---|---|---|
StyleInfoSubObjectIdentity | identity | A StyleInfoSubObjectIdentity that holds the identity for this CalendarStyleInfoStore. |
StyleInfoStore | store | A StyleInfoStore that holds data for this object. All changes in this style object will be saved in the StyleInfoStore object. |
Properties
BorderColor
Gets or sets the border color of SfCalendar.
Declaration
public Color BorderColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
Cell
Gets or sets the style information of the Calendar Cell.
Declaration
public CalendarCellStyleInfo Cell { get; set; }
Property Value
Type |
---|
CalendarCellStyleInfo |
DefaultStyle
Gets the default style value for SfCalendar.
Declaration
public static CalendarVisualStyle DefaultStyle { get; }
Property Value
Type |
---|
CalendarVisualStyle |
Footer
Gets or sets a value indicating whether values for the footer of SfCalendar.
Declaration
public CalendarFooterStyleInfo Footer { get; set; }
Property Value
Type |
---|
CalendarFooterStyleInfo |
Header
Gets or sets a value indicating whether style values for the header of SfCalendar.
Declaration
public CalendarHeaderStyleInfo Header { get; set; }
Property Value
Type |
---|
CalendarHeaderStyleInfo |
HorizontalSplitterColor
Gets or sets the color used draw the horizontal splitter in cell view of SfCalendar.
Declaration
public Color HorizontalSplitterColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
VerticalSplitterColor
Gets or sets the color used draw the vertical splitter in cell view of SfCalendar.
Declaration
public Color VerticalSplitterColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
Methods
CreateSubObjectIdentity(StyleInfoProperty)
Override this method to create a product-specific identity object for a sub object.
Declaration
public override StyleInfoSubObjectIdentity CreateSubObjectIdentity(StyleInfoProperty sip)
Parameters
Type | Name | Description |
---|---|---|
StyleInfoProperty | sip | The StyleInfoProperty. |
Returns
Type | Description |
---|---|
StyleInfoSubObjectIdentity | An identity object for a sub object of this style. |
Overrides
GetDefaultStyle()
Provide the default style of the calendar.
Declaration
protected override StyleInfoBase GetDefaultStyle()
Returns
Type | Description |
---|---|
StyleInfoBase | Default style object. |