menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class StyleInfoSubObjectBase - API Reference

    Show / Hide Table of Contents

    Class StyleInfoSubObjectBase

    StyleInfoSubObjectBase is an abstract base class for classes to be used as subobjects in a StyleInfoBase.

    Inheritance
    System.Object
    ShouldSerializeBasedPersisterType
    StyleInfoBase
    StyleInfoSubObjectBase
    CheckBoxStyleInfoBase
    VisualStyleBase
    RangeStyleInfo
    CalculatorToolTipStyleInfo
    ChartSubStyleInfoBase
    CollapsedViewGroupBarStyleInfo
    ColorListStyleInfo
    ColorPaletteStyleInfo
    ColorTabControlStyleInfo
    ContextChoiceStyleInfo
    ContextPromptStyleInfo
    RulerStyleInfo
    SelectorStyleInfo
    DialogBoxStyleInfo
    GridCellButtonStyleInfo
    GridCellSelectionStyleInfo
    GridCellStyleInfo
    GridCheckBoxCellStyleInfo
    GridComboBoxCellStyleInfo
    GridCommentTipInfo
    GridCurrencyEditInfo
    GridMaskEditInfo
    GridProgressBarInfo
    GridRadioButtonCellStyleInfo
    GridStyleInfoSubObject
    GroupBarCollapseButtonStyleInfo
    GroupBarItemStyleInfo
    GroupBarOptionButtonStyleInfo
    GroupViewItemStyleInfo
    BubbleStyleInfo
    MessageBoxAdvDetailsViewStyleInfo
    MessageBoxAdvTitleBarStyleInfo
    NavigateArrowStyleInfo
    EditMenuStyleInfo
    ExpanderStyleInfo
    FilterDropDownStyleInfo
    GroupBarItemStyleInfo
    GroupBarStyleInfo
    PivotValueChooserStyleInfo
    SchemaDesignerItemStyleInfo
    SchemaDesignerStyleInfo
    BackStageStyleInfo
    RibbonDisplayOptionStyleInfo
    RibbonPanelStyleInfo
    ScrollBarSizeGripStyleInfo
    ScrollBarStyleInfo
    SplitterBarStyleInfo
    ContextMenuStyleInfo
    FormulaBarStyleInfo
    SpreadsheetHeaderStyleInfo
    StackedViewGroupBarStyleInfo
    SuggestionItemStyleInfo
    TabBarStyleInfo
    AutoCompleteStyleInfo
    AutoHideStyleInfo
    CheckBoxStyleInfo
    CommandBarIconStyleInfo
    DockWindowStyleInfo
    DropDownButtonStyleInfo
    DropDownStyleInfo
    EditableTabStyleInfo
    FloatWindowStyleInfo
    GalleryStyleInfo
    LauncherStyleInfo
    ListItemStyleInfo
    MoreCommandsStyleInfo
    MultiColumnComboDropDownButtonStyleInfo
    MultiColumnComboEditorStyleInfo
    TreeColumnAdvStyleInfo
    TreeNodeAdvStyleInfo
    TreeNodeAdvSubItemStyleInfo
    NavigationBarStyleInfo
    NavigationDrawerItemStyleInfo
    NavigationDropDownStyleInfo
    NavigationTextBoxStyleInfo
    ScrollButtonStyleInfo
    SplitButtonStyleInfo
    SplitDropDownButtonStyleInfo
    SplitterPageStyleInfo
    StatusBarPanelItemStyleInfo
    StatusStripExButtonStyleInfo
    StatusStripExDropDownStyleInfo
    TabControlPrimitiveButtonStyleInfo
    TabSplitterPrimitivesStyleInfo
    TabStyleInfo
    ToggleButtonSliderStyleInfo
    ToolStripComboBoxExStyleInfo
    ToolStripDropDownStyleInfo
    ToolStripSplitButtonStyleInfo
    ToolTipControlStyleInfo
    TreeMenuItemStyleInfo
    TreeNodeAdvStyleInfo
    BarItemStyleInfo
    ComboBoxBarItemStyleInfo
    ToolTipStyleInfo
    DropDownStyleInfo
    MdiChildStyleInfo
    ScrollBarStyleInfo
    TitleBarStyleInfo
    ButtonCellStyleInfo
    CellStyleInfo
    CheckBoxCellStyleInfo
    CurrentCellStyleInfo
    DataGridStyleInfoSubObject
    FreezePaneLineStyleInfo
    GroupDropAreaItemStyleInfo
    GroupDropAreaStyleInfo
    HyperlinkCellStyleInfo
    ProgressBarCellStyleInfo
    SelectionStyleInfo
    CalendarCellStyleInfo
    CalendarFooterStyleInfo
    CalendarHeaderStyleInfo
    DropDownStyleInfo
    ComboBoxEditorStyleInfo
    ListViewItemStyleInfo
    SelectionStyleInfo
    TokenStyleInfo
    AxisStyle
    LegendStyle
    Implements
    System.ComponentModel.ICustomTypeDescriptor
    System.IDisposable
    IStyleInfo
    System.ComponentModel.ISupportInitialize
    System.IFormattable
    System.IConvertible
    System.Xml.Serialization.IXmlSerializable
    IStyleInfoSubObject
    Inherited Members
    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.GetDefaultStyle()
    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.Styles
    Assembly: Syncfusion.Shared.Base.dll
    Syntax
    public abstract class StyleInfoSubObjectBase : StyleInfoBase, ICustomTypeDescriptor, IDisposable, IStyleInfo, ISupportInitialize, IFormattable, IConvertible, IXmlSerializable, IStyleInfoSubObject
    Remarks

    StyleInfoSubObjectBase is derived from StyleInfoBase and thus provides the same easy way to provide properties that can inherit values from base styles at run-time.

    The difference is that StyleInfoSubObjectBase supports this inheritance mechanism as a subobject from a StyleInfoBase. A subobject needs to have knowledge about its parent object and be able to walk the base styles from the parent object.

    Examples for implementation of StyleInfoSubObjectBase are the font and border classes in Essential Grid.

    Programmers can derive their own style classes from StyleInfoSubObjectBase and add type-safe (and Intelli-sense) supported custom properties to the style class. If you write your own SpinButton class that needs individual properties, simply add a "CellSpinButtonInfo" class as subobject. If you derive CellSpinButtonInfo from StyleInfoSubObjectBase, your new object will support property inheritance from base styles.

    See the overview for StyleInfoBase for further discussion about style objects.

    Examples

    The following example shows how you can use the GridFontInfo class in Essential Grid:

            standard.Font.Facename = "Helvetica";
            model[1, 3].Font.Bold = true;
            string faceName = model[1, 3].Font.Facename; // any cell inherits standard style
            Console.WriteLIne(faceName); // will output "Helvetica"
            Console.WriteLIne(model[1, 3].Font.Bold); // will output "true"
            Console.WriteLIne(model[1, 3].Font.HasFaceName); // will output "False"

    Constructors

    StyleInfoSubObjectBase(StyleInfoStore)

    Overloaded. Initializes a new StyleInfoSubObjectBase object and associates it with an existing StyleInfoStore.

    Declaration
    protected StyleInfoSubObjectBase(StyleInfoStore store)
    Parameters
    Type Name Description
    StyleInfoStore store

    A StyleInfoStore that holds data for this object. All changes in this style object will be saved in the StyleInfoStore object.

    StyleInfoSubObjectBase(StyleInfoSubObjectIdentity, StyleInfoStore)

    Initializes a new StyleInfoSubObjectBase object and associates it with an existing StyleInfoStore.

    Declaration
    protected StyleInfoSubObjectBase(StyleInfoSubObjectIdentity identity, StyleInfoStore store)
    Parameters
    Type Name Description
    StyleInfoSubObjectIdentity identity

    A StyleInfoSubObjectIdentity that holds the identity for this StyleInfoBase.

    A StyleInfoStore that holds data for this object. All changes in this style object will be saved in the StyleInfoStore object.
    StyleInfoStore store

    Properties

    Data

    Returns the data for this object. This is the StyleInfoStore from the constructor.

    Declaration
    public object Data { get; }
    Property Value
    Type Description
    System.Object

    Owner

    Returns a reference to the owner style object.

    Declaration
    public StyleInfoBase Owner { get; }
    Property Value
    Type Description
    StyleInfoBase

    Sip

    Returns a unique identifier for this subobject in the owner style object.

    Declaration
    public StyleInfoProperty Sip { get; }
    Property Value
    Type Description
    StyleInfoProperty

    SubObjectIdentity

    Returns the StyleInfoSubObjectIdentity with identity information about this object.

    Declaration
    public StyleInfoSubObjectIdentity SubObjectIdentity { get; }
    Property Value
    Type Description
    StyleInfoSubObjectIdentity

    Methods

    Dispose(Boolean)

    Releases all the resources used by the component.

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing
    Overrides
    StyleInfoBase.Dispose(Boolean)

    IntGetDefaultStyleInfo(StyleInfoProperty)

    Locates the base style that has the specified property and returns its instance.

    Declaration
    protected override StyleInfoBase IntGetDefaultStyleInfo(StyleInfoProperty sip)
    Parameters
    Type Name Description
    StyleInfoProperty sip

    Identifies the property to look for.

    Returns
    Type Description
    StyleInfoBase

    The style object that has the specified property.

    Overrides
    StyleInfoBase.IntGetDefaultStyleInfo(StyleInfoProperty)

    MakeCopy(StyleInfoBase, StyleInfoProperty)

    Makes an exact copy of the current object.

    Declaration
    public virtual 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.

    OnStyleChanged(StyleInfoProperty)

    Declaration
    protected override void OnStyleChanged(StyleInfoProperty sip)
    Parameters
    Type Name Description
    StyleInfoProperty sip
    Overrides
    StyleInfoBase.OnStyleChanged(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