DynamicAddress Class

Use Country/Region-Based Address Field Ordering.When the object is serialized out as xml, its qualified name is w:dynamicAddress.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlLeafElement
      DocumentFormat.OpenXml.Wordprocessing.OnOffType
        DocumentFormat.OpenXml.Wordprocessing.DynamicAddress

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

Syntax

声明
Public Class DynamicAddress _
    Inherits OnOffType
用法
Dim instance As DynamicAddress
public class DynamicAddress : OnOffType

Remarks

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

17.14.13 dynamicAddress (Use Country-Based Address Field Ordering)

This element specifies that the contents of the AddressBlock MERGEFIELD field shall be dynamically ordered based on the country associated with the current record or if the country-invariant version of the address field shall be used in its place. [Rationale: When a source document is combined with the contents of a data source in order to produce multiple merged documents, it is often necessary to use an address form specific to the destination country for each particular record in the data source, rather than one static address form for all records. end rationale] If this element is set to true, then the mail merge shall use an address form suited to the country associated with the current record in the external data source.

If this element is omitted, then the form of the address shall be dynamically determined based on the country specified in the current record.

[Example: Consider a merged WordprocessingML document that is specified to *not* dynamically create the address field order based on the country associated with the current record. This requirement might be specified using the following WordprocessingML:

<w:fieldMapData>
…
<w:dynamicAddress w:val="off" />
</w:fieldMapData>

The dynamicAddress element is set to a value of off, specifying that the dynamic address format must not be used when performing a mail merge with the specified data source. end example]

Parent Elements

fieldMapData (§17.14.15)

This element's content model is defined by the common boolean property definition in §17.17.4.

© 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

DynamicAddress Members

DocumentFormat.OpenXml.Wordprocessing Namespace