How to change the ButtonItem.Symbol property using code
Categories: DotNetBar for Windows Forms, How To
DotNetBar ButtonItem include built-in symbol library. At design-time symbols are set using visual editor provided for Symbol property which makes choice of symbol easy.
From code however, you need to use symbol unicode. That code would look like this:
C#:
button.Symbol = "\uf060";
VB:
button.Symbol = ChrW("&Hf060")
Since we included 2 symbol set libraries, you can select symbol set library to use by setting SymbolSet property.
Here is the table with available symbols and corresponding unicode values for Awesome symbol set:
Here is the table with available symbols and corresponding unicode values for Material symbol set:
Related posts: