ComponentFactory.Krypton.Ribbon.ViewDrawRibbonGroupButton.UpdateDropDownState C# (CSharp) Method

UpdateDropDownState() private method

private UpdateDropDownState ( ) : void
return void
        private void UpdateDropDownState()
        {
            bool dropDown = (_ribbonButton.ButtonType == GroupButtonType.DropDown);
            bool splitButton = (_ribbonButton.ButtonType == GroupButtonType.Split);

            // Only show text line 2 separators is a drop down is showing with no text
            bool separators = (dropDown || splitButton) && (!string.IsNullOrEmpty(_ribbonButton.TextLine2));

            // Update large view
            _viewLargeDropArrow.Visible = (dropDown || splitButton);
            _viewLargeText2Sep1.Visible = separators;
            _viewLargeText2Sep2.Visible = separators;

            // Update medium/small view
            _viewMediumSmallText2Sep2.Visible = splitButton;
            _viewMediumSmallDropArrow.Visible = (dropDown || splitButton);
            _viewMediumSmallText2Sep3.Visible = (dropDown || splitButton);
        }