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
Note: The page was created before Map Suite 10. Map Suite 10.0 organized many classes into new namespaces and assemblies as well as had a few minor breaks in compatibility. The majority of previously built code should work without modification assuming the new namespaces are added. For guidance on upgrading your existing code, please check out MapSuite 10 Upgrade Guide.
<!– Class –> This class represents a single Regex Match statement and styles to draw.
The RegexItem represents a single matching criteria for a RegexStyle.
RegexStyle:
The RegexStyle allows you to use complex regular expression matching to determine how your features are drawn. A regular expression is a matching syntax that allows you to match a string based on very complex criteria. For example, let's say you have a layer that has a column in the data that contains school names. Most school names include the type of school they are. For instance, you may have “Lincoln Middle School” or “Bush High School.” There are variations to these names though, containing words such as “Elementary” or “Prep.” With a regular expression, you can create matching criteria that will allow you to match on many variations of the names. It is especially useful for fuzzy matches where your data is not clearly categorized. Another classic example is for matching or validating email addresses, where matching rules can become complex.
In the RegexStyle, you specify the matching criteria string and also the style you want to use to draw the feature if the criteria matches. It is a simple yet powerful style for dealing with complex rule sets and imprecise data.
*System.Object **ThinkGeo.MapSuite.WindowsPhoneCore.RegexItem
Name | Parameters | DeclaringType | Summary |
---|---|---|---|
RegexItem | This is a constructor for the class. | ||
RegexItem | String, AreaStyle | This is a constructor for the class. | |
RegexItem | String, LineStyle | This is a constructor for the class. | |
RegexItem | String, PointStyle | This is a constructor for the class. | |
RegexItem | String, TextStyle | This is a constructor for the class. | |
RegexItem | String, Collection<Style> | This is a constructor for the class. |
Name | Parameters | DeclaringType | Summary |
---|
Name | Parameters | DeclaringType | Summary |
---|---|---|---|
Equals | Object | Object | |
GetHashCode | Object | ||
GetType | Object | ||
ToString | Object |
Name | Parameters | DeclaringType | Summary |
---|---|---|---|
Finalize | Object | ||
MemberwiseClone | Object |
Name | Return | DeclaringType | Summary |
---|---|---|---|
CustomStyles | Collection<Style> | This property gets the collection of custom styles. | |
DefaultAreaStyle | AreaStyle | This property gets and sets the default AreaStyle. You should use this style if your features are area-based. | |
DefaultLineStyle | LineStyle | This property gets and sets the default LineStyle. You should use this style if your features are line-based. | |
DefaultPointStyle | PointStyle | This property gets and sets the default PointStyle. You should use this style if your features are point-based. | |
DefaultTextStyle | TextStyle | This property gets and sets the default TextStyle. You should use this style if your features are text-based (such as labels). | |
RegularExpression | String | This property gets and sets the regular expression text used for matching. |
Name | Return | DeclaringType | Summary |
---|
Name | Event Arguments | DeclaringType | Summary |
---|
This is a constructor for the class.
If you use this constructor, you should set the necessary properties manually.
If you use this constructor, you should set the necessary properties manually.
Name | Type | Description |
---|
This is a constructor for the class.
This constructor allows you to specify an AreaStyle you want to use. You should use this if the features you are drawing are area-based. Alternatively, you can set the properties of the DefaultAreaStyle directly on the class.
It is recommended that you do not use this constructor unless it is absolutely necessary. Instead, you can set the properties directly on the DefaultAreaStyle.
Name | Type | Description |
---|---|---|
regularExpression | String<!– System.String –> | This parameter is the regular expression statement you would like to match. |
areaStyle | AreaStyle<!– ThinkGeo.MapSuite.WindowsPhoneCore.AreaStyle –> | This parameter is the style you want to draw with if the regular expression matches. |
This is a constructor for the class.
This constructor allows you to specify a LineStyle you want to use. You should use this if the features you are drawing are line-based. Alternatively, you can set the properties of the DefaultLineStyle directly on the class.
It is recommended that you do not use this constructor unless it is absolutely necessary. Instead, you can set the properties directly on the DefaultLineStyle.
Name | Type | Description |
---|---|---|
regularExpression | String<!– System.String –> | This parameter is the regular expression statement you would like to match. |
lineStyle | LineStyle<!– ThinkGeo.MapSuite.WindowsPhoneCore.LineStyle –> | This parameter is the style you want to draw with if the regular expression matches. |
This is a constructor for the class.
This constructor allows you to specify a PointStyle you want to use. You should use this if the features you are drawing are point-based. Alternatively, you can set the properties of the DefaultPointStyle directly on the class.
It is recommended that you do not use this constructor unless it is absolutely necessary. Instead, you can set the properties directly on the DefaultPointStyle.
Name | Type | Description |
---|---|---|
regularExpression | String<!– System.String –> | This parameter is the regular expression statement you would like to match. |
pointStyle | PointStyle<!– ThinkGeo.MapSuite.WindowsPhoneCore.PointStyle –> | This parameter is the style you want to draw with if the regular expression matches. |
This is a constructor for the class.
This constructor allows you to specify a TextStyle you want to use. You should use this if the features you are drawing are text-based. Alternatively, you can set the properties of the DefaultTextStyle directly on the class.
It is recommended that you do not use this constructor unless it is absolutely necessary. Instead, you can set the properties directly on the DefaultTextStyle.
Name | Type | Description |
---|---|---|
regularExpression | String<!– System.String –> | This parameter is the regular expression statement you would like to match. |
textStyle | TextStyle<!– ThinkGeo.MapSuite.WindowsPhoneCore.TextStyle –> | This parameter is the style you want to draw with if the regular expression matches. |
This is a constructor for the class.
This constructor allows you to specify the TextStyles you want to use. You should use this if the features you are drawing are text-based. Alternatively, you can set the properties of the CustomStyles directly on the class.
It is recommended that you do not use this constructor unless it is absolutely necessary. Instead, you can set the properties directly on the CustomStyles.
Name | Type | Description |
---|---|---|
regularExpression | String<!– System.String –> | This parameter is the regular expression statement you would like to match. |
styles | Collection<Style><!– System.Collections.ObjectModel.Collection{ThinkGeo.MapSuite.WindowsPhoneCore.Style} –> | This parameter represents the styles you want to draw with if the regular expression matches. |
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
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 the collection of custom styles.
The custom styles allow you to use styles other than the default style properties of the class. In this way, you can use a DotDensityStyle or any other style in the API.
Return Type |
---|
Collection<Style><!– System.Collections.ObjectModel.Collection{ThinkGeo.MapSuite.WindowsPhoneCore.Style} –> |
<!– ThinkGeo.MapSuite.WindowsPhoneCore.RegexItem –> Go Back
This property gets and sets the default AreaStyle. You should use this style if your features are area-based.
The default style allows you to directly set properties on the styles without having to create a new style each time. You can start simply by setting properties like color, etc. This makes modifying styles very easy.
Return Type |
---|
AreaStyle<!– ThinkGeo.MapSuite.WindowsPhoneCore.AreaStyle –> |
<!– ThinkGeo.MapSuite.WindowsPhoneCore.RegexItem –> Go Back
This property gets and sets the default LineStyle. You should use this style if your features are line-based.
The default style allows you to directly set properties on the styles without having to create a new style each time. You can start simply by setting properties like color, etc. This makes modifying styles very easy.
Return Type |
---|
LineStyle<!– ThinkGeo.MapSuite.WindowsPhoneCore.LineStyle –> |
<!– ThinkGeo.MapSuite.WindowsPhoneCore.RegexItem –> Go Back
This property gets and sets the default PointStyle. You should use this style if your features are point-based.
The default style allows you to directly set properties on the styles without having to create a new style each time. You can start simply by setting properties like color, etc. This makes modifying styles very easy.
Return Type |
---|
PointStyle<!– ThinkGeo.MapSuite.WindowsPhoneCore.PointStyle –> |
<!– ThinkGeo.MapSuite.WindowsPhoneCore.RegexItem –> Go Back
This property gets and sets the default TextStyle. You should use this style if your features are text-based (such as labels).
The default style allows you to directly set properties on the styles without having to create a new style each time. You can start simply by setting properties like color, etc. This makes modifying styles very easy.
Return Type |
---|
TextStyle<!– ThinkGeo.MapSuite.WindowsPhoneCore.TextStyle –> |
<!– ThinkGeo.MapSuite.WindowsPhoneCore.RegexItem –> Go Back
This property gets and sets the regular expression text used for matching.
This should be a valid regular expression string. Formatting regular expression strings is outside the scope of this documentation; however, there are many useful resources on the web for learning about regular expressions.
Return Type |
---|
String<!– System.String –> |
<!– ThinkGeo.MapSuite.WindowsPhoneCore.RegexItem –> Go Back