Raddiagram Text color change

1 Answer 36 Views
Diagram, DiagramRibbonBar, DiagramToolBox
Yew
Top achievements
Rank 1
Yew asked on 30 Nov 2023, 06:05 AM

Hi, 

 

I add shape page. In shape of text can I do change color of text at third line similar like picture? If I choose third line of text change color can first and second text no change color? How I write it. Because user want to change or add any of text color.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 04 Dec 2023, 11:11 AM

Hi Yew,

Thank you for contacting us.

The text can be formatted by making use of HTML-like formatting which is supported by Telerik Presentation Framework. If the user wants to edit the Text runtime, he can use the settings panel of the current shape and edit the HTML per its needs. The following image, demonstrates how the shape will look if I set the following string to its Text property.

<html><size=12>This is RadLabel <br><b><font=Arial>Arial, Bold</b><br><i><color= Red><font=Times New Roman>Times, Italic <u>Underline</u><br><size=9>Size = 9<br><color= 0, 0, 255>Sample Text

I hope that this approach will work for you.

Regards,
Dinko | Tech Support Engineer
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Diagram, DiagramRibbonBar, DiagramToolBox
Asked by
Yew
Top achievements
Rank 1
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or