IWxStyle.BackgroundBrushBackColor

Syntax

BackgroundBrushBackColor: IGxColor;

Description

The BackgroundBrushBackColor property determines pattern color for object background.

Example

Executing the example requires a form with the Button and UiWorkspaceObject components with the Button1 and UiWorkspaceObject1 identifiers, respectively. A corresponding repository object must be connected to UiWorkspaceObject. This component must also contain a previously created shape.

Add links to the Andy, Drawing, Workspace system assemblies.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    ws: IWxWorkspace;
    Shape: IWxShape;
    Style: IWxStyle;
Begin
    ws := UiWorkspaceObject1.Instance 
As IWxWorkspace;
    ws.BeginUpdate;
    Shape := ws.Shapes.Item(
0);
    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 Button1OnClick;

After executing the example the color fill with defined settings is set on clicking the Button1 component located on the shape of the UiWorkspaceObject1 component.

See also:

IWxStyle