Legend Interface

Represents the legend in a chart. Each chart can have only one legend.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
<GuidAttribute("B3A1E8C6-E1CE-4A46-8D12-E017157B03D7")> _
Public Interface Legend
'Usage
Dim instance As Legend
[GuidAttribute("B3A1E8C6-E1CE-4A46-8D12-E017157B03D7")]
public interface Legend

Remarks

The Legend object contains one or more LegendEntry objects; each LegendEntry object contains a LegendKey object.

The chart legend isn’t visible unless the HasLegend property is True. If this property is False, properties and methods of the Legend object will fail.

Examples

Use the Legend property to return the Legend object. The following example sets the font style for the legend of the first chart in the active document to bold.

See Also

Reference

Legend Members

Microsoft.Office.Interop.Word Namespace