Rad Button control text property

4 posts, 1 answers
  1. Divya
    Divya avatar
    47 posts
    Member since:
    Mar 2011

    Posted 28 Mar 2011 Link to this post

    Hi,
            I am using Rad Button control,i want the text of that button to be in two lines say like if the text is MY PROJECTS ,then i want the MY in firstline and PROJECTS in the secondline  how can i write this if i provide width to the button then the text doesnt come to next line,the remaining text gets hidden i want that part of text in next line ,can anyone say me how i can do it or is there any property like multiline text .

    The post u send me doesnt help my issue....

    My RadButton is in a RadRibbon Bar so how it is done








  2. Answer
    Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 28 Mar 2011 Link to this post

    Hi,

    There are two different solutions for adding text onto more than one line in this recent forum post.

    I hope this helps but please let me know if you have any questions
    Richard
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 30 Mar 2011 Link to this post

    Hello,

    Did this help? If so please remember to mark as answer. If you need futher advice, please let me know
    Thanks
    Richard
  5. Ivan Todorov
    Admin
    Ivan Todorov avatar
    688 posts

    Posted 31 Mar 2011 Link to this post

    Hello Divya,

    Thank you for your question.

    You can split your text in two lines by inserting '\n' between MY and PROJECTS:
    radButton1.Text = "MY\nPROJECTS";

    You can also adjust the TextAlignment property to align the text on different sides of the button.

    I hope this helps.

    Greetings,
    Ivan Todorov
    the Telerik team
Back to Top