Class ListViewStyleInfoSubObjectIdentity
ListViewStyleInfoSubObjectIdentity is an abstract base class for classes to be used as sub-objects in a ItemStyleInfo.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.WinForms.ListView.Styles
Assembly: Syncfusion.SfListView.WinForms.dll
Syntax
public class ListViewStyleInfoSubObjectIdentity : ScrollerVisualStyleInfoSubObjectIdentity, IDisposable
Remarks
ListViewStyleInfoSubObjectIdentity 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 ListViewStyleInfoSubObjectIdentity supports this inheritance mechanism as a sub-object from a ItemStyleInfo. A sub-object needs to have knowledge about its parent object and be able to walk the base styles from the parent object.
Examples for implementation of ListViewStyleInfoSubObjectIdentity are the font and border classes in Essential Grid.
Programmers can derive their own style classes from ListViewStyleInfoSubObjectIdentity and add type-safe supported custom properties to the style class. If you write your own SpinButton class that needs individual properties, simply add a CellSpinButtonInfo class as sub object. If you derive CellSpinButtonInfo from DataGridStyleInfoSubObject, your new object will support property inheritance from base styles.
See the overview for StyleInfoBase for further discussion about style objects.
Constructors
ListViewStyleInfoSubObjectIdentity(StyleInfoBase, StyleInfoProperty)
Initializes a new instance of the ListViewStyleInfoSubObjectIdentity class. Initializes a new instances of the ListViewStyleInfoSubObjectIdentity object and associates it with a specified ItemStyleInfo.
Declaration
public ListViewStyleInfoSubObjectIdentity(StyleInfoBase owner, StyleInfoProperty sip)
Parameters
| Type | Name | Description |
|---|---|---|
| StyleInfoBase | owner | The StyleInfoBase that owns this sub-object. |
| StyleInfoProperty | sip | The StyleInfoProperty descriptor for this expandable sub-object. |