IMapLayer.FontColor

Syntax

FontColor: IGxColor;

Description

The FontColor property determines the font color of the map layer label.

Example

The module is connected to the regular report, which sheet contains the map.

Sub LayerFont;

Var

Map: IMap;

Layer: IMapLayer;

Begin

Map := PrxReport.ActiveReport.ActiveSheet.Table.Objects.Item(0).Extension As IMap;

Layer := Map.Layers.FindByName("Regions");

Layer.FontColor := GxColor.FromName("Red");

Map.Refresh;

End Sub LayerFont;

After executing the example the layer label font color is set to red:

See also:

IMapLayer