Justify Align Text Content in RadDiagramTextShape

1 Answer 129 Views
Diagram
Mrugendra
Top achievements
Rank 1
Iron
Mrugendra asked on 31 May 2022, 12:25 AM

Hi,

Looking for the "Justify" Horizontal content alignment option in the RadDiagramTextShape. 

We have text shapes that have multi-line texts and we would like to justify align the text in the shape, how do we achieve the Justify text alignment for text?

 

1 Answer, 1 is accepted

Sort by
0
Stenly
Telerik team
answered on 01 Jun 2022, 04:19 PM

Hello Mrugendra,

To achieve this, you could create a new Style with TargetType="RadDiagramTextShape" and then add a new Setter for the TextBlock.TextAlignment attached property. For the Value, you could set it to "Justify".

The following code snippet shows this suggestion's implementation:

<Style TargetType="telerik:RadDiagramTextShape">
    <Setter Property="TextBlock.TextAlignment" Value="Justify"/>
</Style>

The produced result is as follows:

Could you give this suggestion a try?

Regards,
Stenly
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
Asked by
Mrugendra
Top achievements
Rank 1
Iron
Answers by
Stenly
Telerik team
Share this question
or