Compartir a través de


Columns.Add Method

Adds a new column to an existing table. Returns a Column object that represents the new table column.

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

Syntax

'Declaration
Function Add ( _
    BeforeColumn As Integer _
) As Column
'Usage
Dim instance As Columns
Dim BeforeColumn As Integer
Dim returnValue As Column

returnValue = instance.Add(BeforeColumn)
Column Add(
    int BeforeColumn
)

Parameters

  • BeforeColumn
    Type: System.Int32
    The index number that specifies the table column before which the new column will be inserted.

Return Value

Type: Microsoft.Office.Interop.PowerPoint.Column

Remarks

The value of the BeforeColumn parameter must be between 1 and the number of columns in the table, inclusive. The default value is -1, which means that if you omit the BeforeColumn parameter, the new column is added as the last column in the table.

See Also

Reference

Columns Interface

Columns Members

Microsoft.Office.Interop.PowerPoint Namespace