CimLegend.Font (property)

Gets and sets the legend's font.
Syntax: Set IFontDisp* = object.Font
object.Font = IFontDisp*
Description: CimLegend.Font is the font used when drawing the legend's text. The property returns the ambient font of the control container (e.g. CimView or VB) when using ambient font. If you change the property while using the ambient font, the property UseAmbientFont is set to False.

The value of this property defaults to the ambient font.


The following CimView script excerpt changes the series legend font's italic state:
cimOleObj.Legends.Series.Font.Italic = True
See Also: IFontDisp