ComponentFactory.Krypton.Ribbon.AppButtonMenuProvider.ProviderShowSubMenuFixedRect C# (CSharp) Method

ProviderShowSubMenuFixedRect() public method

The rectangle used for showing a fixed location for the sub menu.
public ProviderShowSubMenuFixedRect ( KryptonContextMenuItem menuItem ) : Rectangle
menuItem ComponentFactory.Krypton.Toolkit.KryptonContextMenuItem Menu item that needs to show sub menu.
return System.Drawing.Rectangle
        public Rectangle ProviderShowSubMenuFixedRect(KryptonContextMenuItem menuItem)
        {
            if (ProviderShowSubMenuFixed(menuItem))
            {
                Rectangle screenRect = _fixedViewElement.OwningControl.RectangleToScreen(_fixedViewElement.ClientRectangle);
                screenRect.Y++;
                screenRect.Width -= 3;
                screenRect.Height -= 4;
                return screenRect;
            }
            else
                return Rectangle.Empty;
        }