Objeto TableBackground (PowerPoint)

Representa el fondo asociado a un objeto Table.

Comentarios

Utilice la propiedad Background de un objeto Table para devolver el objeto TableBackground asociado con la tabla.

Para obtener un objeto Table de una forma existente, utilice la propiedad Table del objeto Shape o ShapeRange que contiene la tabla. Puede crear una forma que contiene una tabla con el método AddTable de la colección Shapes.

Las propiedades del objeto TableBackground devuelven objetos que representan distintos aspectos del formato asociado a una tabla.

Ejemplo:

En el ejemplo siguiente se muestra cómo obtener un objeto TableBackground y establecer dos de sus propiedades.

Public Sub TableBackground_Example() 
 
    Dim pptShape As PowerPoint.Shape 
    Dim pptTable As PowerPoint.Table 
    Dim pptTableBackground As PowerPoint.TableBackground 
    Dim pptFillFormat As PowerPoint.FillFormat 
     
    Set pptShape = ActivePresentation.Slides(2).Shapes.AddTable(3, 3) 
    Set pptTable = pptShape.Table 
    Set pptTableBackground = pptTable.Background 
    Set pptFillFormat = pptTableBackground.Fill 
     
    ' Add a patterned fill to the table background 
    pptFillFormat.Patterned (msoPatternSmallGrid) 
     
    ' Add a shadow to the table background 
    pptTableBackground.Shadow.Visible = msoTrue 
     
End Sub

Consulte también

Referencia del modelo de objetos de PowerPoint

Soporte técnico y comentarios

¿Tiene preguntas o comentarios sobre VBA para Office o esta documentación? Vea Soporte técnico y comentarios sobre VBA para Office para obtener ayuda sobre las formas en las que puede recibir soporte técnico y enviar comentarios.