Partager via


InlineShape.HasChart Property

True if the specified shape is a chart. Read-only.

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

Syntax

'Declaration
ReadOnly Property HasChart As MsoTriState
    Get
'Usage
Dim instance As InlineShape
Dim value As MsoTriState

value = instance.HasChart
MsoTriState HasChart { get; }

Property Value

Type: MsoTriState
MsoTriState

Remarks

This property always returns False for OLE charts. For OLE charts, use InlineShape.OLEFormat.ProgID and check for the following possible values: "Excel.Chart.8", "MSGraph.Chart.8", "Excel.Sheet.8", "Excel.Chart.5", "MSGraph.Chart.5", or "Excel.Sheet.5".

See Also

Reference

InlineShape Interface

InlineShape Members

Microsoft.Office.Interop.Word Namespace