Customize Span for KetticDocument in RichTextBox in C#.NET
The Span C# class of the KetticRichTextBox is used to show the formatted text. This span class is an inline object and can only be used in the context underneath the Paragraph C# class. The Span elements will be placed one after another and will wrap the text within the span to the next line when the space of current line is insufficient. The Span C# class provides various properties for the users to customize the layout of the elements. In this article, we will work through the process of applying spans, adding text to a span, as well as customizing spans.
Apply Spans Element to Context of Paragraph in KetticDocument
KetticRichTextBox control applies the Spans only into the context of a Paragraph element in KetticDocument. The users can add the spans to the paragraph by using the collection of Inlines as the C# code below.
Add Text to a Span in Context of a Paragraph
KetticRichTextBox control provides the Text property for the users to add text inside a Span. The C# code below shows how to achieve this.
Properties for Customizing Spans in KetticDocument
The Span C# class contains a variety of properties for the users to customize the layout of the elements placed under the spans in KetticDocument, such as
|
UI Controlsfor Windows Forms .NET WinForms UI Overview.NET WinForms UI Features.NET WinForms UI GuideC# WinForms UI DesignVB.NET WinForms UI DesignWinForms UI Controls WinForms Buttons UI Control WinForms Calendar UI ControlWinForms Carousel UI ControlWinForms Chart UI ControlWinForms Clock UI ControlCommandBar UI ControlWinForms Dock UI ControlDesktop Alert UI ControlDropDown List UI ControlWinForms Editor UI ControlForms and Dialogs UI ControlWinForms GridView UI ControlWinForms ListView UI ControlWinForms Menu UI ControlWinForms ComboBox UI ControlWinForms PageView UI ControlPanels and Labels UI ControlWinForms Panorama UI ControlWinForms PDFViewer UI ControlWinForms Property Grid UI ControlWinForms Ribbon UI ControlWinForms PivotGrid UI ControlWinForms RichTextBox UI ControlGet Started in C#RichTextBox - SettingsDocument ElementsContentsSectionParagraphSpanHyperlinkInline ImageTableBookmarksRichTextBox - FeaturesLayout ModesSelectionSearchPositionRead OnlyFormat APIImport & ExportImport & Export - SettingsHTML SupportSpell CheckKeyboard SupportWinForms Rotator UI ControlWinForms Scheduler UI ControlWinForms Shortcuts UI ControlWinForms SpellChecker UI ControlWinForms Track & Status UI ControlWinForms TreeView UI ControlWinForms Wizard UI ControlWinForms Test UI ControlWinForms Theme UI Control |