This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
thinkgeo.mapsuite.core.iconvalueitem [2015/08/20 03:08] 127.0.0.1 external edit |
— (current) | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== ThinkGeo.MapSuite.Core.IconValueItem ====== | ||
| - | |||
| - | |||
| - | |||
| - | <!-- Class --> | ||
| - | This class is a single item in an IconValueStyle. | ||
| - | === Remarks === | ||
| - | 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. | ||
| - | ===== Inheritance Hierarchy ===== | ||
| - | *System.Object | ||
| - | **[[ThinkGeo.MapSuite.Core.IconValueItem]] | ||
| - | ===== Members Summary ===== | ||
| - | ==== Public Constructors ==== | ||
| - | ^ Name ^ Parameters ^ DeclaringType ^ Summary ^ | ||
| - | | {{wiki:PublicMethod.gif|Public Method}}[[#IconValueItem()|IconValueItem]] | | | This is the constructor for the class. | | ||
| - | | {{wiki:PublicMethod.gif|Public Method}}[[#IconValueItem(String, String, TextStyle)|IconValueItem]] | String, String, [[ThinkGeo.MapSuite.Core.TextStyle|TextStyle]] | | This is the constructor for the class. | | ||
| - | | {{wiki:PublicMethod.gif|Public Method}}[[#IconValueItem(String, GeoImage, TextStyle)|IconValueItem]] | String, [[ThinkGeo.MapSuite.Core.GeoImage|GeoImage]], [[ThinkGeo.MapSuite.Core.TextStyle|TextStyle]] | | This is the constructor for the class. | | ||
| - | |||
| - | ==== Protected Constructors ==== | ||
| - | ^ Name ^ Parameters ^ DeclaringType ^ Summary ^ | ||
| - | |||
| - | ==== Public Methods ==== | ||
| - | ^ Name ^ Parameters ^ DeclaringType ^ Summary ^ | ||
| - | | {{wiki:PublicMethod.gif|Public Method}}[[#Equals(Object)|Equals]] | Object | Object | | | ||
| - | | {{wiki:PublicMethod.gif|Public Method}}[[#GetHashCode()|GetHashCode]] | | Object | | | ||
| - | | {{wiki:PublicMethod.gif|Public Method}}[[#GetIconImage()|GetIconImage]] | | | This method gets the icon we will draw as a GeoImage. | | ||
| - | | {{wiki:PublicMethod.gif|Public Method}}[[#GetType()|GetType]] | | Object | | | ||
| - | | {{wiki:PublicMethod.gif|Public Method}}[[#ToString()|ToString]] | | Object | | | ||
| - | |||
| - | ==== Protected Methods ==== | ||
| - | ^ Name ^ Parameters ^ DeclaringType ^ Summary ^ | ||
| - | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#Finalize()|Finalize]] | | Object | | | ||
| - | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#MemberwiseClone()|MemberwiseClone]] | | Object | | | ||
| - | |||
| - | ==== Public Properties ==== | ||
| - | ^ Name ^ Return ^ DeclaringType ^ Summary ^ | ||
| - | | {{wiki:PublicProperty.gif|Public Property}}[[#FieldValue|FieldValue]] | String | | This property gets and sets the field value that has to match in the IconValueStyle. | | ||
| - | | {{wiki:PublicProperty.gif|Public Property}}[[#IconFilePathName|IconFilePathName]] | String | | This property gets and sets the path and filename of the icon that will be drawn. | | ||
| - | | {{wiki:PublicProperty.gif|Public Property}}[[#TextStyle|TextStyle]] | [[ThinkGeo.MapSuite.Core.TextStyle|TextStyle]] | | This property gets and sets the style that will be used to draw the text in the icon. | | ||
| - | | {{wiki:PublicProperty.gif|Public Property}}[[#TextValueLengthMax|TextValueLengthMax]] | Int32 | | This property gets and sets the maximum string length for this item to match. | | ||
| - | | {{wiki:PublicProperty.gif|Public Property}}[[#TextValueLengthMin|TextValueLengthMin]] | Int32 | | This property gets and sets the minimum string length for this item to match. | | ||
| - | |||
| - | ==== Protected Properties ==== | ||
| - | ^ Name ^ Return ^ DeclaringType ^ Summary ^ | ||
| - | |||
| - | ==== Public Events ==== | ||
| - | ^ Name ^ Event Arguments ^ DeclaringType ^ Summary ^ | ||
| - | |||
| - | ===== Public Constructors ===== | ||
| - | ==== IconValueItem() ==== | ||
| - | This is the constructor for the class. | ||
| - | === Overloads === | ||
| - | This is the default constructor for the class. | ||
| - | === Remarks === | ||
| - | If you use the constructor, then you should set all the properties manually. | ||
| - | === Parameters === | ||
| - | ^ Name ^ Type ^ Description ^ | ||
| - | |||
| - | [[#Public Constructors|Go Back]] | ||
| - | ==== IconValueItem(String, String, TextStyle) ==== | ||
| - | This is the constructor for the class. | ||
| - | === Overloads === | ||
| - | 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. | ||
| - | === Remarks === | ||
| - | 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. | ||
| - | === Parameters === | ||
| - | ^ 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 | [[ThinkGeo.MapSuite.Core.TextStyle|TextStyle]]<!-- ThinkGeo.MapSuite.Core.TextStyle --> | This parameter is the TextStyle of how you want the text drawn. | | ||
| - | |||
| - | [[#Public Constructors|Go Back]] | ||
| - | ==== IconValueItem(String, GeoImage, TextStyle) ==== | ||
| - | This is the constructor for the class. | ||
| - | === Overloads === | ||
| - | This constructor allows you to set the field value, the GeoImage, and the text style you want to use to render it. | ||
| - | === Remarks === | ||
| - | 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. | ||
| - | === Parameters === | ||
| - | ^ Name ^ Type ^ Description ^ | ||
| - | | fieldValue | String<!-- System.String --> | This parameter is the value you want to match. | | ||
| - | | iconImage | [[ThinkGeo.MapSuite.Core.GeoImage|GeoImage]]<!-- ThinkGeo.MapSuite.Core.GeoImage --> | This parameter is the GeoImage of the image you want to use. | | ||
| - | | textStyle | [[ThinkGeo.MapSuite.Core.TextStyle|TextStyle]]<!-- ThinkGeo.MapSuite.Core.TextStyle --> | This parameter is the TextStyle of how you want the text drawn. | | ||
| - | |||
| - | [[#Public Constructors|Go Back]] | ||
| - | ===== Protected Constructors ===== | ||
| - | ===== Public Methods ===== | ||
| - | ==== Equals(Object) ==== | ||
| - | === Return Value === | ||
| - | ^ Return Type ^ Description ^ | ||
| - | | Boolean<!-- System.Boolean --> | | | ||
| - | |||
| - | === Parameters === | ||
| - | ^ Name ^ Type ^ Description ^ | ||
| - | | obj | Object<!-- System.Object --> | | | ||
| - | |||
| - | <!-- System.Object --> | ||
| - | [[#Public Methods|Go Back]] | ||
| - | ==== GetHashCode() ==== | ||
| - | === Return Value === | ||
| - | ^ Return Type ^ Description ^ | ||
| - | | Int32<!-- System.Int32 --> | | | ||
| - | |||
| - | === Parameters === | ||
| - | ^ Name ^ Type ^ Description ^ | ||
| - | |||
| - | <!-- System.Object --> | ||
| - | [[#Public Methods|Go Back]] | ||
| - | ==== GetIconImage() ==== | ||
| - | This method gets the icon we will draw as a GeoImage. | ||
| - | === Remarks === | ||
| - | 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 Value === | ||
| - | ^ Return Type ^ Description ^ | ||
| - | | [[ThinkGeo.MapSuite.Core.GeoImage|GeoImage]]<!-- ThinkGeo.MapSuite.Core.GeoImage --> | This method gets the icon we will draw as a GeoImage. | | ||
| - | |||
| - | === Parameters === | ||
| - | ^ Name ^ Type ^ Description ^ | ||
| - | |||
| - | <!-- ThinkGeo.MapSuite.Core.IconValueItem --> | ||
| - | [[#Public Methods|Go Back]] | ||
| - | ==== GetType() ==== | ||
| - | === Return Value === | ||
| - | ^ Return Type ^ Description ^ | ||
| - | | Type<!-- System.Type --> | | | ||
| - | |||
| - | === Parameters === | ||
| - | ^ Name ^ Type ^ Description ^ | ||
| - | |||
| - | <!-- System.Object --> | ||
| - | [[#Public Methods|Go Back]] | ||
| - | ==== ToString() ==== | ||
| - | === Return Value === | ||
| - | ^ Return Type ^ Description ^ | ||
| - | | String<!-- System.String --> | | | ||
| - | |||
| - | === Parameters === | ||
| - | ^ Name ^ Type ^ Description ^ | ||
| - | |||
| - | <!-- System.Object --> | ||
| - | [[#Public Methods|Go Back]] | ||
| - | ===== Protected Methods ===== | ||
| - | ==== Finalize() ==== | ||
| - | === Return Value === | ||
| - | ^ Return Type ^ Description ^ | ||
| - | | Void<!-- System.Void --> | | | ||
| - | |||
| - | === Parameters === | ||
| - | ^ Name ^ Type ^ Description ^ | ||
| - | |||
| - | <!-- System.Object --> | ||
| - | [[#Protected Methods|Go Back]] | ||
| - | ==== MemberwiseClone() ==== | ||
| - | === Return Value === | ||
| - | ^ Return Type ^ Description ^ | ||
| - | | Object<!-- System.Object --> | | | ||
| - | |||
| - | === Parameters === | ||
| - | ^ Name ^ Type ^ Description ^ | ||
| - | |||
| - | <!-- System.Object --> | ||
| - | [[#Protected Methods|Go Back]] | ||
| - | ===== Public Properties ===== | ||
| - | ==== FieldValue ==== | ||
| - | This property gets and sets the field value that has to match in the IconValueStyle. | ||
| - | === Remarks === | ||
| - | For an explanation on how the IconValueStyle works, see the IconValueStyle Class remarks. | ||
| - | === Return Value === | ||
| - | ^ Return Type ^ | ||
| - | | String<!-- System.String --> | | ||
| - | |||
| - | <!-- ThinkGeo.MapSuite.Core.IconValueItem --> | ||
| - | [[#Public Properties|Go Back]] | ||
| - | ==== IconFilePathName ==== | ||
| - | This property gets and sets the path and filename of the icon that will be drawn. | ||
| - | === Remarks === | ||
| - | If you need to use a GeoImage, you can set the GeoImage in the constructor or use the property. | ||
| - | === Return Value === | ||
| - | ^ Return Type ^ | ||
| - | | String<!-- System.String --> | | ||
| - | |||
| - | <!-- ThinkGeo.MapSuite.Core.IconValueItem --> | ||
| - | [[#Public Properties|Go Back]] | ||
| - | ==== TextStyle ==== | ||
| - | This property gets and sets the style that will be used to draw the text in the icon. | ||
| - | === Return Value === | ||
| - | ^ Return Type ^ | ||
| - | | [[ThinkGeo.MapSuite.Core.TextStyle|TextStyle]]<!-- ThinkGeo.MapSuite.Core.TextStyle --> | | ||
| - | |||
| - | <!-- ThinkGeo.MapSuite.Core.IconValueItem --> | ||
| - | [[#Public Properties|Go Back]] | ||
| - | ==== TextValueLengthMax ==== | ||
| - | This property gets and sets the maximum string length for this item to match. | ||
| - | === Remarks === | ||
| - | 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 Value === | ||
| - | ^ Return Type ^ | ||
| - | | Int32<!-- System.Int32 --> | | ||
| - | |||
| - | <!-- ThinkGeo.MapSuite.Core.IconValueItem --> | ||
| - | [[#Public Properties|Go Back]] | ||
| - | ==== TextValueLengthMin ==== | ||
| - | This property gets and sets the minimum string length for this item to match. | ||
| - | === Remarks === | ||
| - | 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 Value === | ||
| - | ^ Return Type ^ | ||
| - | | Int32<!-- System.Int32 --> | | ||
| - | |||
| - | <!-- ThinkGeo.MapSuite.Core.IconValueItem --> | ||
| - | [[#Public Properties|Go Back]] | ||
| - | ===== Protected Properties ===== | ||
| - | ===== Public Events ===== | ||
| - | __NOTOC__ | ||
| - | [[Category:MapSuiteCore]] | ||
| - | [[Category:ThinkGeo.MapSuite.Core]] | ||
| - | [[Category:UpdateDocumentation]] | ||
8501 Wade Blvd Ste 550
Frisco, TX 75034
United States
sales@thinkgeo.com
1-785-727-4133
Online Store
- Desktop
WPF
WinForms
- Web
WebAPI HTML5/JavaScript
ASP.NET MVC
WebForms with AJAX
- Mobile
iOS
Android™
World Street
World Imagery
Routing
Geocoding
Reverse Geocoding
Elevation
Quick Start Guides
Documentation
Blogs
Discussion Forums
Customer Portal
About Us
News & Announcemets
Privacy Policy
Copyright 2003-2017 ThinkGeo LLC.
All rights reserved.