ComponentFactory.Krypton.Toolkit.ButtonSpec.GetLongText C# (CSharp) Method

GetLongText() public method

Gets the button long text.
public GetLongText ( IPalette palette ) : string
palette IPalette Palette to use for inheriting values.
return string
        public virtual string GetLongText(IPalette palette)
        {
            if (KryptonCommand != null)
                return KryptonCommand.ExtraText;
            if ((ExtraText.Length > 0) || !AllowInheritExtraText)
                return ExtraText;
            else
                return palette.GetButtonSpecLongText(_type);
        }

Usage Example

 /// <summary>
 /// Gets the content long text.
 /// </summary>
 /// <returns>String value.</returns>
 public string GetLongText()
 {
     // Get value from button spec passing inheritence redirector
     return(_buttonSpec.GetLongText(_redirector));
 }