TextBackBrushColor: IGxColor;
The TextBackBrushColor property determines text background color.
Executing the example requires that the repository contains a workspace with the IWSTYLE identifier that contains a shape.
Add links to the Andy, Drawing, Metabase system assemblies.
Sub UserProc;
Var
Mb: IMetabase;
Wsp: IWxWorkspace;
Shape: IWxShape;
Style: IWxStyle;
Begin
// Get workspace for editing
Mb := MetabaseClass.Active;
Wsp := Mb.ItemById("IWSTYLE").Edit As IWxWorkspace;
Wsp.BeginUpdate;
Shape := Wsp.Shapes.Item(0);
Shape.Text := "Text";
Style := Shape.Style;
Style.TextFontBrushColor := GxColor.FromName("Red");
Style.TextBackBrushColor := GxColor.FromName("Blue");
Style.TextBackBrushTransparent := 60;
Wsp.EndUpdate;
(Wsp As IMetabaseObject).Save;
End Sub UserProc;
After executing the example the object contains text in the blue background of defined transparency.
See also: