BackgroundBrushBackTransparent: Integer;
The BackgroundBrushBackTransparent property determines pattern transparency degree for object background. Available values should be within the range [0,100]. The 100 value corresponds to full transparency, the 0 value corresponds to full opaqueness.
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: