ComponentFactory.Krypton.Ribbon.ViewLayoutRibbonScrollPort.GetLastFocusItem C# (CSharp) Method

GetLastFocusItem() public method

Gets the last focus item within the scroll port.
public GetLastFocusItem ( ) : ViewBase
return ViewBase
        public ViewBase GetLastFocusItem()
        {
            ViewBase view = null;
            ViewLayoutRibbonGroups groups = _viewFiller as ViewLayoutRibbonGroups;

            // If we contain a groups layout
            if (groups != null)
            {
                // Ask the groups for the first focus item
                view = groups.GetLastFocusItem();

                // Make sure client area of view is visible
                if (view != null)
                    ScrollIntoView(view.ClientRectangle, true);
            }

            return view;
        }