Purpose
Returns information about a specific theme item for an individual thematic layer in a map. You can call this function from the MapBasic window in MapInfo Pro.
Syntax
IndividualThemeItemInfo ( map_window_id, thematic_layer_id, item_id, attribute )
map_window_id
is a Map window identifier.
thematic_layer_id
is a SmallInt
that identifies a thematic layer in a Map.
item_id
is an Integer
that identifies a theme item.
attribute
is a SmallInt
code indicating the type of information to return; see table below.
Return Value
Depends on the attribute
parameter.
Description
Theattribute
parameter can be any value from the table below.
Attribute code | ID | IndividualThemeItemInfo() returns |
---|---|---|
INDIVTHEME_ITEM_INFO_LINE | 1 | Line style clause used for displaying objects that belong to the specified item ID. If the theme is not a line based theme, a default line style will be returned using the color of the predominant geometry (regions or points) item style. |
INDIVTHEME_ITEM_INFO_PEN | 2 | Pen style clause used for displaying border of objects that belong to the specified item ID. If the theme is not a region based theme, a default pen will be returned: Pen(1, 2, 0). |
INDIVTHEME_ITEM_INFO_BRUSH | 3 | Brush style clause used for displaying objects that belong to the specified item ID. If the theme is not a region based theme, a default brush will be returned using the color of the predominant geometry (lines or points) range style. |
INDIVTHEME_ITEM_INFO_SYMBOL | 4 | Symbol style clause used for displaying objects that belong to the specified item ID. If the theme is not point a based theme, a default style will be returned using the color of the predominant geometry (regions or lines) item style. |
INDIVTHEME_ITEM_INFO_VALUE | 5 | Value (Small Integer or Integer , or Decimal or String or Float or Time or Date or Datetime , etc.) is returned representing the value for the specified item ID. |
See Also: