We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Setting Font programmaticaly in EditControl

Hello!

how can I set the Font of the displayed Text in an EditControl?


Regards
Falk


1 Reply

J. J.Nagarajan Syncfusion Team December 1, 2007 01:40 AM UTC

Hi Falk ,

Please use the below code to programmatically set the font.

[C#]

ISnippetFormat formatMethod = this.editControl1.Language.Add(strFormatName);
formatMethod.FontColor = clrFontColor;
formatMethod.Font = new Font("Arial", 12);


Let me know if you have any questions.

Regards,
Nagaraj


Loader.
Live Chat Icon For mobile
Up arrow icon