Picture Class
Picture.When the object is serialized out as xml, its qualified name is pic:pic.
Inheritance Hierarchy
System.Object
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlCompositeElement
DocumentFormat.OpenXml.Drawing.Pictures.Picture
Namespace: DocumentFormat.OpenXml.Drawing.Pictures
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Declaration
<ChildElementInfoAttribute(GetType(BlipFill))> _
<ChildElementInfoAttribute(GetType(OfficeArtExtensionList), FileFormatVersions.Office2010)> _
<ChildElementInfoAttribute(GetType(ShapeStyle), FileFormatVersions.Office2010)> _
<ChildElementInfoAttribute(GetType(NonVisualPictureProperties))> _
<ChildElementInfoAttribute(GetType(ShapeProperties))> _
Public Class Picture _
Inherits OpenXmlCompositeElement
'Usage
Dim instance As Picture
[ChildElementInfoAttribute(typeof(BlipFill))]
[ChildElementInfoAttribute(typeof(OfficeArtExtensionList), FileFormatVersions.Office2010)]
[ChildElementInfoAttribute(typeof(ShapeStyle), FileFormatVersions.Office2010)]
[ChildElementInfoAttribute(typeof(NonVisualPictureProperties))]
[ChildElementInfoAttribute(typeof(ShapeProperties))]
public class Picture : OpenXmlCompositeElement
Remarks
The following table lists the possible child types:
NonVisualPictureProperties <pic:nvPicPr>
BlipFill <pic:blipFill>
ShapeProperties <pic:spPr>
DocumentFormat.OpenXml.Office2010.Drawing.Pictures.ShapeStyle <pic14:style>
DocumentFormat.OpenXml.Office2010.Drawing.Pictures.OfficeArtExtensionList <pic14:extLst>
[ISO/IEC 29500-1 1st Edition]
20.2.2.5 pic (Picture)
This element specifies the existence of a picture object within the document.
[Example: Consider the following DrawingML 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.
<pic:pic> <pic:nvPicPr> <pic:cNvPr id="4" name="lake.JPG" descr="Picture of a Lake" /> <pic:cNvPicPr> <a:picLocks noChangeAspect="1"/> </pic:cNvPicPr> <pic:nvPr/> </pic:nvPicPr> <pic:blipFill> … </pic:blipFill> <pic:spPr> … </pic:spPr> </pic:pic>
end example]
Child Elements |
Subclause |
---|---|
blipFill (Picture Fill) |
§20.2.2.1 |
nvPicPr (Non-Visual Picture Properties) |
§20.2.2.4 |
spPr (Shape Properties) |
§20.2.2.6 |
[Note: The W3C XML Schema definition of this element’s content model (CT_Picture) is located in §A.4.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.