TextBackgroundBrush: IGxBrush;
The TextBackgroundBrush property determines map text background.
The example requires the Map object of the IMap type.
Add links to the Drawing and Map system assemblies.
Sub Brush;
Var
Map: IMap;
Color: IGxColor;
Begin
Color := GxColor.FromName("Red");
// Set text background color
Map.TextBackgroundBrush := New GxSolidBrush.Create(Color);
// Set text border
Map.TextBorderPen := New GxPen.CreateSolid(New GxColor.CreateARGB(255,0,0,255),1.02);
End Sub Brush;
After executing the example text background color is changed to red, and the text is outlined with a blue border of the specified width.
See also: