Class FeatureSubtype
Describes a subset of features in an ArcGISFeatureTable that share the same integer attribute value.
Inheritance
Namespace: Esri.ArcGISRuntime.Data
Assembly: Esri.ArcGISRuntime.dll
Syntax
public sealed class FeatureSubtype
Remarks
Feature subtypes categorize features in a dataset based on the value of an integer attribute. A subtype can define different default values or domains for fields. For example, city streets in a feature table could be categorized into three feature subtypes: local streets, collector streets, and arterial streets. Feature subtypes can also be used with utility networks to represent asset groups.
If FeatureSubtypes contains one or more FeatureSubtype, you can use SubtypeFeatureLayer(ArcGISFeatureTable) to create a SubtypeFeatureLayer. You can then obtain a sublayer for each of the feature sub types from SubtypeSublayers. Each SubtypeSublayer allows you to configure different layer properties, such as opacity, renderer, and scale, for each FeatureSubtype. This is particularly useful for data, such as utility networks, in which many different network elements are grouped into a single subtype feature layer.
If you build an editing application, you can use CreateFeature(FeatureSubtype) to create a new feature with the specified feature subtype. The PrototypeAttributes will ensure that a default set of attribute values are applied to the ArcGISFeature and the Domains are utilized.
Properties
Name | Description |
---|---|
Code | Gets the feature subtype's code. |
Domains | Gets the associated Domains with this feature subtype. |
FieldOverrides | Gets the fields defined for this feature subtype. |
Name | Gets the name of the feature subtype. |
PrototypeAttributes | Gets the prototype for creating a Feature with this subtype. |
Applies to
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.3 - 200.6 |
Xamarin.Android | 100.3 - 100.15 |
Xamarin.iOS | 100.3 - 100.15 |
UWP | 100.3 - 200.6 |