Picture class

Office 2013 and later

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

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

No code example is currently available or this language may not be supported.

[ISO/IEC 29500-1 1st Edition]

pic (Picture)

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

[Example: Consider the following SpreadsheetDrawingML 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.

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

end example]

Parent Elements

absoluteAnchor (§20.5.2.1); grpSp (§20.5.2.17); oneCellAnchor (§20.5.2.24); twoCellAnchor (§20.5.2.33)

Child Elements

Subclause

blipFill (Picture Fill)

§20.5.2.2

nvPicPr (Non-Visual Properties for a Picture)

§20.5.2.22

spPr (Shape Properties)

§20.5.2.30

style (Shape Style)

§20.5.2.31

Attributes

Description

fPublished (Publish to Server Flag)

This attribute indicates whether the shape shall be published with the worksheet when sent to the server.

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 object. [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.4.5. end note]

© ISO/IEC29500: 2008.

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