I have a simple method that accepts a string:
private void drawTextboxValue(string text)
{
// lots of code
g.DrawString(text, font, brush, layout);
}
I should pass alt code "Alt 0149" as the string so it will draw a bullet point (see: http://duena.telenet.be/ALT_toetsen_lijst.htm ).
I know you could draw something else to achieve this (an ellipse for example), but for some reason I'm not allowed to do that - I'm only allowed to pass another parameter to this method.
How can I achieve this?
You can write Unicode characters in C# here is an example
string a = "\u0149";
The escape code \? (where dddd is a four-digit number) represents the Unicode character U+dddd. Eight-digit Unicode escape codes are also recognized: \\Udddddddd
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.