SetIconSize()

Summary

Sets the point size of symbols used to draw point features.

Syntax

SetIconSize(string lyr_set_name, real point_size)

Argument Contents
lyr_set_name The name of the layer or selection set
point_size The size of the icon in points

Notes

  • When used on a selection set, a null value for point_size indicates that the default value for the layer should be used.

  • When setting the icon size for a selection set, the font for that set must have been previously set by SetIcon().

  • If lyr_set_name is null, SetIconSize() operates on the current layer.

  • SetIconSize() normally operates on the current map. You can force it to operate on a different map by including the map name in lyr_set_name. For instance, Map1|LayerA| affects the display of LayerA in Map1.

Example

SetIconSize("Cities|", 12.0)
SetIcon("Cities|Capitals ", "Font Character", "Arial|16", 44)
SetIconSize("Cities|Capitals", 16.0)

Error Codes

Error Type Meaning
NotFound The layer or selection set does not exist

See Also

Function Summary
GetIconSize() Gets the point size of the symbol used to draw point features
SetIconColor() Sets the color used to draw point features
SetIcon() Sets the font and character or bitmap used to draw point features