Set font Color with RGB

2 posts, 1 answers
  1. Patrick
    Patrick avatar
    31 posts
    Member since:
    Aug 2011

    Posted 27 Nov 2012 Link to this post

    Hi,

    Is there a way to change font color with RGB and can apply custom color not just the pre programmed one?

    Thanks,

    Pat
  2. Answer
    Petya
    Admin
    Petya avatar
    975 posts

    Posted 28 Nov 2012 Link to this post

    Hi Pat,

    You can create a new Color instance in any way convinient for you and use it in order to change the ForeColor. Here is one of the possible approaches:
    Color myRgbColor = new Color();
    myRgbColor = Color.FromRgb(0, 255, 0);
    this.editor.ChangeTextForeColor(myRgbColor);

    I hope this helps!

    Greetings,
    Petya
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top