ComponentFactory.Krypton.Ribbon.ViewDrawRibbonGroupButtonText.GetShortText C# (CSharp) Method

GetShortText() public method

Gets the short text used as the main ribbon title.
public GetShortText ( ) : string
return string
        public string GetShortText()
        {
            if (_ribbonButton.KryptonCommand != null)
            {
                if (_firstText)
                    return _ribbonButton.KryptonCommand.TextLine1;
                else if (!string.IsNullOrEmpty(_ribbonButton.KryptonCommand.TextLine2))
                    return _ribbonButton.KryptonCommand.TextLine2;
                else
                    return " ";
            }
            else if (_firstText)
                return _ribbonButton.TextLine1;
            else if (!string.IsNullOrEmpty(_ribbonButton.TextLine2))
                return _ribbonButton.TextLine2;
            else
                return " ";
        }