This is a migrated thread and some comments may be shown as answers.

how do I change font size caption of panelbar

3 Answers 81 Views
Panelbar (obsolete as of Q2 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
chatchai
Top achievements
Rank 1
chatchai asked on 15 Oct 2010, 04:52 AM
i need to change font size and color of caption how do i change it
thank you

3 Answers, 1 is accepted

Sort by
0
Accepted
Emanuel Varga
Top achievements
Rank 1
answered on 15 Oct 2010, 07:17 PM
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
0
chatchai
Top achievements
Rank 1
answered on 16 Oct 2010, 02:32 AM
Emanuel Varga thank you :)
0
Emanuel Varga
Top achievements
Rank 1
answered on 17 Oct 2010, 03:27 PM
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
Tags
Panelbar (obsolete as of Q2 2010)
Asked by
chatchai
Top achievements
Rank 1
Answers by
Emanuel Varga
Top achievements
Rank 1
chatchai
Top achievements
Rank 1
Share this question
or