public void CenterSelectedItem(
bool bCenterClosest
)Public Sub CenterSelectedItem (
bCenterClosest As Boolean
)If you scroll the Cylinder using the Scroll(Int32) method then the Cylinder may end up in such a position that the currently selected item is not centered exactly under the cursor. In that case you can call this method in two possible variations:
If you set bCenterClosest to true the item which is the closest to the cursor (i.e., the one which index is SelectedIndex) will be centered.
If you set bCenterClosest to false then the closest item in the direction of last scrolling will be centered.