TableWidthType.Width Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Table Width Value
Represents the following attribute in the schema: w:w
[DocumentFormat.OpenXml.SchemaAttr(23, "w")]
public DocumentFormat.OpenXml.StringValue Width { get; set; }
public DocumentFormat.OpenXml.StringValue Width { get; set; }
[DocumentFormat.OpenXml.SchemaAttr(23, "w")]
public DocumentFormat.OpenXml.StringValue? Width { get; set; }
[DocumentFormat.OpenXml.SchemaAttr("w:w")]
public DocumentFormat.OpenXml.StringValue? Width { get; set; }
public DocumentFormat.OpenXml.StringValue? Width { get; set; }
member this.Width : DocumentFormat.OpenXml.StringValue with get, set
[<DocumentFormat.OpenXml.SchemaAttr(23, "w")>]
member this.Width : DocumentFormat.OpenXml.StringValue with get, set
[<DocumentFormat.OpenXml.SchemaAttr("w:w")>]
member this.Width : DocumentFormat.OpenXml.StringValue with get, set
Public Property Width As StringValue
Property Value
Returns Int32Value.
- Attributes
Remarks
The following information from the ECMA International Standard ECMA-376 can be useful when working with this class.
Specifies the value of the width property being defined by the parent element. This property is used to define various properties of a table, including the cell spacing, preferred widths, and table margins.
If this attribute is omitted, then its value shall be assumed to be 0.
Consider a table with a bottom margin with a width of 302:
<w:bottom w:w="302" w:type="dxa" />
The value in the w
attribute shall therefore be used to determine the width being specified in the context of the units specified in the type
attribute. In this case, the type
is dxa
(twentieths of a point), so the width is 302 twentieths of a point (0.2097 inches).
The possible values for this attribute are defined by the ST_DecimalNumber
simple type.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應