This document is archived and information here might be outdated. Recommended version. |
Creates the legend. Call after all properties have been set.
[Visual Basic .NET]
Public Sub CreateLegendSymbols ( _
)
[C#] public void CreateLegendSymbols ( );
[C++]
HRESULT CreateLegendSymbols(
void
);
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.