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

GetShortText() public method

Gets the button short text.
public GetShortText ( IPalette palette ) : string
palette IPalette Palette to use for inheriting values.
return string
        public virtual string GetShortText(IPalette palette)
        {
            if (KryptonCommand != null)
                return KryptonCommand.Text;
            else if ((Text.Length > 0) || !AllowInheritText)
                return Text;
            else
                return palette.GetButtonSpecShortText(_type);
        }

Usage Example

Esempio n. 1
0
 /// <summary>
 /// Gets the content short text.
 /// </summary>
 /// <returns>String value.</returns>
 public string GetShortText()
 {
     // Get value from button spec passing inheritence redirector
     return(_buttonSpec.GetShortText(_redirector));
 }