Software Developer's Kit - ChemDraw

Send comments on this topic
DeleteRow Method
See Also 
rowNum
This number indicates the position of the row that will be deleted.

Description

Member of ChemDraw Control.Table.

Deletes the row of the table at the specified position.

Syntax

Visual Basic
Public Sub DeleteRow( _
   ByVal rowNum As Long _
) 

Parameters

rowNum
This number indicates the position of the row that will be deleted.

Return Type

Long

Example

'Declares variable vTable
 Dim vTable As ChemDrawControl10Ctl.Table
'Checks that there is a Table loaded in the variable
 If  Selection.Tables.Count < 1 Then
     Exit Sub
 End If
 Private Sub cmdDelRow_Click()
     vTable.DeleteRow 1
 End Sub

See Also