This document is archived and information here might be outdated. Recommended version. |
Optional. If non-null, then layer specifies class formatting information.
[Visual Basic .NET] Public Property Format As ILegendClassFormat
[C#] public ILegendClassFormat Format {get; set;}
[C++]
HRESULT get_Format(
ILegendClassFormat** Format
);
[C++]
HRESULT put_Format(
ILegendClassFormat* Format
);
[C++] Parameters Format [out, retval]
Format is a parameter of type ILegendClassFormat** Format [in]
Format is a parameter of type ILegendClassFormat*
A layer or renderer can provide legend class formatting information via this property, which makes it possible to store legend formatting information with layers in metadata-like fashion. However this is not normally done. Rather, legend formatting information usually comes from the legend. ILegendItem.LegendClassFormat is used and some patch settings can come from ILegend.LegendFormat .
So, when a legend is created, the code follows this logic: