how do I change font size caption of panelbar

4 posts, 1 answers
  1. chatchai
    chatchai avatar
    12 posts
    Member since:
    Jun 2010

    Posted 14 Oct 2010 Link to this post

    i need to change font size and color of caption how do i change it
    thank you
  2. Answer
    Emanuel Varga
    Emanuel Varga avatar
    1336 posts
    Member since:
    May 2010

    Posted 15 Oct 2010 Link to this post

    Hello,

    You have to get the caption element from the RadPanelBarGroupElement, like so:
    var group = new RadPanelBarGroupElement();
    group.Caption = "Caption";
    RadPanelBarVisualElement caption = group.GetCaptionElement();
    caption.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
    caption.ForeColor = Color.Red;

    And after that apply the desired font and set the desired fore color.

    Hope this helps, if you have any other questions or comments, please let me know,

    Best Regards,
    Emanuel Varga
  3. UI for WinForms is Visual Studio 2017 Ready
  4. chatchai
    chatchai avatar
    12 posts
    Member since:
    Jun 2010

    Posted 15 Oct 2010 Link to this post

    Emanuel Varga thank you :)
  5. Emanuel Varga
    Emanuel Varga avatar
    1336 posts
    Member since:
    May 2010

    Posted 17 Oct 2010 Link to this post

    Glad to be able to help, if you have any more questions please just let me know, and if the question has been solved, please mark the question as answered, so that others can find the answers to their questions faster.

    Best Regards,
    Emanuel Varga
Back to Top