GetIcon()
Summary
Gets the font and character or bitmap used to draw point features.
Syntax
icon = GetIcon(string lyr_set_name)
| Argument | Contents |
|---|---|
| lyr_set_name | The name of the layer or selection set |
Returns
An array of three elements:
| Element | Type | Contents |
|---|---|---|
| type | String | A string indicating the type of icon: "Font Character" or "Color Bitmap" |
| name | String | The name of a TrueType font (including size and style), or the name of the bitmap file |
| index | Real | Size of the bitmap in points, or index of a character in the font |
Notes
-
GetIcon() returns null if called on a selection set that does not have a defined icon.
Example
icn = GetIcon("Cities|")
icn = GetIcon("Cities|Selection")
Error Codes
| Error Type | Meaning |
|---|---|
| NotFound | The layer or selection set does not exist |
See Also
| Function | Summary |
|---|---|
| SetIcon() | Sets the font and character or bitmap used to draw point features |
| GetIconColor() | Returns the color used to draw point features |