How to Change Font in ICSharp TextEditor?
I would like to ask you how to chang开发者_Go百科e font in ICSharp TextEditor in C#.Net. I'm from Thai.So i want to show my language in ICSharp TextEditor. I also changed font property in Property box,but it doesn't effect . Its only show square. How can i do that..
Thanks you for your time...
Indeed, it seems that setting the font needs to be done in code:
textEditorControl1.Font = new Font("Courier New", 8.25f, FontStyle.Regular);
And for clearing the text, I use the following helper method:
/// <summary>
/// Sets the text and refreshes the control.
/// </summary>
/// <param name="text">The text.</param>
public void SetTextAndRefresh(string text)
{
ResetText();
Text = text;
Refresh();
}
For a modified ICSharp TextEditor see this project on github.
精彩评论