IMap.Font

Fore Syntax

Font: IGxFont;

Fore.NET Syntax

Font: Prognoz.Platform.Interop.Drawing.GxFont;

Description

The Font property determines map font parameters.

Comments

To determine font color on a map, use the IMap.FontColor property.

Fore Example

Executing the example requires an express report with the EXPR_MAP identifier. The map must be set up in the report.

Add links to the Express, Map, Drawing system assemblies.

Sub UserProc;
Var
    mb: IMetabase;
    Express: IEaxAnalyzer;
    MapFont: IMap;
Begin
    mb := MetabaseClass.Active;
    Express := mb.ItemById("EXPR_MAP").Edit As IEaxAnalyzer;
    MapFont := Express.Map.Map;
    MapFont.Font := New GxFont.Create("Arial Black"20, GxFontStyle.BoldItalic, GxUnit.Point);
    (Express As IMetabaseObject).Save;
End Sub UserProc;

After executing the example map font parameters are changed to the specified ones.

Fore.NET Example

The requirements and result of the Fore.NET example execution match with those in the Fore example.

Imports Prognoz.Platform.Interop.Express;
Imports Prognoz.Platform.Interop.Map;
Imports Prognoz.Platform.Interop.Drawing;

Public Shared Sub Main(Params: StartParams);
Var
    mb: IMetabase;
    Express: IEaxAnalyzer;
    MapFont: IMap;
    GxFontMap: GxFont = New GxFontClass();
Begin
    mb := Params.Metabase;
    Express := mb.ItemById["EXPR_MAP"].Edit() As IEaxAnalyzer;
    MapFont := Express.Map.Map;
    MapFont.Font := GxFontMap;
    GxFontMap.Create("Arial Black"20, GxFontStyle.gfsBoldItalic, GxUnit.guPoint);
    (Express As IMetabaseObject).Save();
End Sub;

See also:

IMap