ACPAddIn.RibbonX.OnGetPressed C# (CSharp) Метод

OnGetPressed() публичный Метод

public OnGetPressed ( Microsoft.Office.Core control ) : bool
control Microsoft.Office.Core
Результат bool
        public bool OnGetPressed(Office.IRibbonControl control)
        {
            bool isPressed = false;
            switch (control.Id)
            {
                case "autoModeButton":
                    isPressed = (Globals.ThisAddIn.Mode == ThisAddIn.TriggerMode.AUTO_TRIGGER);
                    break;
                case "manualModeButton":
                    isPressed = (Globals.ThisAddIn.Mode == ThisAddIn.TriggerMode.MANUAL_TRIGGER);
                    break;
            }
            return isPressed;
        }