We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Determine Font Size of Diagrams' Nodes in SfDiagram

Thread ID:

Created:

Updated:

Platform:

Replies:

148718 Oct 31,2019 03:15 PM UTC Nov 19,2019 05:19 AM UTC WPF 3
loading
Tags: SfDiagram
Xamarin Hunter
Asked On October 31, 2019 03:17 PM UTC

Hello. My question is simple: I want to set the font size of the diagrams' nodes. How can I achieve this?

Example: I want to change the font size of the text "Begin" "Process" etc. to more enormous.

NOTE: If I changed the diagram font size (like mydiagram.fontsize); it cannot succeed only rotator text changes. I demand to change the text of nodes.




Ranjitha Amirthalingam [Syncfusion]
Replied On November 1, 2019 06:24 AM UTC

Hi Utemar, 
 
Thanks for contacting Syncfusion Support. 
 
Requirement: Need to change the font size of the text.  
 
We have support to achieve your requirement using “TextAnnotationViewModel”. We have provided code example and screenshot to represent this. Please refer to them as below. 
 
Code Example: 
<Syncfusion:NodeViewModel ID="Begin" OffsetX="300" OffsetY="60" Shape="{StaticResource Ellipse}" UnitHeight="40" UnitWidth="120"> 
   <Syncfusion:NodeViewModel.Annotations> 
    <!--Observable Collection of TextAnnotationViewModel--> 
     <Syncfusion:AnnotationCollection> 
       <Syncfusion:TextAnnotationViewModel Text="Begin" FontSize="18" FontStyle="Italic" FontWeight="Bold" Foreground="Yellow"/> 
     </Syncfusion:AnnotationCollection> 
 </Syncfusion:NodeViewModel.Annotations> 
</Syncfusion:NodeViewModel> 


Screenshot: 
 
 
For more information, please visit our online help documentation link. 
 
 
Regards, 
Ranjitha A. 


Xamarin Hunter
Replied On November 18, 2019 10:17 PM UTC

Hi Utemar, 
 
Thanks for contacting Syncfusion Support. 
 
Requirement: Need to change the font size of the text.  
 
We have support to achieve your requirement using “TextAnnotationViewModel”. We have provided code example and screenshot to represent this. Please refer to them as below. 
 
Code Example: 
<Syncfusion:NodeViewModel ID="Begin" OffsetX="300" OffsetY="60" Shape="{StaticResource Ellipse}" UnitHeight="40" UnitWidth="120"> 
   <Syncfusion:NodeViewModel.Annotations> 
    <!--Observable Collection of TextAnnotationViewModel--> 
     <Syncfusion:AnnotationCollection> 
       <Syncfusion:TextAnnotationViewModel Text="Begin" FontSize="18" FontStyle="Italic" FontWeight="Bold" Foreground="Yellow"/> 
     </Syncfusion:AnnotationCollection> 
 </Syncfusion:NodeViewModel.Annotations> 
</Syncfusion:NodeViewModel> 


Screenshot: 
 
 
For more information, please visit our online help documentation link. 
 
 
Regards, 
Ranjitha A. 


Thanks. It's exact solution.

Karkuvel Rajan Shanmugavel [Syncfusion]
Replied On November 19, 2019 05:19 AM UTC

  
Hi Utemar, 
 
Thanks for the update. 
 
Please contact us if you need any further assistance. 
 
Regards, 
Karkuvel Rajan S 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon