Export (0) Print
Expand All

TableCellFitText class

Defines the TableCellFitText Class. When the object is serialized out as xml, its qualified name is w:tcFitText.

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

public class TableCellFitText : OnOffOnlyType

[ISO/IEC 29500-1 1st Edition]

tcFitText (Fit Text Within Cell)

This element specifies that the contents of the current cell shall have their inter-character spacing increased or reduced as necessary to fit the width of the text extents of the current cell. This setting shall behave identically to placing the contents of this paragraph in a run and using the fitText element (§17.3.2.14), if the width provided on that element matched the width of the current cell.

If this element is omitted, then the text in this cell shall not be fit to the current cell extents.

[Example: Consider a 2 row by two column table, in which the contents of the two cells in the first row have both have the fit text property set, as follows:

<w:tcPr>
  <w:tcFitText w:val="true"/>
</w:tcPr>

The resulting table cells must have their contents fit to the extents of the parent table cell, as follows:

Sample text in R1C1.

And this table cell instead contains a very very long string of sample text in R2C2.

R2C1

R2C2

end example]

Parent Elements

tcPr (§17.7.6.8); tcPr (§17.7.6.9); tcPr (§17.4.70); tcPr (§17.4.71)

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

© ISO/IEC29500: 2008.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2015 Microsoft