TableBackground Class

Table Background.When the object is serialized out as xml, its qualified name is a:tblBg.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Drawing.TableBackground

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

Syntax

声明
<ChildElementInfoAttribute(GetType(EffectReference))> _
<ChildElementInfoAttribute(GetType(FillProperties))> _
<ChildElementInfoAttribute(GetType(FillReference))> _
<ChildElementInfoAttribute(GetType(EffectPropertiesType))> _
Public Class TableBackground _
    Inherits OpenXmlCompositeElement
用法
Dim instance As TableBackground
[ChildElementInfoAttribute(typeof(EffectReference))]
[ChildElementInfoAttribute(typeof(FillProperties))]
[ChildElementInfoAttribute(typeof(FillReference))]
[ChildElementInfoAttribute(typeof(EffectPropertiesType))]
public class TableBackground : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • FillProperties <a:fill>

  • FillReference <a:fillRef>

  • EffectPropertiesType <a:effect>

  • EffectReference <a:effectRef>

[ISO/IEC 29500-1 第 1 个版本]

20.1.4.2.25 tblBg (Table Background)

This element defines the formatting options which can be applied to the table background shape. The background shape is the same size as the entire table and can hold a fill or an effect which spans the entire table.

[Example: Consider the following example of a table background in use within DrawingML:

<tblBg>
<fillRef idx="2">
<schemeClr val="accent1"/>
</fillRef>
<effectRef idx="1">
<schemeClr val="accent1"/>
</effectRef>
</tblBg>

In this example, we see that there is a themed fill and themed effect being applied to the table background through the table style. end example]

Parent Elements

tableStyle (§21.1.3.11); tblStyle (§20.1.4.2.26)

Child Elements

Subclause

effect (Effect)

§20.1.4.2.7

effectRef (Effect Reference)

§20.1.4.2.8

fill (Fill)

§20.1.4.2.9

fillRef (Fill Reference)

§20.1.4.2.10

[Note: The W3C XML Schema definition of this element's content model (CT_TableBackgroundStyle) 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.

See Also

Reference

TableBackground Members

DocumentFormat.OpenXml.Drawing Namespace