BackgroundBrushForeColor: IGxColor;
The BackgroundBrushForeColor property determines object background color.
Executing the example requires an existing ws object of the IWxWorkspace type.
Sub UserProc;
Var
ws: IWxWorkspace;
Shape: IWxShape;
Style: IWxStyle;
Begin
ws.BeginUpdate;
Shape := ws.Shapes.Item(1);
Style := Shape.Style;
Style.BackgroundBrushForeColor := GxColor.FromName("Red");
Style.BackgroundBrushForeTransparent := 30;
Style.BackgroundBrushBackColor := GxColor.FromName("Blue");
Style.BackgroundBrushBackTransparent := 60;
Style.BackgroundBrushPattern := GxBrushPattern.Diagonals;
ws.EndUpdate;
End Sub UserProc;
After executing the example the fill with defined settings is applied for the object.
See also: