GraphicFrame
Container shape for table, chart, smart art, and media objects. Corresponds to ap:graphicFrame element in the shape tree.
Properties
The |Chart| object containing the chart in this graphic frame.Raises
ValueError if this graphic frame does not contain a chart.The |ChartPart| object containing the chart in this graphic frame.Raises
ValueError if this graphic frame does not contain a chart.True if this graphic frame contains a chart object, False otherwise.When True, the chart object can be accessed using the .chart property.True if this graphic frame contains a table object, False otherwise.When True, the table object can be accessed using the .table property._OleFormat object for this graphic-frame shape.Raises
ValueError on a GraphicFrame instance that does not contain an OLE object.A shape that contains an OLE object will have .shape_type of either EMBEDDED_OLE_OBJECT or LINKED_OLE_OBJECT.Unconditionally raises
NotImplementedError.Access to the shadow effect for graphic-frame objects is content-specific (i.e. different for charts, tables, etc.) and has not yet been implemented.Optional member of
MSO_SHAPE_TYPE identifying the type of this shape.Possible values are:MSO_SHAPE_TYPE.CHARTMSO_SHAPE_TYPE.TABLEMSO_SHAPE_TYPE.EMBEDDED_OLE_OBJECTMSO_SHAPE_TYPE.LINKED_OLE_OBJECT
None when none of these four types apply, for example when the shape contains SmartArt.The |Table| object contained in this graphic frame.Raises
ValueError if this graphic frame does not contain a table.Example: Working with Tables
Example: Working with Charts
_OleFormat
Provides attributes on an embedded OLE object.Properties
Optional bytes of OLE object, suitable for loading or saving as a file.This value is
None if the embedded object does not represent a “file”.str “progId” attribute of this embedded OLE object.The progId is a str like “Excel.Sheet.12” that identifies the “file-type” of the embedded object, or perhaps more precisely, the application (aka. “server” in OLE parlance) to be used to open this object.
True when OLE object should appear as an icon (rather than preview).