C1.Win.C1FlexGrid Namespace > C1FlexGridBase Class : Styles Property |
'Declaration
<C1DescriptionAttribute("Style collection.")> <CategoryAttribute("Appearance")> <RefreshPropertiesAttribute(RefreshProperties.Repaint)> <DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)> Public Property Styles As CellStyleCollection
'Usage
Dim instance As C1FlexGridBase Dim value As CellStyleCollection instance.Styles = value value = instance.Styles
[C1Description("Style collection.")] [Category("Appearance")] [RefreshProperties(RefreshProperties.Repaint)] [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] public CellStyleCollection Styles {get; set;}
[C1Description("Style collection.")] [Category("Appearance")] [RefreshProperties(RefreshProperties.Repaint)] [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] public: property CellStyleCollection^ Styles { CellStyleCollection^ get(); void set ( CellStyleCollection^ value); }
The Styles property enables you to obtain a reference to the list of styles that are currently defined in the grid. With this reference, you can add, remove, and count the styles. For more information on the tasks that can be performed with this collection, see the CellStyleCollection class reference topics. For information on cell formatting, see the CellStyle reference topics.
This property is read-only. The grid creates and manages the collection for you.
Upgrade Note: The VSFlexGrid ActiveX control had many properties that affected the way the grid was displayed (e.g. BackColor, BackColorAlternate, BackColorBkg, BackColorFixed, BackColorFrozen, BackColorSel, and so on). The C1FlexGrid control replaces all these properties with a collection of CellStyle objects. This makes the object model simpler, more consistent, and more powerful. You can change the built-in styles or define your own, and assign them to rows, columns, or arbitrary cell ranges.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2