![]() | OGBrush Class |
Namespace: Stingray.Grid
The OGBrush type exposes the following members.
Name | Description | |
---|---|---|
![]() | OGBrush |
Initializes a new OGBrush object.
|
![]() | OGBrush(OGBrush) |
Initializes a new OGBrush object from another one.
|
![]() | OGBrush(SerializationInfo, StreamingContext) |
Internal.
|
Name | Description | |
---|---|---|
![]() | Clone |
Creates a copy of this brush.
|
![]() | Equals |
Indicates whether this brush and a specified object are equal.
(Overrides ObjectEquals(Object).) |
![]() | GetHashCode |
Calculates the hash code for this brush.
(Overrides ObjectGetHashCode.) |
![]() | MakeGdiPlusBrush |
Converts an OG Brush into a GDI+ brush object.
|
![]() ![]() | OGHatchedBrush(Color, HatchStyle) |
Creates a hatched brush using the specified foreground color
and hatch style.
|
![]() ![]() | OGHatchedBrush(Color, Color, HatchStyle) |
Creates a hatched brush using the specified foreground color,
background color, and hatch style.
|
![]() ![]() | OGHollowBrush |
Creates a hollow brush.
|
![]() ![]() | OGSolidBrush |
Creates a solid brush using the specified background color.
|
Name | Description | |
---|---|---|
![]() | backColor |
The background color of this brush.
|
![]() | foreColor |
The foreground color of this brush.
|
![]() | hatch |
The hatch style of this brush.
|
![]() | style |
The brush style of this brush.
|
Name | Description | |
---|---|---|
![]() | BackColor |
Gets the background color for the brush.
|
![]() | Description |
Returns a string description of this brush.
|
![]() | ForeColor |
Gets the foreground color for the brush.
|
![]() | Hatch |
Gets the hatch style used to paint the interior of a grid cell.
|
![]() | Style |
Gets the brush style used to paint the interior of a cell.
|
// 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);