AvalonEdit
RichText Constructor (text, model)
NamespacesICSharpCode.AvalonEdit.HighlightingRichTextRichText(String, RichTextModel)
Creates a RichText instance with the given text and RichTextModel.
Declaration Syntax
C#Visual BasicVisual C++
public RichText(
	string text,
	RichTextModel model = null
)
Public Sub New ( _
	text As String, _
	Optional model As RichTextModel = Nothing _
)
public:
RichText(
	String^ text, 
	RichTextModel^ model = nullptr
)
Parameters
text (String)
The text to use in this RichText instance.
model (RichTextModel) (Optional)
The model that contains the formatting to use for this RichText instance. model.DocumentLength should correspond to text.Length. This parameter may be null, in which case the RichText instance just holds plain text.

Assembly: ICSharpCode.AvalonEdit (Module: ICSharpCode.AvalonEdit.dll) Version: 5.0.0.4238