Class TableBackground (PowerPoint VBA)

The class TableBackground represents the background associated with a Table object.

Set

To use a TableBackground class variable it first needs to be instantiated, for example

Dim tbd as TableBackground
Set tbd = ActiveWindow.RangeFromPoint.Table.Background

TableBackground class variables can be set using the Table.Background procedure.

Fill

Returns a FillFormat object that represents the formatting of the fill associated with the table background.

A shape can have a solid, gradient, texture, pattern, picture, or semi-transparent fill. You can use the properties and methods of the FillFormat object returned by the Fill property to specify the appearance and behavior of the fill associated with the table background.

Dim fftFill As FillFormat
Set fftFill = ActiveWindow.RangeFromPoint.Table.Background.Fill

Picture

Returns a PictureFormat object that represents the formatting of the picture associated with the table background.

Dim pftPicture As PictureFormat
Set pftPicture = ActiveWindow.RangeFromPoint.Table.Background.Picture

Reflection

Returns an ReflectionFormat object that represents the reflection effect associated with the table background.

Dim rftReflection As Office.ReflectionFormat
Set rftReflection = ActiveWindow.RangeFromPoint.Table.Background.Reflection

Shadow

Returns a ShadowFormat object that represents the formatting of the shadow associated with the table background.

You can control the appearance and behavior of a shadow applied to a table by setting the properties of the ShadowFormat object returned by the Shadow property. For example, you can specify the color of the shadow, its degree of transparency, whether it rotates when the table shape is rotated, and whether it is visible.

Dim sftShadow As ShadowFormat
Set sftShadow = ActiveWindow.RangeFromPoint.Table.Background.Shadow