This class paints the interior of a grid cell.
For a list of all members of this type, see OGBrush Members.
System.Object
OGBrush
An instance of an OGBrush can be assigned to the Style.Interior property of a grid cell to paint the interior of the cell with a given solid foreground and background color, or with a hatched pattern. The following C# code shows two ways that OGBrush can be used to paint the Interior of grid cell 1,1 using a cross hatch with a black foreground and a Bisque background.
// Method 1: Create a Style, assign its Interior, and apply the style Style s = new Style(); s.Interior = Stingray.Grid.OGBrush.OGHatchedBrush(Color.Black, Color.Bisque, HatchStyle.Cross); GridControl1[1, 1].Style = s; // Method 2: Directly manipulate the Interior property of the Style GridControl1[1, 1].Style.Interior = Stingray.OG.OGBrush.OGHatchedBrush(Color.Black, Color.Bisque, HatchStyle.Cross);
Namespace: Stingray.Grid
Assemblies: Stingray.GridControl80 (in Stingray.GridControl80.dll)
Stingray.GridControl90 (in Stingray.GridControl90.dll)
Stingray.GridControl10 (in Stingray.GridControl10.dll)