ArcObjects Library Reference (Carto)  

IProportionalSymbolRenderer.CreateLegendSymbols Method

Creates the legend. Call after all properties have been set.

[Visual Basic .NET]
Public Sub CreateLegendSymbols ( _
)
[C#]
public void CreateLegendSymbols (
);
[C++]
HRESULT CreateLegendSymbols(
void
);

Product Availability

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

Remarks

The ProportionalSymbolRenderer does not use a fixed set of symbols, and so the legend information for the renderer must be refreshed by calling this method after changes are made to renderer properties.

If ValueUnit = esriUnknownUnits then a set number of symbols will be shown in the table of contents, and legend if applicable. This set will be determined based on several properties: MinSymbol/MinDataValue, MaxDataValue which is the largest possible value in the data, and LegendSymbolCount which is the number of symbols desired in the renderer's legend entry. Be sure to set these properties before calling CreateLegendSymbol.

If ValueUnit is some known data unit, then only the MinSymbol is shown in the legend.

See Also

IProportionalSymbolRenderer Interface