Example #1
0
            // ActionList command to change the text size
            private void ToggleLargeText()
            {
                // Get a reference to the parent designer's associated control
                OfficeRibbon ctl = (OfficeRibbon)_parent.Component;

                AboutOfficeWebUI AboutForm = new AboutOfficeWebUI();

                AboutForm.ShowDialog();


                /*
                 * // Get a reference to the control's LargeText property
                 * PropertyDescriptor propDesc = TypeDescriptor.GetProperties(ctl)["ApplicationMenuText"];
                 *
                 * // Get the current value of the property
                 * String v = (String)propDesc.GetValue(ctl);
                 *
                 * // Toggle the property value
                 * propDesc.SetValue(ctl, "hello world");
                 */
            }
Example #2
0
            // ActionList command to change the text size
            private void ToggleLargeText()
            {
                // Get a reference to the parent designer's associated control
                OfficeRibbon ctl = (OfficeRibbon)_parent.Component;

                AboutOfficeWebUI AboutForm = new AboutOfficeWebUI();
                AboutForm.ShowDialog();

                /*
                // Get a reference to the control's LargeText property
                PropertyDescriptor propDesc = TypeDescriptor.GetProperties(ctl)["ApplicationMenuText"];

                // Get the current value of the property
                String v = (String)propDesc.GetValue(ctl);

                // Toggle the property value
                propDesc.SetValue(ctl, "hello world");
                */
            }