RadPanerBarGroupElement caption size

6 posts, 0 answers
  1. Sofia
    Sofia avatar
    8 posts
    Member since:
    Apr 2008

    Posted 15 May 2008 Link to this post

    For RadPanerBarGroupElement caption, how can I increase the text size?
  2. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 16 May 2008 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Sofia
    Sofia avatar
    8 posts
    Member since:
    Apr 2008

    Posted 17 May 2008 Link to this post

    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..
  5. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 19 May 2008 Link to this post

    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
  6. Amika Rai
    Amika Rai avatar
    1 posts
    Member since:
    Nov 2009

    Posted 04 Apr 2014 in reply to Nikolay Link to this post

    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
  7. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 07 Apr 2014 Link to this post

    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.

     
Back to Top
UI for WinForms is Visual Studio 2017 Ready