Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
148036 | Oct 2,2019 10:26 PM UTC | Oct 4,2019 10:02 AM UTC | WinForms | 2 |
![]() |
Tags: Diagram |
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)); |
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.
This page will automatically be redirected to the sign-in page in 10 seconds.