![]() ![]() |
ESRI.ArcGIS.ADF.IMS | |
LabelField Property | |
See Also Send Feedback |
ESRI.ArcGIS.ADF.IMS.Display.Renderer Namespace > LabelRenderer Class : LabelField Property |
Visual Basic (Declaration) | |
---|---|
Public Property LabelField As String |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As LabelRenderer Dim value As String instance.LabelField = value value = instance.LabelField |
C# | |
---|---|
public string LabelField {get; set;} |
For an example of using this property, see the SimpleLabelRenderer overview.
The label field can be in the layer table or in a joined table. Performance is generally better if the field name is all upper case.
- For shapefiles with no joined tables, the field can be referenced using the short format: LabelField="AREA".
- For shapefiles with joined tables, the name of the joined table must be included along with the field names: LabelField="JOINEDTABLE.CITY".
- For ArcSDE layers without joined tables, the short format can be used: LabelField="CITY". The fully qualified name can also be used: LabelField="ARCSDENAME.TABLE.CITY".
- For ArcSDE layers with joined tables, the fully qualified format must be used: LabelField="ARCSDENAME.TABLE.CITY".
Multiple Fields in Labels
Labels can include data concatenated from two or more fields. Each field name is separated by a space.
- For example, using a shapefile with no joined tables: LabelField="CITY STATE_NAME".
This property is required for all label renderers. If not set, a runtime error will occur with the message: "AXLParser: 'label' not found in VALUEMAPLABELRENDERER".
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family