IBrush.Style
IBrush
property Style: EBrushStyle;
Type Library
TeeChartx
Description
The Style property determines the style in which the zone is filled or patterned on the canvas.
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