<div class="meta" robots="noindex">

</div>

# ListBox.CellBorderTop

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div class="warning">

<div class="title">

Warning

</div>

This item was deprecated in version 2019r2. Please use `DesktopListBox.PaintCellBackground<desktoplistbox.paintcellbackground>` as a replacement.

</div>

## Description

Sets the top border of the cell designated by *Row*, *Column* to a rule style. *Row* and *Column* are zero-based.

## Notes

You specify the Border via ListBox class constants: They are:

| Value | Class Constant        |
|-------|-----------------------|
| 0     | BorderDefault         |
| 1     | BorderNone            |
| 2     | BorderThinDotted      |
| 3     | BorderThinSolid       |
| 4     | BorderThickSolid      |
| 5     | BorderDoubleThinSolid |

## Sample code

The following example sets the top border of a cell to Thin Solid.

For example:

``` xojo
ListBox1.CellBorderTop(1, 1) = ListBox.BorderThinSolid
```

## Compatibility

All projects types on all supported operating systems.
