HeaderPane
Main
Hide
Share Link
Print

SetTopItem Method, ListClass Class

Makes the specified item the first item displayed in the tree control's client area and repaints the item area.

Class: ListClass
Namespace: Softelvdm.SftBoxNET
Assembly: Softelvdm.SftBoxNET

Syntax

protected void SetTopItem( ItemClass newTop );
Protected Sub SetTopItem( ByVal newTop As ItemClass )

Parameters

newTop

The new top item.

Comments

Makes the specified item the first item displayed in the tree control's client area and repaints the item area.

If the items following the new top item don't fill the item area, the top item is moved up so the last item ends at the bottom of the item area. Unlike the ListClass.TopItem property, which scrolls the item area when possible, this method always repaints it.

See Also ListClass Class | Classes | SftBox/NET 3.0