menu

WPF

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

    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
    StyleInfoBase
    StyleInfoSubObjectBase
    CellBordersInfo
    GridComboBoxStyleInfo
    GridCurrencyStyleInfo
    GridDateTimeEditStyleInfo
    GridFontInfo
    GridNumericStyleInfo
    GridPercentStyleInfo
    GridUpDownStyleInfo
    Implements
    IStyleInfo
    ISupportInitialize
    System.IFormattable
    System.IConvertible
    System.Xml.Serialization.IXmlSerializable
    IStyleInfoSubObject
    System.IDisposable
    Inherited Members
    StyleInfoBase.BeginInit()
    StyleInfoBase.BeginUpdate()
    StyleInfoBase.CacheValues
    StyleInfoBase.Changed
    StyleInfoBase.Changing
    StyleInfoBase.ClearCache()
    StyleInfoBase.CopyFrom(IStyleInfo)
    StyleInfoBase.CreateSubObjectIdentity(StyleInfoProperty)
    StyleInfoBase.Dispose()
    StyleInfoBase.EndInit()
    StyleInfoBase.EndUpdate()
    StyleInfoBase.Equals(Object)
    StyleInfoBase.EqualsObject(Object, Object)
    StyleInfoBase.GetDefaultStyle()
    StyleInfoBase.GetDefaultStyleInfoStore(StyleInfoProperty)
    StyleInfoBase.GetDefaultValue(StyleInfoProperty)
    StyleInfoBase.GetHashCode()
    StyleInfoBase.GetSchema()
    StyleInfoBase.GetShortValue(StyleInfoProperty)
    StyleInfoBase.GetValue(StyleInfoProperty)
    StyleInfoBase.HasValue(StyleInfoProperty)
    StyleInfoBase.IConvertible.GetTypeCode()
    StyleInfoBase.IConvertible.ToBoolean(IFormatProvider)
    StyleInfoBase.IConvertible.ToByte(IFormatProvider)
    StyleInfoBase.IConvertible.ToChar(IFormatProvider)
    StyleInfoBase.IConvertible.ToDateTime(IFormatProvider)
    StyleInfoBase.IConvertible.ToDecimal(IFormatProvider)
    StyleInfoBase.IConvertible.ToDouble(IFormatProvider)
    StyleInfoBase.IConvertible.ToInt16(IFormatProvider)
    StyleInfoBase.IConvertible.ToInt32(IFormatProvider)
    StyleInfoBase.IConvertible.ToInt64(IFormatProvider)
    StyleInfoBase.IConvertible.ToSByte(IFormatProvider)
    StyleInfoBase.IConvertible.ToSingle(IFormatProvider)
    StyleInfoBase.IConvertible.ToString(IFormatProvider)
    StyleInfoBase.IConvertible.ToType(Type, IFormatProvider)
    StyleInfoBase.IConvertible.ToUInt16(IFormatProvider)
    StyleInfoBase.IConvertible.ToUInt32(IFormatProvider)
    StyleInfoBase.IConvertible.ToUInt64(IFormatProvider)
    StyleInfoBase.Identity
    StyleInfoBase.IsChanged
    StyleInfoBase.IsEmpty
    StyleInfoBase.IsSubset(IStyleInfo)
    StyleInfoBase.IsValueModified(StyleInfoProperty)
    StyleInfoBase.MergeStyle(IStyleInfo)
    StyleInfoBase.ModifyStyle(IStyleInfo, StyleModifyType)
    StyleInfoBase.OnStyleChanging(StyleInfoProperty)
    StyleInfoBase.ParseString(String)
    StyleInfoBase.ReadXml(XmlReader)
    StyleInfoBase.ResetValue(StyleInfoProperty)
    StyleInfoBase.SetStore(StyleInfoStore)
    StyleInfoBase.SetValue(StyleInfoProperty, Int16)
    StyleInfoBase.SetValue(StyleInfoProperty, Object)
    StyleInfoBase.Store
    StyleInfoBase.ToString()
    StyleInfoBase.ToString(String)
    StyleInfoBase.ToString(String, IFormatProvider)
    StyleInfoBase.Updating
    StyleInfoBase.WeakReferenceChangedListeners
    StyleInfoBase.WriteXml(XmlWriter)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: Syncfusion.UI.Xaml.CellGrid.Styles
    Assembly: Syncfusion.SfCellGrid.WPF.dll
    Syntax
    public abstract class StyleInfoSubObjectBase : StyleInfoBase, IStyleInfo, ISupportInitialize, IFormattable, IConvertible, IXmlSerializable, IStyleInfoSubObject, IDisposable
    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.

    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
    System.Object

    Owner

    Returns a reference to the owner style object.

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

    Sip

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

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

    SubObjectIdentity

    Returns the StyleInfoSubObjectIdentity with identity information about this object.

    Declaration
    public StyleInfoSubObjectIdentity SubObjectIdentity { get; }
    Property Value
    Type
    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

    Dispose the instance, if it is True

    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

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