ComponentFactory.Krypton.Ribbon.ViewDrawRibbonGroupColorButton.UpdateDropDownState C# (CSharp) Méthode

UpdateDropDownState() private méthode

private UpdateDropDownState ( ) : void
Résultat void
        private void UpdateDropDownState()
        {
            // Only show the drop down if the button is the correct type
            bool dropDown = ((_ribbonColorButton.ButtonType == GroupButtonType.DropDown) ||
                             (_ribbonColorButton.ButtonType == GroupButtonType.Split));

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

            // Update large view
            _viewLargeDropArrow.Visible = dropDown;
            _viewLargeText2Sep1.Visible = separators;
            _viewLargeText2Sep2.Visible = separators;

            // Update medium/small view
            _viewMediumSmallDropArrow.Visible = dropDown;
            _viewMediumSmallText2Sep2.Visible = dropDown;
            _viewMediumSmallText2Sep3.Visible = dropDown;
        }