Vertically scrolls the item into view so it is displayed in the tree control's client area.
Class: ItemClass
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET
public void ScrollIntoView();
Public Sub ScrollIntoView()
Vertically scrolls the item into view so it is displayed in the tree control's client area.
The ScrollIntoView method can be used to make an item visible by scrolling it into view (vertically). The user normally scrolls the tree control items vertically using the scroll bar, but if an application wants to insure that an item is visible, this method can be used.
The SftTree.TopItem property is used to make a specific item the very first item shown in the tree control area.
To make a particular cell visible, the CellClass.ScrollIntoView method can be used.
This method can only be used for items in the item area.
try {
newItem = originalItem.Copy(targetItem, CopyStyleEnum.TargetAsParentInsertFirst, true);
} catch (Exception exc) {
MessageBox.Show(exc.Message);
}
}
if (newItem != null) {
sftTree1.Columns.MakeOptimal(0, false);
newItem.ScrollIntoView();
}
}
}
private void sftTree2_DragDetected(object sender, DragDetectedEventArgs e) {
Debug.Write("sftTree2_DragDetected ");
DumpValues(e);
Try
newItem = originalItem.Copy(targetItem, CopyStyleEnum.TargetAsParentInsertFirst, True)
Catch exc As Exception
MessageBox.Show(exc.Message)
End Try
End If
If Not newItem Is Nothing Then
SftTree1.Columns.MakeOptimal(0, False)
newItem.ScrollIntoView()
End If
End If
End Sub
Private Sub sftTree2_DragDetected(ByVal sender As System.Object, ByVal e As Softelvdm.SftTreeNET.DragDetectedEventArgs) Handles SftTree2.DragDetected
Debug.Write("sftTree2_DragDetected ")
DumpValues(e)See Also ItemClass Class | Classes | SftTree/NET 3.0