GraphicFrame Class

Graphic Frame.When the object is serialized out as xml, its qualified name is cdr:graphicFrame.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Drawing.ChartDrawing.GraphicFrame

Namespace:  DocumentFormat.OpenXml.Drawing.ChartDrawing
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(Transform))> _
<ChildElementInfoAttribute(GetType(Graphic))> _
<ChildElementInfoAttribute(GetType(NonVisualGraphicFrameProperties))> _
Public Class GraphicFrame _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As GraphicFrame
[ChildElementInfoAttribute(typeof(Transform))]
[ChildElementInfoAttribute(typeof(Graphic))]
[ChildElementInfoAttribute(typeof(NonVisualGraphicFrameProperties))]
public class GraphicFrame : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • NonVisualGraphicFrameProperties <cdr:nvGraphicFramePr>

  • Transform <cdr:xfrm>

  • DocumentFormat.OpenXml.Drawing.Graphic <a:graphic>

[ISO/IEC 29500-1 1st Edition]

21.3.2.12 graphicFrame (Graphic Frame)

This element specifies the existence of a graphics frame. This frame contains a graphic that was generated by an external source and needs a container in which to be displayed on the slide surface.

Parent Elements

absSizeAnchor (§21.3.2.1); grpSp (§21.3.2.13); relSizeAnchor (§21.3.2.21)

Child Elements

Subclause

graphic (Graphic Object)

§20.1.2.2.16

nvGraphicFramePr (Non-Visual Graphic Frame Properties)

§21.3.2.16

xfrm (Graphic Frame Transform)

§21.3.2.28

Attributes

Description

fPublished (Publish To Server)

Specifies whether the shape shall be published with the worksheet when sent to the spreadsheet server. This is for use when interfacing with a document server.

[Example: Consider the following shape that is not published with the worksheet when it is published back on the spreadsheet server.

<cdr:relSizeAnchor>

  <cdr:sp fPublished="0">

  </cdr:sp>

</cdr:relSizeAnchor>

end example]

The possible values for this attribute are defined by the W3C XML Schema boolean datatype.

macro (Reference to Custom Function)

This element specifies the custom function associated with the chart. [Example: A macro script, add-in function, and so on. end example]

The format of this string shall be application-defined, and should be ignored if not understood.

[Example:

<… macro="DoWork()" >

end example]

The possible values for this attribute are defined by the W3C XML Schema string datatype.

[Note: The W3C XML Schema definition of this element’s content model (CT_GraphicFrame) is located in §A.5.2. end note]

© ISO/IEC29500: 2008.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

GraphicFrame Members

DocumentFormat.OpenXml.Drawing.ChartDrawing Namespace