Chart interface

Represents a chart in a document.

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

'Declaration
<GuidAttribute("6FFA84BB-A350-4442-BB53-A43653459A84")> _
PublicInterfaceChart
'Usage
DiminstanceAsChart

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

  • Chart property

  • AddChart method

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.

Show:
© 2014 Microsoft