![]() ![]() |
ESRI.ArcGIS.ADF.Web.UI.WebControls | |
Fields Property | |
See Also Example Send Feedback |
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace > MapTips Class : Fields Property |
Visual Basic (Declaration) | |
---|---|
<BrowsableAttribute(False)> <ObsoleteAttribute("Not valid for use with LayerFormat property")> <NotifyParentPropertyAttribute(True)> <PersistenceModeAttribute(PersistenceMode.Attribute)> <ResDescriptionAttribute("")> Public ReadOnly Property Fields As ESRI.ArcGIS.ADF.StringCollection |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As MapTips Dim value As ESRI.ArcGIS.ADF.StringCollection value = instance.Fields |
C# | |
---|---|
[BrowsableAttribute(false)] [ObsoleteAttribute("Not valid for use with LayerFormat property")] [NotifyParentPropertyAttribute(true)] [PersistenceModeAttribute(PersistenceMode.Attribute)] [ResDescriptionAttribute("")] public ESRI.ArcGIS.ADF.StringCollection Fields {get;} |
Property Value
Collection of strings for fields displayed. The following example displays the names of fields used in the maptips. The code assumes a label control called Label1 and a Maptips control with an ID of Maptips1 are present on the page.
Visual Basic | ![]() |
---|---|
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Label1.Text = "Maptips fields: " For Each s As String In MapTips1.Fields Label1.Text += s + " " Next End Sub |
C# | ![]() |
---|---|
protected void Page_Load(object sender, System.EventArgs e) { Label1.Text = "Maptips fields: "; foreach (string s in MapTips1.Fields) { Label1.Text += s + " "; } } |
This method retrieves a string collection of the fields in the maptips layer that are used in the header (HeaderFormatString) or body (BodyFormatString) of the maptip.
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