TableCellFitText Class

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

Inheritance Hierarchy


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


Public Class TableCellFitText _
    Inherits OnOffOnlyType
Dim instance As TableCellFitText
public class TableCellFitText : OnOffOnlyType


[ISO/IEC 29500-1 1st Edition]

17.4.68 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 (§, 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:tcFitText w:val="true"/>

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.



end example]

Parent Elements

tcPr (§; tcPr (§; 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.

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


TableCellFitText Members

DocumentFormat.OpenXml.Wordprocessing Namespace