Syncfusion.Shared.Base
Members  Example 


Syncfusion.Styles Namespace : StyleInfoSubObjectBase Class

StyleInfoSubObjectBase Class

StyleInfoSubObjectBase is an abstract base class for classes to be used as subobjects in a StyleInfoBase.
Object Model
StyleInfoSubObjectBase ClassStyleInfoIdentityBase ClassStyleInfoBase ClassStyleInfoProperty ClassStyleInfoStore ClassStyleInfoSubObjectIdentity Class
Syntax
'Declaration
 
<TypeConverterAttribute(Syncfusion.Styles.StyleInfoBaseConverter)>
<RefreshPropertiesAttribute(RefreshProperties.Repaint)>
Public MustInherit Class StyleInfoSubObjectBase 
   Inherits StyleInfoBase
   Implements IStyleInfo, IStyleInfoSubObject 
'Usage
 
Dim instance As StyleInfoSubObjectBase
[TypeConverter(Syncfusion.Styles.StyleInfoBaseConverter)]
[RefreshProperties(RefreshProperties.Repaint)]
public abstract class StyleInfoSubObjectBase : StyleInfoBase, IStyleInfo, 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.

Example
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"
Inheritance Hierarchy

System.Object
   Syncfusion.Design.ShouldSerializeBasedPersisterType
      Syncfusion.Styles.StyleInfoBase
         Syncfusion.Styles.StyleInfoSubObjectBase
            Syncfusion.Styles.CheckBoxStyleInfoBase
            Syncfusion.Styles.VisualStyleBase
            Syncfusion.Windows.Forms.BulletGraph.RangeStyleInfo
            Syncfusion.Windows.Forms.CalculatorToolTipStyleInfo
            Syncfusion.Windows.Forms.Chart.ChartSubStyleInfoBase
            Syncfusion.Windows.Forms.CollapsedViewGroupBarStyleInfo
            Syncfusion.Windows.Forms.ColorListStyleInfo
            Syncfusion.Windows.Forms.ColorPaletteStyleInfo
            Syncfusion.Windows.Forms.ColorTabControlStyleInfo
            Syncfusion.Windows.Forms.ContextChoiceStyleInfo
            Syncfusion.Windows.Forms.ContextPromptStyleInfo
            Syncfusion.Windows.Forms.Diagram.RulerStyleInfo
            Syncfusion.Windows.Forms.Diagram.SelectorStyleInfo
            Syncfusion.Windows.Forms.DialogBoxStyleInfo
            Syncfusion.Windows.Forms.Grid.GridCellButtonStyleInfo
            Syncfusion.Windows.Forms.Grid.GridCellSelectionStyleInfo
            Syncfusion.Windows.Forms.Grid.GridCellStyleInfo
            Syncfusion.Windows.Forms.Grid.GridCheckBoxCellStyleInfo
            Syncfusion.Windows.Forms.Grid.GridComboBoxCellStyleInfo
            Syncfusion.Windows.Forms.Grid.GridCommentTipInfo
            Syncfusion.Windows.Forms.Grid.GridCurrencyEditInfo
            Syncfusion.Windows.Forms.Grid.GridMaskEditInfo
            Syncfusion.Windows.Forms.Grid.GridProgressBarInfo
            Syncfusion.Windows.Forms.Grid.GridRadioButtonCellStyleInfo
            Syncfusion.Windows.Forms.Grid.GridStyleInfoSubObject
            Syncfusion.Windows.Forms.GroupBarCollapseButtonStyleInfo
            Syncfusion.Windows.Forms.GroupBarItemStyleInfo
            Syncfusion.Windows.Forms.GroupBarOptionButtonStyleInfo
            Syncfusion.Windows.Forms.GroupViewItemStyleInfo
            Syncfusion.Windows.Forms.Maps.BubbleStyleInfo
            Syncfusion.Windows.Forms.MessageBoxAdvDetailsViewStyleInfo
            Syncfusion.Windows.Forms.MessageBoxAdvTitleBarStyleInfo
            Syncfusion.Windows.Forms.NavigateArrowStyleInfo
            Syncfusion.Windows.Forms.PivotAnalysis.EditMenuStyleInfo
            Syncfusion.Windows.Forms.PivotAnalysis.ExpanderStyleInfo
            Syncfusion.Windows.Forms.PivotAnalysis.FilterDropDownStyleInfo
            Syncfusion.Windows.Forms.PivotAnalysis.GroupBarItemStyleInfo
            Syncfusion.Windows.Forms.PivotAnalysis.GroupBarStyleInfo
            Syncfusion.Windows.Forms.PivotAnalysis.PivotValueChooserStyleInfo
            Syncfusion.Windows.Forms.PivotAnalysis.SchemaDesignerItemStyleInfo
            Syncfusion.Windows.Forms.PivotAnalysis.SchemaDesignerStyleInfo
            Syncfusion.Windows.Forms.Ribbon.BackStageStyleInfo
            Syncfusion.Windows.Forms.Ribbon.RibbonDisplayOptionStyleInfo
            Syncfusion.Windows.Forms.Ribbon.RibbonPanelStyleInfo
            Syncfusion.Windows.Forms.ScrollBarSizeGripStyleInfo
            Syncfusion.Windows.Forms.ScrollBarStyleInfo
            Syncfusion.Windows.Forms.SplitterBarStyleInfo
            Syncfusion.Windows.Forms.Spreadsheet.ContextMenuStyleInfo
            Syncfusion.Windows.Forms.Spreadsheet.FormulaBarStyleInfo
            Syncfusion.Windows.Forms.Spreadsheet.SpreadsheetHeaderStyleInfo
            Syncfusion.Windows.Forms.StackedViewGroupBarStyleInfo
            Syncfusion.Windows.Forms.SuggestionItemStyleInfo
            Syncfusion.Windows.Forms.TabBarStyleInfo
            Syncfusion.Windows.Forms.Tools.AutoCompleteStyleInfo
            Syncfusion.Windows.Forms.Tools.AutoHideStyleInfo
            Syncfusion.Windows.Forms.Tools.CheckBoxStyleInfo
            Syncfusion.Windows.Forms.Tools.CommandBarIconStyleInfo
            Syncfusion.Windows.Forms.Tools.DockWindowStyleInfo
            Syncfusion.Windows.Forms.Tools.DropDownButtonStyleInfo
            Syncfusion.Windows.Forms.Tools.DropDownStyleInfo
            Syncfusion.Windows.Forms.Tools.EditableTabStyleInfo
            Syncfusion.Windows.Forms.Tools.FloatWindowStyleInfo
            Syncfusion.Windows.Forms.Tools.GalleryStyleInfo
            Syncfusion.Windows.Forms.Tools.LauncherStyleInfo
            Syncfusion.Windows.Forms.Tools.ListItemStyleInfo
            Syncfusion.Windows.Forms.Tools.MoreCommandsStyleInfo
            Syncfusion.Windows.Forms.Tools.MultiColumnComboDropDownButtonStyleInfo
            Syncfusion.Windows.Forms.Tools.MultiColumnComboEditorStyleInfo
            Syncfusion.Windows.Forms.Tools.MultiColumnTreeView.TreeColumnAdvStyleInfo
            Syncfusion.Windows.Forms.Tools.MultiColumnTreeView.TreeNodeAdvStyleInfo
            Syncfusion.Windows.Forms.Tools.MultiColumnTreeView.TreeNodeAdvSubItemStyleInfo
            Syncfusion.Windows.Forms.Tools.NavigationBarStyleInfo
            Syncfusion.Windows.Forms.Tools.NavigationDrawerItemStyleInfo
            Syncfusion.Windows.Forms.Tools.NavigationDropDownStyleInfo
            Syncfusion.Windows.Forms.Tools.NavigationTextBoxStyleInfo
            Syncfusion.Windows.Forms.Tools.ScrollButtonStyleInfo
            Syncfusion.Windows.Forms.Tools.SplitButtonStyleInfo
            Syncfusion.Windows.Forms.Tools.SplitDropDownButtonStyleInfo
            Syncfusion.Windows.Forms.Tools.SplitterPageStyleInfo
            Syncfusion.Windows.Forms.Tools.StatusBarPanelItemStyleInfo
            Syncfusion.Windows.Forms.Tools.StatusStripExButtonStyleInfo
            Syncfusion.Windows.Forms.Tools.StatusStripExDropDownStyleInfo
            Syncfusion.Windows.Forms.Tools.TabControlPrimitiveButtonStyleInfo
            Syncfusion.Windows.Forms.Tools.TabSplitterPrimitivesStyleInfo
            Syncfusion.Windows.Forms.Tools.TabStyleInfo
            Syncfusion.Windows.Forms.Tools.ToggleButtonSliderStyleInfo
            Syncfusion.Windows.Forms.Tools.ToolStripComboBoxExStyleInfo
            Syncfusion.Windows.Forms.Tools.ToolStripDropDownStyleInfo
            Syncfusion.Windows.Forms.Tools.ToolStripSplitButtonStyleInfo
            Syncfusion.Windows.Forms.Tools.ToolTipControlStyleInfo
            Syncfusion.Windows.Forms.Tools.TreeMenuItemStyleInfo
            Syncfusion.Windows.Forms.Tools.TreeNodeAdvStyleInfo
            Syncfusion.Windows.Forms.Tools.XPMenus.BarItemStyleInfo
            Syncfusion.Windows.Forms.Tools.XPMenus.ComboBoxBarItemStyleInfo
            Syncfusion.Windows.Forms.ToolTipStyleInfo
            Syncfusion.WinForms.Controls.Styles.DropDownStyleInfo
            Syncfusion.WinForms.Controls.Styles.MdiChildStyleInfo
            Syncfusion.WinForms.Controls.Styles.ScrollBarStyleInfo
            Syncfusion.WinForms.Controls.Styles.TitleBarStyleInfo
            Syncfusion.WinForms.DataGrid.Styles.ButtonCellStyleInfo
            Syncfusion.WinForms.DataGrid.Styles.CellStyleInfo
            Syncfusion.WinForms.DataGrid.Styles.CheckBoxCellStyleInfo
            Syncfusion.WinForms.DataGrid.Styles.CurrentCellStyleInfo
            Syncfusion.WinForms.DataGrid.Styles.DataGridStyleInfoSubObject
            Syncfusion.WinForms.DataGrid.Styles.FreezePaneLineStyleInfo
            Syncfusion.WinForms.DataGrid.Styles.GroupDropAreaItemStyleInfo
            Syncfusion.WinForms.DataGrid.Styles.GroupDropAreaStyleInfo
            Syncfusion.WinForms.DataGrid.Styles.HyperlinkCellStyleInfo
            Syncfusion.WinForms.DataGrid.Styles.ProgressBarCellStyleInfo
            Syncfusion.WinForms.DataGrid.Styles.SelectionStyleInfo
            Syncfusion.WinForms.Input.Styles.CalendarCellStyleInfo
            Syncfusion.WinForms.Input.Styles.CalendarFooterStyleInfo
            Syncfusion.WinForms.Input.Styles.CalendarHeaderStyleInfo
            Syncfusion.WinForms.Input.Styles.DropDownStyleInfo
            Syncfusion.WinForms.ListView.Styles.ComboBoxEditorStyleInfo
            Syncfusion.WinForms.ListView.Styles.ListViewItemStyleInfo
            Syncfusion.WinForms.ListView.Styles.SelectionStyleInfo
            Syncfusion.WinForms.ListView.Styles.TokenStyleInfo
            Syncfusion.WinForms.SmithChart.AxisStyle
            Syncfusion.WinForms.SmithChart.LegendStyle

AssemblyVersion

Syncfusion.Shared.Base: 17.3460.0.26

See Also