WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class CalendarCellStyleInfo

    Show / Hide Table of Contents

    Class CalendarCellStyleInfo

    Represents the class that defines the cell style information for the SfCalendar control.

    Inheritance
    System.Object
    ShouldSerializeBasedPersisterType
    StyleInfoBase
    StyleInfoSubObjectBase
    CalendarCellStyleInfo
    Implements
    System.ComponentModel.ICustomTypeDescriptor
    System.IDisposable
    IStyleInfo
    System.ComponentModel.ISupportInitialize
    System.IFormattable
    System.IConvertible
    System.Xml.Serialization.IXmlSerializable
    IStyleInfoSubObject
    Inherited Members
    StyleInfoSubObjectBase.Dispose(Boolean)
    StyleInfoSubObjectBase.OnStyleChanged(StyleInfoProperty)
    StyleInfoSubObjectBase.IntGetDefaultStyleInfo(StyleInfoProperty)
    StyleInfoSubObjectBase.SubObjectIdentity
    StyleInfoSubObjectBase.Sip
    StyleInfoSubObjectBase.Data
    StyleInfoSubObjectBase.Owner
    StyleInfoBase.WriteXml(XmlWriter)
    StyleInfoBase.ReadXml(XmlReader)
    StyleInfoBase.SetStore(StyleInfoStore)
    StyleInfoBase.ClearCache()
    StyleInfoBase.Dispose()
    StyleInfoBase.Equals(Object)
    StyleInfoBase.EqualsObject(Object, Object)
    StyleInfoBase.GetHashCode()
    StyleInfoBase.ToString()
    StyleInfoBase.ToString(String)
    StyleInfoBase.ToString(String, IFormatProvider)
    StyleInfoBase.ParseString(String)
    StyleInfoBase.BeginInit()
    StyleInfoBase.EndInit()
    StyleInfoBase.BeginUpdate()
    StyleInfoBase.EndUpdate()
    StyleInfoBase.CreateSubObjectIdentity(StyleInfoProperty)
    StyleInfoBase.GetDefaultStyleInfoStore(StyleInfoProperty)
    StyleInfoBase.OnStyleChanging(StyleInfoProperty)
    StyleInfoBase.IsSubset(IStyleInfo)
    StyleInfoBase.CopyFrom(IStyleInfo)
    StyleInfoBase.ModifyStyle(IStyleInfo, StyleModifyType)
    StyleInfoBase.InheritStyle(IStyleInfo, StyleModifyType)
    StyleInfoBase.MergeStyle(IStyleInfo)
    StyleInfoBase.HasValue(StyleInfoProperty)
    StyleInfoBase.IsValueModified(StyleInfoProperty)
    StyleInfoBase.ResetValue(StyleInfoProperty)
    StyleInfoBase.GetValue(StyleInfoProperty)
    StyleInfoBase.GetDefaultValue(StyleInfoProperty)
    StyleInfoBase.GetShortValue(StyleInfoProperty)
    StyleInfoBase.SetValue(StyleInfoProperty, Object)
    StyleInfoBase.SetValue(StyleInfoProperty, Int16)
    StyleInfoBase.IConvertible.ToUInt64(IFormatProvider)
    StyleInfoBase.IConvertible.ToSByte(IFormatProvider)
    StyleInfoBase.IConvertible.ToDouble(IFormatProvider)
    StyleInfoBase.IConvertible.ToDateTime(IFormatProvider)
    StyleInfoBase.IConvertible.ToSingle(IFormatProvider)
    StyleInfoBase.IConvertible.ToBoolean(IFormatProvider)
    StyleInfoBase.IConvertible.ToInt32(IFormatProvider)
    StyleInfoBase.IConvertible.ToUInt16(IFormatProvider)
    StyleInfoBase.IConvertible.ToInt16(IFormatProvider)
    StyleInfoBase.IConvertible.ToString(IFormatProvider)
    StyleInfoBase.IConvertible.ToByte(IFormatProvider)
    StyleInfoBase.IConvertible.ToChar(IFormatProvider)
    StyleInfoBase.IConvertible.ToInt64(IFormatProvider)
    StyleInfoBase.IConvertible.GetTypeCode()
    StyleInfoBase.IConvertible.ToDecimal(IFormatProvider)
    StyleInfoBase.IConvertible.ToType(Type, IFormatProvider)
    StyleInfoBase.IConvertible.ToUInt32(IFormatProvider)
    StyleInfoBase.Identity
    StyleInfoBase.Store
    StyleInfoBase.CacheValues
    StyleInfoBase.WeakReferenceChangedListeners
    StyleInfoBase.Updating
    StyleInfoBase.IsEmpty
    StyleInfoBase.IsChanged
    StyleInfoBase.Changed
    StyleInfoBase.Changing
    ShouldSerializeBasedPersisterType.GetNewAttributesCount(PropertyDescriptor)
    ShouldSerializeBasedPersisterType.AddNewAttributes(PropertyDescriptor, Attribute[], Int32)
    ShouldSerializeBasedPersisterType.GetCustomPDC(PropertyDescriptorCollection)
    ShouldSerializeBasedPersisterType.CheckAllProperties
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    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 Description
    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 Description
    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 Description
    System.Drawing.Color

    CellBackColor

    Gets or sets the background color of date cells in SfCalendar.

    Declaration
    public Color CellBackColor { get; set; }
    Property Value
    Type Description
    System.Drawing.Color

    CellFont

    Gets or sets the font used for date cells in SfCalendar.

    Declaration
    public Font CellFont { get; set; }
    Property Value
    Type Description
    System.Drawing.Font

    CellForeColor

    Gets or sets the foreground color of date cells in SfCalendar.

    Declaration
    public Color CellForeColor { get; set; }
    Property Value
    Type Description
    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 Description
    System.Drawing.Color

    DefaultStyle

    Gets the default style value for the date cells of SfCalendar.

    Declaration
    public static CalendarCellStyleInfo DefaultStyle { get; }
    Property Value
    Type Description
    CalendarCellStyleInfo

    SelectedCellBackColor

    Gets or sets the background color of selected date cells in SfCalendar.

    Declaration
    public Color SelectedCellBackColor { get; set; }
    Property Value
    Type Description
    System.Drawing.Color

    SelectedCellBorderColor

    Gets or sets the foreground color of selected date in SfCalendar.

    Declaration
    public Color SelectedCellBorderColor { get; set; }
    Property Value
    Type Description
    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 Description
    System.Drawing.Font

    SelectedCellForeColor

    Gets or sets the foreground color of selected date in SfCalendar.

    Declaration
    public Color SelectedCellForeColor { get; set; }
    Property Value
    Type Description
    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 Description
    System.Drawing.Color

    TodayBackColor

    Gets or sets the background color of today cell in SfCalendar.

    Declaration
    public Color TodayBackColor { get; set; }
    Property Value
    Type Description
    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 Description
    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 Description
    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 Description
    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 Description
    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 Description
    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 Description
    System.Drawing.Color

    WeekNumberBackColor

    Gets or sets the background color of week numbers in SfCalendar.

    Declaration
    public Color WeekNumberBackColor { get; set; }
    Property Value
    Type Description
    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 Description
    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 Description
    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
    StyleInfoBase.GetDefaultStyle()

    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.

    Overrides
    StyleInfoSubObjectBase.MakeCopy(StyleInfoBase, StyleInfoProperty)

    Implements

    System.ComponentModel.ICustomTypeDescriptor
    System.IDisposable
    IStyleInfo
    System.ComponentModel.ISupportInitialize
    System.IFormattable
    System.IConvertible
    System.Xml.Serialization.IXmlSerializable
    IStyleInfoSubObject
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved