Picture Class

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

Namespace:  DocumentFormat.OpenXml.Presentation
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

public class Picture : OpenXmlCompositeElement

The following table lists the possible child types:

  • NonVisualPictureProperties <p:nvPicPr>

  • BlipFill <p:blipFill>

  • ShapeProperties <p:spPr>

  • ShapeStyle <p:style>

  • ExtensionListWithModification <p:extLst>

[ISO/IEC 29500-1 1st Edition] pic (Picture)

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

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

    <p:cNvPr id="4" name="lake.JPG" descr="Picture of a Lake" />
      <a:picLocks noChangeAspect="1"/>

end example]

Parent Elements

control (§; grpSp (§; oleObj (§; spTree (§

Child Elements


blipFill (Picture Fill)


extLst (Extension List with Modification Flag)


nvPicPr (Non-Visual Properties for a Picture)


spPr (Shape Properties)


style (Shape Style)


[Note: The W3C XML Schema definition of this element’s content model (CT_Picture) is located in §A.3. 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.

Community Additions