IMapLayer.Font

Syntax

Font: IGxFont;

Description

The Font property determines font parameters of a 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.Font := New GxFont.Create("Arial Black", 8, 1 As GxFontStyle, 3 As GxUnit);

Map.Refresh;

End Sub LayerFont;

After executing the example the font parameters of the layer label are set to Arial Black font type of 8 size, the Bold font style and the Point unit of measurement:

See also:

IMapLayer