ThinkGeo Cloud
ThinkGeo UI Controls
ThinkGeo Open Source
Help and Support
External Resources
ThinkGeo Cloud
ThinkGeo UI Controls
ThinkGeo Open Source
Help and Support
External Resources
This is an old revision of the document!
<!– Class –> This class is a single item in an IconValueStyle.
This item is used in the IconValueStyle to determine which way to draw the feature based on the FieldValue property.
How IconValueStyle works:
When you create an IconValueStyle, you need to add multiple IconValueItems to its collection. You input the column name in the IconValueStyle and it will compare the data's value to each IconValueItem's FieldValue. If they match, then it will draw the Feature using the properties of the IconValueItem. In this way, you can render different data with different icons or text.
The MinimumLength and MaximumLength properties are important because they are used to ensure that a properly sized icon is used to draw things like road signs. For example, you can set the minimum and maximum values so that the sign icon for a single-digit road number uses one icon, while a two-digit road uses another, wider sign icon in a separate IconValueItem.
*System.Object **ThinkGeo.MapSuite.PortableCore.IconValueItem
Name | Parameters | DeclaringType | Summary |
---|---|---|---|
![]() | This is the constructor for the class. | ||
![]() | String, String, TextStyle | This is the constructor for the class. | |
![]() | String, GeoImage, TextStyle | This is the constructor for the class. |
Name | Parameters | DeclaringType | Summary |
---|
Name | Parameters | DeclaringType | Summary |
---|---|---|---|
![]() | Object | Object | |
![]() | Object | ||
![]() | This method gets the icon we will draw as a GeoImage. | ||
![]() | Object | ||
![]() | Object |
Name | Parameters | DeclaringType | Summary |
---|---|---|---|
![]() | Object | ||
![]() | Object |
Name | Return | DeclaringType | Summary |
---|---|---|---|
![]() | String | This property gets and sets the field value that has to match in the IconValueStyle. | |
![]() | String | This property gets and sets the path and filename of the icon that will be drawn. | |
![]() | TextStyle | This property gets and sets the style that will be used to draw the text in the icon. | |
![]() | Int32 | This property gets and sets the maximum string length for this item to match. | |
![]() | Int32 | This property gets and sets the minimum string length for this item to match. |
Name | Return | DeclaringType | Summary |
---|
Name | Event Arguments | DeclaringType | Summary |
---|
This is the constructor for the class.
This is the default constructor for the class.
If you use the constructor, then you should set all the properties manually.
Name | Type | Description |
---|
This is the constructor for the class.
This constructor allows you to set the field value, the path and filename of the icon and the text style you want to use to render it.
You would typically use this constructor if you are using an icon that's located on disk. If you need to use an image from a stream instead, there is another overload that takes a GeoImage.
Name | Type | Description |
---|---|---|
fieldValue | String<!– System.String –> | This parameter is the value you want to match. |
iconPathFilename | String<!– System.String –> | This parameter is the path and filename of the image you want to use. |
textStyle | TextStyle<!– ThinkGeo.MapSuite.PortableCore.TextStyle –> | This parameter is the TextStyle of how you want the text drawn. |
This is the constructor for the class.
This constructor allows you to set the field value, the GeoImage, and the text style you want to use to render it.
You will typically use this overload if you need to use a stream for the image. If you need to use a file located on disk instead, there is another overload that takes the path and filename to an image.
Name | Type | Description |
---|---|---|
fieldValue | String<!– System.String –> | This parameter is the value you want to match. |
iconImage | GeoImage<!– ThinkGeo.MapSuite.PortableCore.GeoImage –> | This parameter is the GeoImage of the image you want to use. |
textStyle | TextStyle<!– ThinkGeo.MapSuite.PortableCore.TextStyle –> | This parameter is the TextStyle of how you want the text drawn. |
Return Type | Description |
---|---|
Boolean<!– System.Boolean –> |
Name | Type | Description |
---|---|---|
obj | Object<!– System.Object –> |
<!– System.Object –> Go Back
Return Type | Description |
---|---|
Int32<!– System.Int32 –> |
Name | Type | Description |
---|
<!– System.Object –> Go Back
This method gets the icon we will draw as a GeoImage.
This method is used when drawing to get the image as a GeoImage. We will internally either pass along the GeoImage the user set, or create a GeoImage from the IconFilePathName that was set.
Return Type | Description |
---|---|
GeoImage<!– ThinkGeo.MapSuite.PortableCore.GeoImage –> | This method gets the icon we will draw as a GeoImage. |
Name | Type | Description |
---|
<!– ThinkGeo.MapSuite.PortableCore.IconValueItem –> Go Back
Return Type | Description |
---|---|
Type<!– System.Type –> |
Name | Type | Description |
---|
<!– System.Object –> Go Back
Return Type | Description |
---|---|
String<!– System.String –> |
Name | Type | Description |
---|
<!– System.Object –> Go Back
Return Type | Description |
---|---|
Void<!– System.Void –> |
Name | Type | Description |
---|
<!– System.Object –> Go Back
Return Type | Description |
---|---|
Object<!– System.Object –> |
Name | Type | Description |
---|
<!– System.Object –> Go Back
This property gets and sets the field value that has to match in the IconValueStyle.
For an explanation on how the IconValueStyle works, see the IconValueStyle Class remarks.
Return Type |
---|
String<!– System.String –> |
<!– ThinkGeo.MapSuite.PortableCore.IconValueItem –> Go Back
This property gets and sets the path and filename of the icon that will be drawn.
If you need to use a GeoImage, you can set the GeoImage in the constructor or use the property.
Return Type |
---|
String<!– System.String –> |
<!– ThinkGeo.MapSuite.PortableCore.IconValueItem –> Go Back
This property gets and sets the style that will be used to draw the text in the icon.
Return Type |
---|
TextStyle<!– ThinkGeo.MapSuite.PortableCore.TextStyle –> |
<!– ThinkGeo.MapSuite.PortableCore.IconValueItem –> Go Back
This property gets and sets the maximum string length for this item to match.
This is an important property because it is used to ensure that that a properly sized icon is used to draw things like road signs. For example, you can set the minimum and maximum values so that the sign icon for a single-digit road number uses one icon, while a two-digit road uses another, wider sign icon in a separate IconValueItem.
Return Type |
---|
Int32<!– System.Int32 –> |
<!– ThinkGeo.MapSuite.PortableCore.IconValueItem –> Go Back
This property gets and sets the minimum string length for this item to match.
This is an important property because it is used to ensure that that a properly sized icon is used to draw things like road signs. For example, you can set the minimum and maximum values so that the sign icon for a single-digit road number uses one icon, while a two-digit road uses another, wider sign icon in a separate IconValueItem.
Return Type |
---|
Int32<!– System.Int32 –> |
<!– ThinkGeo.MapSuite.PortableCore.IconValueItem –> Go Back