Freigeben über


Shapes.AddTable Method

Adds a table shape to a slide.

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)

Syntax

'Declaration
Function AddTable ( _
    NumRows As Integer, _
    NumColumns As Integer, _
    Left As Single, _
    Top As Single, _
    Width As Single, _
    Height As Single _
) As Shape
'Usage
Dim instance As Shapes
Dim NumRows As Integer
Dim NumColumns As Integer
Dim Left As Single
Dim Top As Single
Dim Width As Single
Dim Height As Single
Dim returnValue As Shape

returnValue = instance.AddTable(NumRows, _
    NumColumns, Left, Top, Width, Height)
Shape AddTable(
    int NumRows,
    int NumColumns,
    float Left,
    float Top,
    float Width,
    float Height
)

Parameters

  • NumRows
    Type: System.Int32
    The number of rows in the table.
  • NumColumns
    Type: System.Int32
    The number of columns in the table.
  • Left
    Type: System.Single
    The distance (in points) from the left edge of the slide to the left edge of the table.
  • Top
    Type: System.Single
    The distance (in points) from the top edge of the slide to the top edge of the table.
  • Width
    Type: System.Single
    The width (in points) of the new table.
  • Height
    Type: System.Single
    The height (in points) of the new table.

Return Value

Type: Microsoft.Office.Interop.PowerPoint.Shape

See Also

Reference

Shapes Interface

Shapes Members

Microsoft.Office.Interop.PowerPoint Namespace