TableCellStyle Class
Table Cell Style.When the object is serialized out as xml, its qualified name is a:tcStyle.
Inheritance Hierarchy
System.Object
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlCompositeElement
DocumentFormat.OpenXml.Drawing.TableCellStyle
Namespace: DocumentFormat.OpenXml.Drawing
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Declaration
<ChildElementInfoAttribute(GetType(Cell3DProperties))> _
<ChildElementInfoAttribute(GetType(TableCellBorders))> _
<ChildElementInfoAttribute(GetType(FillProperties))> _
<ChildElementInfoAttribute(GetType(FillReference))> _
Public Class TableCellStyle _
Inherits OpenXmlCompositeElement
'Usage
Dim instance As TableCellStyle
[ChildElementInfoAttribute(typeof(Cell3DProperties))]
[ChildElementInfoAttribute(typeof(TableCellBorders))]
[ChildElementInfoAttribute(typeof(FillProperties))]
[ChildElementInfoAttribute(typeof(FillReference))]
public class TableCellStyle : OpenXmlCompositeElement
Remarks
The following table lists the possible child types:
TableCellBorders <a:tcBdr>
FillProperties <a:fill>
FillReference <a:fillRef>
Cell3DProperties <a:cell3D>
[ISO/IEC 29500-1 1st Edition]
20.1.4.2.29 tcStyle (Table Cell Style)
This element defines the style for a give cell in a table.
[Example: Consider the following example of a table cell style in use within DrawingML:
<tcStyle> <tcBdr> … </tcBdr> <fill> … </fill> </tcStyle>
In this example, we see that a set of borders for the cell along with a cell fill are being defined. 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 |
---|---|
cell3D (Cell 3-D) |
§21.1.3.1 |
fill (Fill) |
§20.1.4.2.9 |
fillRef (Fill Reference) |
§20.1.4.2.10 |
tcBdr (Table Cell Borders) |
§20.1.4.2.28 |
[Note: The W3C XML Schema definition of this element’s content model (CT_TableStyleCellStyle) is located in §A.4.1. end note]
© 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.