IBrush.Color
IBrush
property Color: OLE_COLOR;
Type Library
TeeChartx
Description
The Brush Color property determines the color used to fill a zone when using the IBrush Interface.
Note:
Defining a Brush.Color or Brush.Style will reset the Canvas.BackMode to cbmTransparent. If you want your Canvas shapes to display a Canvas.BackColor then you will have to redefine Canvas.BackMode.
Example [Visual Basic]:
Private Sub TChart1_OnAfterDraw()
With TChart1.Canvas
' **** Before
.Brush.Style = bsBDiagonal
.Brush.Color = vbRed
' **** After
.BackColor = vbYellow
.BackMode = cbmNone
.Rectangle 10, 10, 100, 100
End With
End Sub