[]
Collection of CellStyle objects defined for a grid.
[TypeConverter(typeof(GridStyleConverter))]
public class CellStyleCollection : ICollection, IEnumerable, IDisposable
Name | Description |
---|---|
Alternate | Gets the style used to paint scrollable cells in alternate rows. |
Count | Gets the number of CellStyle objects in the collection. |
Editor | Gets the style used to paint the cell being edited. |
EmptyArea | Gets the style used to paint the area of the grid below and to the right of all the cells. |
FilterEditor | Gets the style used to paint the column filter editors. |
Fixed | Gets the style used to paint fixed cells. |
Focus | Gets the style used to paint the current cell when the control has focus. |
Footer | Gets the style used to paint the total footers. |
Frozen | Gets the style used to paint frozen cells (frozen cells are editable and selectable, but not scrollable). |
FrozenAlternate | Gets the style used to paint frozen cells (frozen cells are editable and selectable, but not scrollable) in alternate rows. |
Highlight | Gets the style used to paint highlighted selected cells. |
Hover | Gets the style used to paint hovered cells. |
this[CellStyleEnum] | Gets a built-in CellStyle by style type. |
this[int] | Gets a CellStyle by index. |
this[string] | Gets a CellStyle by name. |
NewRow | Gets the style used to paint cells in the new row template at the bottom of the grid. |
Normal | Gets the default style used to paint scrollable cells. |
Search | Gets the style used to paint the cell selected while auto-searching. |
SelectedColumnHeader | Gets the style used to paint selected column headers. |
SelectedRowHeader | Gets the style used to paint selected row headers. |
Name | Description |
---|---|
Add(string) | Adds a new empty CellStyle object to the collection. |
Add(string, CellStyle) | Adds a new CellStyle object to the collection. |
Add(string, string) | Adds new CellStyle object to the collection. |
BuildString(bool) | Builds and returns a compact string representation of the style collection. |
Clear() | Clear all styles (even those in use) and reset the built-in styles. |
ClearUnused() | Clear all unused styles. |
Contains(string) | Checks whether the collection contains a given style. |
Dispose() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
Dispose(bool) | Releases unmanaged and - optionally - managed resources. |
~CellStyleCollection() | Finalizes an instance of the CellStyleCollection class. |
IndexOf(CellStyle) | Gets the index of a style in the collection. |
ParseString(string) | Parses a string containing style definitions. |
Remove(CellStyle) | Removes a custom style from the collection. |
Remove(int) | Removes a custom style from the collection. |
Remove(string) | Removes a custom style from the collection. |