Software Developer's Kit - ChemDraw

Send comments on this topic
BottomBorder Property
See Also 


Member of ChemDraw Control.Cell.

Returns the bottom border of this cell.

Property type

Read-only property


Visual Basic
Public Property BottomBorder() As Border

Return Type


Returns the object border, of this cell. The border has the properties of color, width and its line type can be dashed or not.


'Declares variables
 Dim myTable As ChemDrawControl11Ctl.Table
 Set myCell = ctlChemDraw.Selection.Objects.Cell

 Private Sub cmdCommand_Click()
    'Checks that there is a Table loaded in the variable
     If  Selection.Tables.Count < 1 Then
         Exit Sub
     End If
     Set myCell = myTable.Cells.Item(1) 
    'Sets and returns the border color
     Text1.text = MyCell.BottomBorder.Color
    'Sets and returns whether the border is dashed
     Text2.text = MyCell.BottomBorder.IsDashed 
    'Sets the color 
     myCells.Item(1).BottomBorder.Color = VBRed
    'Returns the width of the border 
     Text3.text = MyCell.BottomBorder.Width
 End Sub

See Also