NonVisualDrawingProperties Class

Chart Non Visual Properties.When the object is serialized out as xml, its qualified name is cdr:cNvPr.

Inheritance Hierarchy

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

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

Syntax

声明
<ChildElementInfoAttribute(GetType(NonVisualDrawingPropertiesExtensionList))> _
<ChildElementInfoAttribute(GetType(HyperlinkOnHover))> _
<ChildElementInfoAttribute(GetType(HyperlinkOnClick))> _
Public Class NonVisualDrawingProperties _
    Inherits OpenXmlCompositeElement
用法
Dim instance As NonVisualDrawingProperties
[ChildElementInfoAttribute(typeof(NonVisualDrawingPropertiesExtensionList))]
[ChildElementInfoAttribute(typeof(HyperlinkOnHover))]
[ChildElementInfoAttribute(typeof(HyperlinkOnClick))]
public class NonVisualDrawingProperties : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • DocumentFormat.OpenXml.Drawing.HyperlinkOnClick <a:hlinkClick>

  • DocumentFormat.OpenXml.Drawing.HyperlinkOnHover <a:hlinkHover>

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

[ISO/IEC 29500-1 第 1 个版本]

21.3.2.7 cNvPr (Non-Visual Drawing Properties)

This element specifies non-visual canvas properties. This allows for additional information that does not affect the appearance of the picture to be stored.

[Example: Consider the following ChartDrawingML.

<cdr:pic>
  …
  <cdr:nvPicPr>
    <cdr:cNvPr id="4" name="Lilly_by_Lisher.jpg"/>
  </cdr:nvPicPr>
  …
</cdr:pic>

end example]

Parent Elements

nvCxnSpPr (§21.3.2.15); nvGraphicFramePr (§21.3.2.16); nvGrpSpPr (§21.3.2.17); nvPicPr (§21.3.2.18); nvSpPr (§21.3.2.19)

Child Elements

Subclause

extLst (Extension List)

§20.1.2.2.15

hlinkClick (Click Hyperlink)

§21.1.2.3.5

hlinkHover (Hyperlink for Hover)

§20.1.2.2.23

Attributes

Description

descr (Alternative Text for Object)

Namespace: .../drawingml/2006/main

Specifies alternative text for the current DrawingML object, for use by assistive technologies or applications which do not display the current object.

If this element is omitted, then no alternative text is present for the parent object.

[Example: Consider a DrawingML object defined as follows:

<… descr="A picture of a bowl of fruit">

The descr attribute contains alternative text which can be used in place of the actual DrawingML object. end example]

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

hidden (Hidden)

Namespace: .../drawingml/2006/main

Specifies whether this DrawingML object is displayed. When a DrawingML object is displayed within a document, that object can be hidden (i.e., present, but not visible). This attribute determines whether the object is rendered or made hidden. [Note: An application can have settings which allow this object to be viewed. end note]

If this attribute is omitted, then the parent DrawingML object shall be displayed (i.e., not hidden).

[Example: Consider an inline DrawingML object which must be hidden within the document's content. This setting would be specified as follows:

<… hidden="true" />

The hidden attribute has a value of true, which specifies that the DrawingML object is hidden and not displayed when the document is displayed. end example]

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

id (Unique Identifier)

Namespace: .../drawingml/2006/main

Specifies a unique identifier for the current DrawingML object within the current document. This ID can be used to assist in uniquely identifying this object so that it can be referred to by other parts of the document.

If multiple objects within the same document share the same id attribute value, then the document shall be considered non-conformant.

[Example: Consider a DrawingML object defined as follows:

<… id="10" … >

The id attribute has a value of 10, which is the unique identifier for this DrawingML object. end example]

The possible values for this attribute are defined by the ST_DrawingElementId simple type (§20.1.10.21).

name (Name)

Namespace: .../drawingml/2006/main

Specifies the name of the object. [Note: Typically, this is used to store the original file name of a picture object. end note]

[Example: Consider a DrawingML object defined as follows:

< … name="foo.jpg" >

The name attribute has a value of foo.jpg, which is the name of this DrawingML object. end example]

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

title (Title)

Namespace: .../drawingml/2006/main

Specifies the title (caption) of the current DrawingML object.

If this attribute is omitted, then no title text is present for the parent object.

[Example: Consider a DrawingML object defined as follows:

<… title="Process Flow Diagram">

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_NonVisualDrawingProps) is located in §A.4.1. end note]

© ISO/IEC29500: 2008. 以上摘要已经由 Microsoft(和/或其代理公司)从英语翻译为简体中文,ISO 对此翻译不承担任何责任。

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

NonVisualDrawingProperties Members

DocumentFormat.OpenXml.Drawing.ChartDrawing Namespace