Freigeben über


NonVisualPictureDrawingProperties-Klasse

Non-Visual Picture Drawing Properties.When the object is serialized out as xml, its qualified name is xdr:cNvPicPr.

Vererbungshierarchie

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Drawing.Spreadsheet.NonVisualPictureDrawingProperties

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

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(NonVisualPicturePropertiesExtensionList))> _
<ChildElementInfoAttribute(GetType(PictureLocks))> _
Public Class NonVisualPictureDrawingProperties _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As NonVisualPictureDrawingProperties
[ChildElementInfoAttribute(typeof(NonVisualPicturePropertiesExtensionList))]
[ChildElementInfoAttribute(typeof(PictureLocks))]
public class NonVisualPictureDrawingProperties : OpenXmlCompositeElement

Hinweise

The following table lists the possible child types:

  • DocumentFormat.OpenXml.Drawing.PictureLocks <a:picLocks>

  • DocumentFormat.OpenXml.Drawing.NonVisualPicturePropertiesExtensionList <a:extLst>

[ISO/IEC 29500-1 1. Ausgabe]

20.5.2.7 cNvPicPr (Non-Visual Picture Drawing Properties)

This element describes the non-visual properties of a picture within a spreadsheet. These are the set of properties of a picture which do not affect its display within a spreadsheet.

[Example: Consider the following SpreadsheetDrawingML.

<xdr:pic>
  ..
  <xdr:nvPicPr>
    <xdr:cNvPr id="4" name="Lilly_by_Lisher.jpg"/>
    <xdr:cNvPicPr>
      <a:picLocks noChangeAspect="1"/>
    </xdr:cNvPicPr>
    <xdr:nvPr/>
  </xdr:nvPicPr>
  ..
</xdr:pic>

The above example defines some non-visual picture drawing properties for the inserted picture. end example]

Parent Elements

nvPicPr (§20.5.2.22)

Child Elements

Subclause

extLst (Extension List)

§20.1.2.2.15

picLocks (Picture Locks)

§20.1.2.2.31

Attributes

Description

preferRelativeResize (Relative Resize Preferred)

Namespace: .../drawingml/2006/main

Specifies if the user interface should show the resizing of the picture based on the picture's current size or its original size. If this attribute is set to true, then scaling is relative to the original picture size as opposed to the current picture size.

[Example: Consider the case where a picture has been resized within a document and is now 50% of the originally inserted picture size. Now if the user chooses to make a later adjustment to the size of this picture within the generating application, then the value of this attribute should be checked.

If this attribute is set to true then a value of 50% is shown. Similarly, if this attribute is set to false, then a value of 100% should be shown because the picture has not yet been resized from its current (smaller) size. end example]

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

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

© ISO/IEC29500: 2008. Die oben aufgeführten Textauszüge wurden von Microsoft (und/oder den Microsoft-Vendoren) von Englisch nach Deutsch übersetzt, und im Rahmen von ISO wird keinerlei Verantwortung für diese Übersetzungen übernommen.

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic) Member dieses Typs sind threadsicher. Bei Instanzmembern ist die Threadsicherheit nicht gewährleistet.

Siehe auch

Referenz

NonVisualPictureDrawingProperties-Member

DocumentFormat.OpenXml.Drawing.Spreadsheet-Namespace