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;
        }