Picture Class

Defines the Picture Class.When the object is serialized out as xml, its qualified name is cdr:pic.

Inheritance Hierarchy

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

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

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(Style))> _
<ChildElementInfoAttribute(GetType(BlipFill))> _
<ChildElementInfoAttribute(GetType(NonVisualPictureProperties))> _
<ChildElementInfoAttribute(GetType(ShapeProperties))> _
Public Class Picture _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As Picture
[ChildElementInfoAttribute(typeof(Style))]
[ChildElementInfoAttribute(typeof(BlipFill))]
[ChildElementInfoAttribute(typeof(NonVisualPictureProperties))]
[ChildElementInfoAttribute(typeof(ShapeProperties))]
public class Picture : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • NonVisualPictureProperties <cdr:nvPicPr>

  • BlipFill <cdr:blipFill>

  • ShapeProperties <cdr:spPr>

  • Style <cdr:style>

[ISO/IEC 29500-1 1st Edition]

21.3.2.20 pic (Picture)

This element specifies the existence of a picture object within the document.

[Example: Consider the following ChartDrawingML that specifies the existence of a picture within a document. This picture can have non-visual properties, a picture fill as well as shape properties attached to it.

<cdr:pic>
  <cdr:nvPicPr>
    <cdr:cNvPr id="4" name="lake.JPG" descr="Picture of a Lake" />
    <cdr:cNvPicPr>
      <a:picLocks noChangeAspect="1"/>
    </cdr:cNvPicPr>
    <cdr:nvPr/>
  </cdr:nvPicPr>
  <cdr:blipFill>
  …
  </cdr:blipFill>
  <cdr:spPr>
  …
  </cdr:spPr>
</cdr:pic>

end example]

Parent Elements

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

Child Elements

Subclause

blipFill (Picture Fill)

§21.3.2.2

nvPicPr (Non-Visual Picture Properties)

§21.3.2.18

spPr (Shape Properties)

§21.3.2.23

style (Shape Style)

§21.3.2.24

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_Picture) 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

Picture Members

DocumentFormat.OpenXml.Drawing.ChartDrawing Namespace