Font: IGxFont;
The Font property determines map font parameters.
To determine font color on a map, use the IMap.FontColor property.
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.
See also: