Partager via


Chart Interface

Represents a chart in a document.

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

Syntax

'Declaration
<GuidAttribute("6FFA84BB-A350-4442-BB53-A43653459A84")> _
Public Interface Chart
'Usage
Dim instance As Chart
[GuidAttribute("6FFA84BB-A350-4442-BB53-A43653459A84")]
public interface Chart

Remarks

The following properties and methods for returning a Chart object are described in the example section:

  • Chart property

  • AddChart method

Examples

The InlineShapes collection contains an object for each inline shape, including charts, in a document. Use InlineShapes(Index), where Index is the index number of an inline shape, to return a single InlineShape object. Use the HasChart property to determine if the InlineShape object represents a chart. If the HasChart property is set to True, use the Chart property to return a Chart object.

You can also use the Type property to determine if the InlineShape object represents a chart. If the Type property is set to WdInlineShapeChart, the inline shape represents a chart.

See Also

Reference

Chart Members

Microsoft.Office.Interop.Word Namespace