ICanvas.BackMode
ICanvas
property BackMode: ECanvasBackMode;
Type Library
TeeChartx
Description
Can be cbmNone, cbmOpaque or cbmTransparent.
If it is cbmOpaque, then the BackColor is used.
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 = cbmOpaque
.Rectangle 10, 10, 100, 100
End With
End Sub