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

Rad Button control text property

3 Answers 210 Views
Buttons, RadioButton, CheckBox, etc
This is a migrated thread and some comments may be shown as answers.
Divya
Top achievements
Rank 1
Divya asked on 28 Mar 2011, 07:42 AM
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








3 Answers, 1 is accepted

Sort by
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 28 Mar 2011, 09:04 AM
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
0
Richard Slade
Top achievements
Rank 2
answered on 30 Mar 2011, 04:56 PM
Hello,

Did this help? If so please remember to mark as answer. If you need futher advice, please let me know
Thanks
Richard
0
Ivan Todorov
Telerik team
answered on 31 Mar 2011, 07:53 AM
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
Tags
Buttons, RadioButton, CheckBox, etc
Asked by
Divya
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Ivan Todorov
Telerik team
Share this question
or