共用方式為


AutoCaption.Name Property

Definition

Identifier of Object to be Automatically Captioned

Represents the following attribute in the schema: w:name

[DocumentFormat.OpenXml.SchemaAttr(23, "name")]
public DocumentFormat.OpenXml.StringValue Name { get; set; }
public DocumentFormat.OpenXml.StringValue Name { get; set; }
[DocumentFormat.OpenXml.SchemaAttr(23, "name")]
public DocumentFormat.OpenXml.StringValue? Name { get; set; }
[DocumentFormat.OpenXml.SchemaAttr("w:name")]
public DocumentFormat.OpenXml.StringValue? Name { get; set; }
public DocumentFormat.OpenXml.StringValue? Name { get; set; }
member this.Name : DocumentFormat.OpenXml.StringValue with get, set
[<DocumentFormat.OpenXml.SchemaAttr(23, "name")>]
member this.Name : DocumentFormat.OpenXml.StringValue with get, set
[<DocumentFormat.OpenXml.SchemaAttr("w:name")>]
member this.Name : DocumentFormat.OpenXml.StringValue with get, set
Public Property Name As StringValue

Property Value

Returns StringValue.

Attributes

Remarks

The following information from the ECMA International Standard ECMA-376 can be useful when working with this class.

Specifies a unique identifier which may be used to associate objects inserted into the document which are to be automatically labeled with a caption when inserted into the WordprocessingML document.

Consider the following WordprocessingML specifying that WordprocessingML tables should be labeled with the custom caption:

<w:autoCaption w:name="wfwTables" w:caption="custom" />  

The name attribute’s value of wfwTables specifies that WordprocessingML tables shall be labeled with the custom caption.

The possible values for this attribute are defined by the ST_String simple type.

Applies to