private void SetShouldConstrainToRootBounds(bool constrain) { if (constrain) { elements.GetShouldConstrainToRootBoundsComboBox().SelectItemByName("True"); } else { elements.GetShouldConstrainToRootBoundsComboBox().SelectItemByName("False"); } elements.GetShouldConstrainToRootBoundsButton().Invoke(); }