Align Title in RadRibbonForm

2 posts, 0 answers
  1. Marco
    Marco avatar
    19 posts
    Member since:
    Oct 2011

    Posted 24 May 2012 Link to this post

    Hi,

    how can I align the title text of a RadRibbonForm to the left side?
    I use the default Office2010Black, Office2010Blue and Office2010Silver themes and the title
    is centered.

    Regards
    Marco
  2. Boryana
    Admin
    Boryana avatar
    330 posts

    Posted 29 May 2012 Link to this post

    Hello Marco,

    Thank you for writing.

    The position of RadRibbonBar caption is calculated depending on various factors, such as contextual tabs and QuickAccessToolBar items. Having this in mind, the easiest way to align the caption to left is through setting the StretchHorizontally property of the RibbonBarCaptionLayoutPanel. Here is a sample snippet:
    RibbonBarCaptionLayoutPanel panel = this.radRibbonBar1.RibbonBarElement.RibbonCaption.FindDescendant<RibbonBarCaptionLayoutPanel>();
    panel.StretchHorizontally = false;

    I hope this helps. Let me know if you encounter further queries.

    Kind regards,
    Boryana
    the Telerik team
    RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top