This document is archived and information here might be outdated.  Recommended version.


IRendererFields.FieldAlias Property (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Carto)  

IRendererFields.FieldAlias Property

Field alias at the specified index.

[Visual Basic .NET]
Public Function get_FieldAlias ( _
    ByVal Index As Integer _
) As String
[Visual Basic .NET]
Public Sub set_FieldAlias ( _
    ByVal Index As Integer, _
    ByVal Name As String _
)
[C#]
public string get_FieldAlias (
    int Index
);
[C#]
public void set_FieldAlias (
    int Index,
    string Name
);
[C++]
HRESULT get_FieldAlias(
  long Index,
  System.String* Name
);
[C++]
HRESULT put_FieldAlias(
  long Index,
  BSTR Name
);
[C++]

Parameters Index [in]
Index is a parameter of type long Name [out, retval]
Name is a parameter of type BSTR* Index [in]
Index is a parameter of type long Name [in]
Name is a parameter of type BSTR

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

Renderers such as the DotDensityRenderer and ChartRenderer show field name information in their legend information. This tells you which pie slice, or dot symbol for example, corresponds to the attribute values from a particular field. To change the text string that appears in a renderer's legend entry, you can use this property, or you can use IChartRenderer::Label. They both do the same thing.

See Also

IRendererFields Interface