Maptitude GISDK Help

SetIcon()

Summary

Sets the font and character or bitmap used to draw point features.

 

Syntax

SetIcon(string lyr_set_name, string icon_type, string name, real size_or_index)

 

Argument Contents
lyr_set_name The name of the layer or selection set
icon_type A string indicating the type of icon: "Font Character" or "Color Bitmap"
name The name of a TrueType font (including size and style), or the name of the bitmap file
size_or_index Index of a character in the font, or size of the bitmap in points

 

Notes

Example

SetIcon("Cities|", "Font Character", "Arial|16", 44)

SetIcon("Cities|Capitals", "Font Character", "Arial|Bold|24", 48)

SetIcon("Cities|Large", "Color Bitmap", "c:\\temp\\large.bmp", 16)

 

Error Codes

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

 

See Also

Function Summary
GetIcon() Gets the font and character or bitmap used to draw point features
SetIconColor() Sets the color used to draw point features
SetIconSize() Sets the point size of symbols used to draw point features

 

 

©2025 Caliper Corporation www.caliper.com