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

RadPanerBarGroupElement caption size

5 Answers 42 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.
Sofia
Top achievements
Rank 1
Sofia asked on 15 May 2008, 02:56 PM
For RadPanerBarGroupElement caption, how can I increase the text size?

5 Answers, 1 is accepted

Sort by
0
Boyko Markov
Telerik team
answered on 16 May 2008, 05:13 PM
Hello Sofia,

Thank you for contacting us.

Have you tried setting the Padding property of the panelBar's group caption element? Every RadPanelBarGroupElement has a child element called caption element. To gain access to it you can use the GetCaptionElement method of RadPanelBarGroupElement. Once you get the instance of this caption element you are free to set its Padding property. To increase caption's height you should modify the top and bottom parts of the Padding property.

I believe this will help you. You can write me back if I could be of further help.


Kind regards,
Boyko Markov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Sofia
Top achievements
Rank 1
answered on 17 May 2008, 06:11 AM
Dear Boyko,
I thank you for your reply.
I need to increase the font size of the caption in RadPanelBarGroupElement. How can increasing the padding help with that?

However, I did try to do the following:

RadPanelBarGroupElement1.GetCaptionElement().Padding.Top = 10;

RadPanelBarGroupElement1.GetCaptionElement().Padding.Bottom = 10;

RadPanelBarGroupElement1.GetCaptionElement().Font.SizeInPoints = 14;

The above three lines gave me errors:

Error 1 Cannot modify the return value of 'Telerik.WinControls.RadElement.Padding' because it is not a variable

Error 2 Cannot modify the return value of 'Telerik.WinControls.RadElement.Padding' because it is not a variable

Error 3 Property or indexer 'System.Drawing.Font.SizeInPoints' cannot be assigned to -- it is read only 

Please help..
0
Nikolay
Telerik team
answered on 19 May 2008, 01:49 PM
Hello Sofia,

To set the Padding and the Font size, please refer to the code snippet below:
 
radPanelBarGroupElement1.GetCaptionElement().Padding = new Padding(0, 10, 0, 10);  
radPanelBarGroupElement1.GetCaptionElement().Font = new Font(radPanelBarGroupElement1.GetCaptionElement().Font.FontFamily, 14); 

If you have additional questions, do not hesitate to contact us.

Best wishes,
Nikolay
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Amika Rai
Top achievements
Rank 1
answered on 04 Apr 2014, 01:15 PM
I am trying to update my application with Rad Q1 2014, please suggest replacement of

RadPanelBarVisualElement visualElement = radPanelBarGroupElement.GetCaptionElement();

I am using RadPageView in place of RadPanelBar
0
Stefan
Telerik team
answered on 07 Apr 2014, 11:16 AM
Hello Amika,

RadPanelBar is no longer part of the suite. It was replaced by RadPageView. Please refer to the following article for upgrading options: http://www.telerik.com/help/winforms/pageview-upgrading-to-radpageview.html.

If you still have any questions, do not hesitate to contact us.

Regards,
Stefan
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Panelbar (obsolete as of Q2 2010)
Asked by
Sofia
Top achievements
Rank 1
Answers by
Boyko Markov
Telerik team
Sofia
Top achievements
Rank 1
Nikolay
Telerik team
Amika Rai
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or