IWxStyle.TextBackBrushColor

Syntax

TextBackBrushColor: IGxColor;

Description

The TextBackBrushColor property determines text background color.

Example

Executing the example requires that repository contains a workspace with the IWSTYLE identifier containing shape.

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

Sub UserProc;
Var
    mb: IMetabase;
    ws: IWxWorkspace;
    Shape: IWxShape;
    Style: IWxStyle;
Begin
    // Get workspace for editing
    mb := MetabaseClass.Active;
    ws := mb.ItemById("IWSTYLE").Edit As IWxWorkspace;
    ws.BeginUpdate;
    Shape := ws.Shapes.Item(0);
    Shape.Text := "Text";
    Style := Shape.Style;
    Style.TextFontBrushColor := GxColor.FromName("Red");
    Style.TextBackBrushColor := GxColor.FromName("Blue");
    Style.TextBackBrushTransparent := 60;
    ws.EndUpdate;
    (ws As IMetabaseObject).Save;
End Sub UserProc;

After executing the example the object contains text in the blue background of defined transparency.

See also:

IWxStyle