BringIntoView() public method

Bring the specified image index into view.
public BringIntoView ( int index ) : void
index int Index to bring into view.
return void
Example #1
0
        /// <summary>
        /// Bring the specified image index into view.
        /// </summary>
        /// <param name="index">Index to bring into view.</param>
        public void BringIntoView(int index)
        {
            // Get number of images available
            int images = (_imageList != null) ? _imageList.Images.Count : 0;

            // Check the index is within range of what we actually have
            if ((index >= 0) && (index < images))
            {
                _drawItems.BringIntoView(index);
            }
        }