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

Problem accessing active richtextnode text

Thread ID:

Created:

Updated:

Platform:

Replies:

148036 Oct 2,2019 10:26 PM UTC Oct 4,2019 10:02 AM UTC WinForms 2
loading
Tags: Diagram
George
Asked On October 2, 2019 10:26 PM UTC

Hi, I am facing a problem with richtextnodes
I add a richtextnode and while I still typing in the richtextnode I click on Save button
As you can see in the image I don't have access to the already typed info

Can I somehow workaround this?


Attachment: ActiveNodeProblem_cc9a8e6d.7z

George
Replied On October 2, 2019 10:29 PM UTC

Another question, can I predefined the richtextNode font (family, size etc)?

Shyam G [Syncfusion]
Replied On October 4, 2019 10:02 AM UTC

Hi George, 
 
Query 
Response 
I add a richtextnode and while I still typing in the richtextnode I click on Save button
As you can see in the image I don't have access to the already typed info
 
Please use TextEditor TextChanged event which triggers when we enter a text in richtexteditor. Please refer to a code example to define event. 
 
Code example: 
 
this.diagram1.Controller.TextEditor.TextChanged += TextEditor_TextChanged; 
 
private void TextEditor_TextChanged(object sender EventArgs e) { 
 
} 
Another question, can I predefined the richtextNode font (family, size etc)?  
Yes, you can predefined the richtextNode font using the below code example. 
 
Code example: 
 
RichTextNode richTextNode = new RichTextNode("{\rtf1\ansi{\fonttbl\f0\fswiss Helvetica;}\f0\pard This is some {\b bold } text.\par}", 
                                              new RectangleF(NodeX, 
                                                             NodeY, 
                                                             NodeWidth, 
                                                             NodeHeight)); 
 
 
Regards, 
Shyam G 


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