C1RichTextBox Content
The content of the C1RichTextBox can be specified in two ways, using the Text property or the Html property. The Text property is used to assign and retrieve the control content as plain text.
Me.C1RichTextBox1.Text = "Hello World!"
•C#
this.c1RichTextBox1.Text = "Hello World!";
The Html property is used to assign and retrieve formatted text as HTML. The HTML text needs to be encoded in the XAML file, so, for example, instead of <b> for bold, tags are encoded as <b>.
Me.C1RichTextBox1.Html = "<b>Hello World!</b>"
•C#
this.c1RichTextBox1.Html = "<b>Hello World!</b>"
The C1RichTextBox exposes a TextWrapping property that specifies whether the control should wrap long lines or whether it should keep the lines together and provide a horizontal scrollbar instead.
Me.C1RichTextBox1.TextWrapping = TextWrapping.NoWrap
•C#
this.c1RichTextBox1.TextWrapping = TextWrapping.NoWrap;
The code above sets the C1RichTextBox control so that text content will not wrap in the control and will appear in a continuous line.