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.

      Visual Basic

      C#

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 &lt;b&gt;.

      Visual Basic

      C#

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.

      Visual Basic

      C#

The code above sets the C1RichTextBox control so that text content will not wrap in the control and will appear in a continuous line.


Send us comments about this topic.
Copyright © GrapeCity, inc. All rights reserved.