TableCellTextStyle Class
Table Cell Text Style.When the object is serialized out as xml, its qualified name is a:tcTxStyle.
Inheritance Hierarchy
System.Object
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlCompositeElement
DocumentFormat.OpenXml.Drawing.TableCellTextStyle
Namespace: DocumentFormat.OpenXml.Drawing
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
声明
<ChildElementInfoAttribute(GetType(ExtensionList))> _
<ChildElementInfoAttribute(GetType(Fonts))> _
<ChildElementInfoAttribute(GetType(FontReference))> _
<ChildElementInfoAttribute(GetType(RgbColorModelPercentage))> _
<ChildElementInfoAttribute(GetType(RgbColorModelHex))> _
<ChildElementInfoAttribute(GetType(HslColor))> _
<ChildElementInfoAttribute(GetType(SystemColor))> _
<ChildElementInfoAttribute(GetType(SchemeColor))> _
<ChildElementInfoAttribute(GetType(PresetColor))> _
Public Class TableCellTextStyle _
Inherits OpenXmlCompositeElement
用法
Dim instance As TableCellTextStyle
[ChildElementInfoAttribute(typeof(ExtensionList))]
[ChildElementInfoAttribute(typeof(Fonts))]
[ChildElementInfoAttribute(typeof(FontReference))]
[ChildElementInfoAttribute(typeof(RgbColorModelPercentage))]
[ChildElementInfoAttribute(typeof(RgbColorModelHex))]
[ChildElementInfoAttribute(typeof(HslColor))]
[ChildElementInfoAttribute(typeof(SystemColor))]
[ChildElementInfoAttribute(typeof(SchemeColor))]
[ChildElementInfoAttribute(typeof(PresetColor))]
public class TableCellTextStyle : OpenXmlCompositeElement
Remarks
The following table lists the possible child types:
Fonts <a:font>
FontReference <a:fontRef>
RgbColorModelPercentage <a:scrgbClr>
RgbColorModelHex <a:srgbClr>
HslColor <a:hslClr>
SystemColor <a:sysClr>
SchemeColor <a:schemeClr>
PresetColor <a:prstClr>
ExtensionList <a:extLst>
[ISO/IEC 29500-1 第 1 个版本]
20.1.4.2.30 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. 以上摘要已经由 Microsoft(和/或其代理公司)从英语翻译为简体中文,ISO 对此翻译不承担任何责任。
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.