c# - How to convert System.Drawing.Brush to string -
this question has answer here:
- c# brush string 3 answers
i cannot find correct solution this
string colorname = ...converting... brushes.brown; colorname should have 'brown'
is possible?
to desired result, can use:
string colorname = nameof(brushes.brown);
now colorname
should have value 'brown'
.
Comments
Post a Comment