TableWidthType.Width TableWidthType.Width TableWidthType.Width Property


Table Width Value.Represents the following attribute in the schema: w:w

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

Property Value


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