Share via


MapFont property

Returns or sets the font size of the text on the map; similar to clicking Map Font on the View menu. Read/write GeoMapFont.

GeoMapFont Value Description
geoMapFontLargest
0
Largest map text font size
geoMapFontLarger
1
Larger map text font size
geoMapFontMedium
2
Medium map text font size
geoMapFontSmaller
3
Smaller map text font size
geoMapFontSmallest
4
Smallest map text font size

Applies to

Objects:  Map

Syntax

object.MapFont

Parameters

Part Description
object Required. An expression that returns a Map object.

Example

    Sub ChangeMapFont()

  Dim objApp As New MapPoint.Application
  'Set up the application   objApp.Visible = True   objApp.UserControl = True
  'Change the map font   objApp.ActiveMap.MapFont = geoMapFontLargest
  End Sub