TableCellTextStyle class
Table Cell Text Style. When the object is serialized out as xml, its qualified name is a:tcTxStyle.
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlCompositeElement
DocumentFormat.OpenXml.Drawing.TableCellTextStyle
Namespace: DocumentFormat.OpenXml.Drawing
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
[ISO/IEC 29500-1 1st Edition]
tcTxStyle (Table Cell Text Style)
This element defines the text properties associated with the text contained within a table cell.
[Example: Consider the following example of a table cell text style in use within DrawingML:
<tcTxStyle b="on">
<fontRef idx="minor">
<scrgbClr r="0" g="0" b="0"/>
</fontRef>
<schemeClr val="lt1"/>
</tcTxStyle>In this example, we define the text within the cell to be bold and reference the themed minor font and to also be the light 1 color. end example]
Parent Elements |
|---|
band1H (§20.1.4.2.1); band1V (§20.1.4.2.2); band2H (§20.1.4.2.3); band2V (§20.1.4.2.4); firstCol (§20.1.4.2.11); firstRow (§20.1.4.2.12); lastCol (§20.1.4.2.16); lastRow (§20.1.4.2.17); neCell (§20.1.4.2.20); nwCell (§20.1.4.2.21); seCell (§20.1.4.2.23); swCell (§20.1.4.2.24); wholeTbl (§20.1.4.2.34) |
Child Elements | Subclause |
|---|---|
extLst (Extension List) | §20.1.2.2.15 |
font (Font) | §20.1.4.2.13 |
fontRef (Font Reference) | §20.1.4.1.17 |
hslClr (Hue, Saturation, Luminance Color Model) | §20.1.2.3.13 |
prstClr (Preset Color) | §20.1.2.3.22 |
schemeClr (Scheme Color) | §20.1.2.3.29 |
scrgbClr (RGB Color Model - Percentage Variant) | §20.1.2.3.30 |
srgbClr (RGB Color Model - Hex Variant) | §20.1.2.3.32 |
sysClr (System Color) | §20.1.2.3.33 |
Attributes | Description |
|---|---|
b (Bold) | Specifies if the text is to be bolded. The possible values for this attribute are defined by the ST_OnOffStyleType simple type (§20.1.10.36). |
i (Italic) | Specifies if the text is to be italicized. The possible values for this attribute are defined by the ST_OnOffStyleType simple type (§20.1.10.36). |
[Note: The W3C XML Schema definition of this element’s content model (CT_TableStyleTextStyle) is located in §A.4.1. end note]
© ISO/IEC29500: 2008.