ClassRadRichTextEditor
RadRichTextEditor is a control that allows you to create, view, modify and format rich text content including sections, paragraphs, spans, tables, etc. It offers a full set of formatting options and various ways to access them.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
[TelerikToolboxCategory("RichTextEditor")]
[Docking(DockingBehavior.Ask)]
public class RadRichTextEditor : RadControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IAnalyticsProvider, IPrintable
Inheritance: objectMarshalByRefObjectComponentControlScrollableControlRadControlRadRichTextEditor
Implements:
Inherited Members
Constructors
RadRichTextEditor()
Declaration
public RadRichTextEditor()
Fields
DEFAULT_NAMESPACE
The default namespace for the RadRichTextEditor control.
Properties
AcceptsReturn
Gets or sets a value indicating whether pressing the RETURN key types a RETURN character in the control.
Declaration
[Browsable(true)]
public bool AcceptsReturn { get; set; }
Property Value
AcceptsTab
Gets or sets a value indicating whether pressing the TAB key types a TAB character in the control instead of moving the focus to the next control in the tab order.
Declaration
[Browsable(true)]
public bool AcceptsTab { get; set; }
Property Value
AllowScaling
Gets or sets a value indicating whether the scaling is enabled.
Declaration
[Browsable(true)]
public bool AllowScaling { get; set; }
Property Value
AutoInsertHyperlinks
Gets or sets a value indicating whether hyperlinks should be automatically detected.
Declaration
[Browsable(true)]
public bool AutoInsertHyperlinks { get; set; }
Property Value
BorderColor
Gets or sets the color of the border.
Declaration
[Browsable(true)]
public Color BorderColor { get; set; }
Property Value
CanEnableIme
Gets a value indicating whether Input Method Editor (IME) can be enabled for this control.
Declaration
protected override bool CanEnableIme { get; }
Property Value
Always returns true to enable IME input for text editing.
Overrides
CaretColor
Gets or sets the color of the caret.
Declaration
[Browsable(true)]
public Color CaretColor { get; set; }
Property Value
CaretWidth
Gets or sets the width of the caret.
Declaration
[Browsable(false)]
public float CaretWidth { get; set; }
Property Value
The width of the caret.
Commands
Provides access to the commands that can be executed by this RadRichTextEditor.
Declaration
[Browsable(false)]
public RichTextBoxCommands Commands { get; set; }
Property Value
CommentPaneMinWidth
Gets or sets the minimum width of the comments pane.
Declaration
[Browsable(true)]
public double CommentPaneMinWidth { get; set; }
Property Value
CommentTemplateContentMargin
Gets or sets the comment template content margin.
Declaration
[Browsable(true)]
public Padding CommentTemplateContentMargin { get; set; }
Property Value
CurrentEditingStyle
Gets a value indicating the current editing style.
Declaration
[Browsable(false)]
public StyleDefinition CurrentEditingStyle { get; }
Property Value
CurrentUser
Gets or sets information about the current user.
Declaration
[Browsable(false)]
public UserInfo CurrentUser { get; set; }
Property Value
CurrentVisiblePage
Gets the currently visible page number.
Declaration
[Browsable(false)]
public int CurrentVisiblePage { get; }
Property Value
DefaultSize
Gets the default size when the control is dragged onto the designer surface.
Declaration
protected override Size DefaultSize { get; }
Property Value
Overrides
Document
Gets or sets the currently active document in the editor.
DocumentEditor
Gets the active document editor which provides methods for editing the document in an undo scope.
Declaration
public IDocumentEditor DocumentEditor { get; }
Property Value
DocumentInheritsDefaultStyleSettings
Gets or sets value indicating whether the edited Document instance should use by default the FontFamily, FontSize, ForeColor and other style properties applied to this RadRichTextBox using the DefaultStyleSettings.
Declaration
[Browsable(true)]
public bool DocumentInheritsDefaultStyleSettings { get; set; }
Property Value
FieldShadingMode
Gets or sets the field shading type/
Declaration
[Browsable(true)]
public FieldShadingType FieldShadingMode { get; set; }
Property Value
HorizontalScrollBarVisibility
Gets or sets a value representing the horizontal scroll bar visibility.
Declaration
[Browsable(true)]
public ScrollBarVisibility HorizontalScrollBarVisibility { get; set; }
Property Value
HyperlinkNavigationMode
Gets or sets the hyperlink navigation mode.
Declaration
[Browsable(true)]
public HyperlinkNavigationMode HyperlinkNavigationMode { get; set; }
Property Value
The hyperlink navigation mode.
HyperlinkToolTipFormatString
Gets or sets the hyperlink tool text.
Declaration
[Browsable(false)]
public string HyperlinkToolTipFormatString { get; set; }
Property Value
The hyperlink tool tip.
IgnoredWords
Gets or sets an instance of IIgnoredWordDictionary that provides a list of words that would be ignored by spell checker.
Declaration
[Browsable(false)]
public IIgnoredWordDictionary IgnoredWords { get; set; }
Property Value
ImageSelectionAdornerSettings
Provides settings for the adorners of the selected images.
Declaration
[Browsable(true)]
public ImageSelectionAdornerSettings ImageSelectionAdornerSettings { get; }
Property Value
InputHandler
Gets or sets the component which is responsible for handling the input of RadRichTextEditor.
Declaration
[Browsable(false)]
public RichTextEditorInputBehavior InputHandler { get; set; }
Property Value
IsAdvancedSelectionEnabled
Gets or sets a value that indicates whether a the advanced selection mode is enabled. If so, when the cursor leaves the initial word the selection continues by expanding with a whole word every time until the cursor moves in the opposite direction. When the cursor returns to the initial word the selection continues to expand one character at a time. More about this behavior can be learned in the documentation.
Declaration
[Browsable(true)]
public bool IsAdvancedSelectionEnabled { get; set; }
Property Value
IsContextMenuEnabled
Gets or sets a value indicating whether context menu is enabled.
Declaration
[Browsable(true)]
public bool IsContextMenuEnabled { get; set; }
Property Value
IsInHeaderFooterEditMode
Gets or sets a value indicating whether the editor is currently in Header/Footer edit mode.
Declaration
[Browsable(false)]
public bool IsInHeaderFooterEditMode { get; set; }
Property Value
IsPasteOptionsPopupEnabled
Gets or sets a value indicating whether the paste options pop-up is displayed on paste.
Declaration
[Browsable(true)]
public bool IsPasteOptionsPopupEnabled { get; set; }
Property Value
IsReadOnly
Gets or sets a value indicating whether the control is read-only.
Declaration
[Browsable(true)]
public bool IsReadOnly { get; set; }
Property Value
IsSelectionEnabled
Gets or sets a value indicating whether selection can be made in the document.
Declaration
[Browsable(true)]
public bool IsSelectionEnabled { get; set; }
Property Value
IsSelectionMiniToolBarEnabled
Gets or sets a value indicating whether the mini toolbar that appears after a selection is enabled.
Declaration
[Browsable(true)]
public bool IsSelectionMiniToolBarEnabled { get; set; }
Property Value
IsSpellCheckingEnabled
Gets or sets a value indicating whether the spell checking is enabled for this document.
Declaration
[Browsable(true)]
public bool IsSpellCheckingEnabled { get; set; }
Property Value
IsTrackChangesEnabled
Gets or sets a value indicating whether formatting symbols are shown in the document.
Declaration
[Browsable(true)]
public bool IsTrackChangesEnabled { get; set; }
Property Value
true if formatting symbols are shown; otherwise, false.
LayoutMode
Gets or sets the document layout mode.
Declaration
[Browsable(true)]
public DocumentLayoutMode? LayoutMode { get; set; }
Property Value
The document layout mode.
LineBreakingRuleLanguage
Gets or sets the language which rules should be used for line breaking in the paragraphs.
Declaration
[Browsable(true)]
public LineBreakingRuleLanguage LineBreakingRuleLanguage { get; set; }
Property Value
The line breaking characters rule language.
MentionBox
Declaration
[Browsable(false)]
public IMentionBox MentionBox { get; set; }
Property Value
MentionContext
Declaration
[Browsable(false)]
public MentionContext MentionContext { get; set; }
Property Value
PageBackColor
Gets or sets the back color that should be applied to all pages.
RichTextBoxElement
Gets the RadRichTextBox that is the main element in the control.
Declaration
public RadRichTextBox RichTextBoxElement { get; }
Property Value
ScaleFactor
Gets or sets a value representing the current view scale factor.
Declaration
[Browsable(true)]
public SizeF ScaleFactor { get; set; }
Property Value
SelectedComment
Gets or sets the currently selected comment.
Declaration
[Browsable(false)]
public Comment SelectedComment { get; set; }
Property Value
SelectedNote
Gets or sets the currently selected note.
Declaration
[Browsable(false)]
public Note SelectedNote { get; set; }
Property Value
SelectionFill
Gets or sets the fill of the selection rectangle.
Declaration
[Browsable(true)]
[TypeConverter(typeof(RadColorEditorConverter))]
public Color SelectionFill { get; set; }
Property Value
SelectionStroke
Gets or sets the border of the selection rectangle.
Declaration
[Browsable(true)]
[TypeConverter(typeof(RadColorEditorConverter))]
public Color SelectionStroke { get; set; }
Property Value
ShowComments
Gets or sets a value indicating whether the comments are shown.
Declaration
[Browsable(true)]
public bool ShowComments { get; set; }
Property Value
ShowFormattingSymbols
Gets or sets a value indicating whether formatting symbols are shown in the document.
Declaration
[Browsable(true)]
public bool ShowFormattingSymbols { get; set; }
Property Value
true if formatting symbols are shown; otherwise, false.
ShowMergeFieldsHighlight
Gets or sets a value indicating whether merged fields should be highlighted.
Declaration
[Browsable(true)]
public bool ShowMergeFieldsHighlight { get; set; }
Property Value
SpellChecker
Gets or sets the ISpellChecker implementation used when proofing.
Declaration
[Browsable(false)]
public ISpellChecker SpellChecker { get; set; }
Property Value
Text
Declaration
public override string Text { get; set; }
Property Value
Overrides
Users
Gets or sets a collection containing the users' permissions on the current document.
Declaration
[Browsable(false)]
public PermissionInfoCollection Users { get; set; }
Property Value
VerticalScrollBarVisibility
Gets or sets a value representing the vertical scroll bar visibility.
Declaration
[Browsable(true)]
public ScrollBarVisibility VerticalScrollBarVisibility { get; set; }
Property Value
Methods
AcceptAllRevisions()
Accepts all revisions in the current document.
Declaration
public void AcceptAllRevisions()
AcceptRevision(Revision)
Accepts revision.
Declaration
public void AcceptRevision(Revision revision)
Parameters
revision
The revision.
AddTabStop(TabStop)
Adds the provided TabStop at the current position of the document.
AddTabStopRange(IEnumerable<TabStop>)
Adds the provided TabStops at the current position of the document.
Declaration
public void AddTabStopRange(IEnumerable<TabStop> tabStops)
Parameters
tabStops
IEnumerable<TabStop>
ChangeAllFieldsDisplayMode(FieldDisplayMode)
Changes the display mode of all fields in the document.
Declaration
public void ChangeAllFieldsDisplayMode(FieldDisplayMode displayMode)
Parameters
displayMode
The display mode.
ChangeBaselineAlignment(BaselineAlignment)
Changes the baseline alignment of the current run in the document.
Declaration
public void ChangeBaselineAlignment(BaselineAlignment newBaselineAlignment)
Parameters
newBaselineAlignment
The new baseline alignment to be applied.
ChangeBibliographicStyle(BibliographicReferenceStyleBase)
Changes the bibliographic style of all bibliography related fields in the document.
Declaration
public void ChangeBibliographicStyle(BibliographicReferenceStyleBase newBibliographicStyle)
Parameters
newBibliographicStyle
BibliographicReferenceStyleBase
The new bibliographic style.
ChangeDifferentFirstPageHeaderFooter(bool)
Turns on or off the option to have a different header on the first page.
Declaration
public void ChangeDifferentFirstPageHeaderFooter(bool value)
Parameters
value
ChangeDifferentOddAndEvenPagesHeaderFooter(bool)
Turns on or off the option to have different headers and footers on odd and even pages.
Declaration
public void ChangeDifferentOddAndEvenPagesHeaderFooter(bool value)
Parameters
value
ChangeDocumentDefaultTabWidth(double)
Changes the width that a single Tab character takes.
Declaration
public void ChangeDocumentDefaultTabWidth(double tabWidth)
Parameters
tabWidth
ChangeDocumentElementTag(DocumentElement, string)
Changes the Tag property of a specified DocumentElement.
Declaration
public void ChangeDocumentElementTag(DocumentElement element, string tag)
Parameters
element
The DocumentElement.
tag
The new tag value.
ChangeDocumentEndnotesFirstNumber(int)
Changes the starting number of the endnotes of the document.
Declaration
public void ChangeDocumentEndnotesFirstNumber(int firstNumber)
Parameters
firstNumber
ChangeDocumentEndnotesNumberingFormat(ListNumberingFormat)
Changes the list numbering format for the endnotes in the document.
Declaration
public void ChangeDocumentEndnotesNumberingFormat(ListNumberingFormat listNumberingFormat)
Parameters
listNumberingFormat
ChangeDocumentEndnotesNumberingRestartType(NumberingRestartType)
Changes the mode in which endnotes numbers are reset to start from the first number.
Declaration
public void ChangeDocumentEndnotesNumberingRestartType(NumberingRestartType numberingRestartType)
Parameters
numberingRestartType
ChangeDocumentEndnotesPosition(EndnotesPosition)
Changes the location of the endnotes of the document.
Declaration
public void ChangeDocumentEndnotesPosition(EndnotesPosition endnotesPosition)
Parameters
endnotesPosition
ChangeDocumentFootnotesFirstNumber(int)
Changes the starting number of the footnotes of the document.
Declaration
public void ChangeDocumentFootnotesFirstNumber(int firstNumber)
Parameters
firstNumber
ChangeDocumentFootnotesNumberingFormat(ListNumberingFormat)
Changes the list numbering format for the footnotes in the document.
Declaration
public void ChangeDocumentFootnotesNumberingFormat(ListNumberingFormat listNumberingFormat)
Parameters
listNumberingFormat
ChangeDocumentFootnotesNumberingRestartType(NumberingRestartType)
Changes the mode in which footnotes numbers are reset to start from the first number.
Declaration
public void ChangeDocumentFootnotesNumberingRestartType(NumberingRestartType numberingRestartType)
Parameters
numberingRestartType
ChangeDocumentFootnotesPosition(FootnotesPosition)
Changes the location of the footnotes in the document.
Declaration
public void ChangeDocumentFootnotesPosition(FootnotesPosition footnotesPosition)
Parameters
footnotesPosition
ChangeDocumentIsStrictLineBreakingRuleEnabled(bool)
Enables or disabled the Strict line breaking rule.
Declaration
public void ChangeDocumentIsStrictLineBreakingRuleEnabled(bool value)
Parameters
value
ChangeDocumentLineBreakingRuleLanguage(LineBreakingRuleLanguage)
Applies the provided language to be used when calculating line breakings.
Declaration
public void ChangeDocumentLineBreakingRuleLanguage(LineBreakingRuleLanguage lineBreakingRuleLanguage)
Parameters
lineBreakingRuleLanguage
ChangeDocumentNoLineBreaksAfterRule(LineBreakingRule)
Applies the provided line breaking as no line breaking after rule.
Declaration
public void ChangeDocumentNoLineBreaksAfterRule(LineBreakingRule lineBreakingCharacterRule)
Parameters
lineBreakingCharacterRule
ChangeDocumentNoLineBreaksBeforeRule(LineBreakingRule)
Applies the provided line breaking rule as no line breaking before rule.
Declaration
public void ChangeDocumentNoLineBreaksBeforeRule(LineBreakingRule lineBreakingCharacterRule)
Parameters
lineBreakingCharacterRule
ChangeFieldDisplayMode(FieldRangeStart, FieldDisplayMode)
Changes the field display mode.
Declaration
public void ChangeFieldDisplayMode(FieldRangeStart fieldStart, FieldDisplayMode displayMode)
Parameters
fieldStart
The field start.
displayMode
The new display mode.
ChangeFontFamily(FontFamily)
Changes the font family of the current run in the document.
Declaration
public void ChangeFontFamily(FontFamily fontFamily)
Parameters
fontFamily
The new font family to be applied.
ChangeFontSize(double)
Changes the font size of the current run in the document.
Declaration
public void ChangeFontSize(double newFontSize)
Parameters
newFontSize
The new font size to be applied.
ChangeFontStyle(FontStyle)
Changes the font style of the current run in the document.
Declaration
public void ChangeFontStyle(FontStyle fontStyle)
Parameters
fontStyle
The new font style.
ChangeFontStyle(FontStyle)
Changes the font style of the current run in the document.
Declaration
public void ChangeFontStyle(FontStyle fontStyle)
Parameters
fontStyle
The new font style.
ChangeFontWeight(FontWeight)
Changes the font weight of the current run in the document.
Declaration
public void ChangeFontWeight(FontWeight fontWeight)
Parameters
fontWeight
The new font weight.
ChangeImageRotateAngle(ImageInline, double)
Changes the image rotate angle.
Declaration
public void ChangeImageRotateAngle(ImageInline image, double angle)
Parameters
image
The ImageInline.
angle
The new angle.
ChangeImageSize(ImageInline, Size)
Changes the size of the image.
Declaration
public void ChangeImageSize(ImageInline image, Size size)
Parameters
image
The ImageInline.
size
The new size.
ChangeLayoutMode(DocumentLayoutMode)
Changes the layout mode.
Declaration
public void ChangeLayoutMode(DocumentLayoutMode layoutMode)
Parameters
layoutMode
The new layout mode to be applied.
ChangeListStyle(ListStyle)
Changes the ListStyle of the selected paragraphs in the document.
Declaration
public void ChangeListStyle(ListStyle style)
Parameters
style
The style to apply
ChangeParagraphAutomaticSpacingAfter(bool)
Controls whether automatic spacing is applied after the current paragraph.
Declaration
public void ChangeParagraphAutomaticSpacingAfter(bool value)
Parameters
value
True if automatic spacing should be applied, otherwise false.
ChangeParagraphAutomaticSpacingBefore(bool)
Controls whether automatic spacing is applied before the current paragraph.
Declaration
public void ChangeParagraphAutomaticSpacingBefore(bool value)
Parameters
value
True if automatic spacing should be applied, otherwise false.
ChangeParagraphBackground(Color)
Changes the background color of the selected paragraphs in the document.
Declaration
public void ChangeParagraphBackground(Color color)
Parameters
color
The new background color to be applied.
ChangeParagraphFirstLineIndent(double)
Changes the left indent of the current paragraph.
Declaration
public void ChangeParagraphFirstLineIndent(double firstLineIndent)
Parameters
firstLineIndent
The new left indent to be applied.
ChangeParagraphFlowDirection(FlowDirection)
Changes the FlowDirection of the selected paragraphs in the document.
Declaration
public void ChangeParagraphFlowDirection(FlowDirection flowDirection)
Parameters
flowDirection
ChangeParagraphIsLineBreakingRuleEnabled(bool)
Changes a value indicating whether the line breaking rule is enabled.
Declaration
public void ChangeParagraphIsLineBreakingRuleEnabled(bool value)
Parameters
value
True if the rule will be enabled otherwise false.
ChangeParagraphLeftIndent(double)
Changes the left indent of the current paragraph.
Declaration
public void ChangeParagraphLeftIndent(double leftIndent)
Parameters
leftIndent
The new left indent to be applied.
ChangeParagraphLineSpacing(double)
Changes the lines spacing inside the current paragraph.
Declaration
public void ChangeParagraphLineSpacing(double lineSpacing)
Parameters
lineSpacing
The new line spacing to be applied.
ChangeParagraphLineSpacing(double, LineSpacingType)
Changes the line spacing inside the current paragraph.
Declaration
public void ChangeParagraphLineSpacing(double lineSpacing, LineSpacingType lineSpacingType)
Parameters
lineSpacing
The new line spacing to be applied.
lineSpacingType
The type of the line spacing to be applied.
ChangeParagraphLineSpacingType(LineSpacingType)
Changes the line spacing type inside the current paragraph.
Declaration
public void ChangeParagraphLineSpacingType(LineSpacingType lineSpacingType)
Parameters
lineSpacingType
The new line spacing type to be applied.
ChangeParagraphListLevel(int)
Changes the list level the paragraph is currently in.
Declaration
public void ChangeParagraphListLevel(int listLevel)
Parameters
listLevel
The list level to be applied.
ChangeParagraphRightIndent(double)
Changes the right indent of the current paragraph.
Declaration
public void ChangeParagraphRightIndent(double rightIndent)
Parameters
rightIndent
The new right indent to be applied.
ChangeParagraphSpacingAfter(double)
Changes the spacing after the current paragraph.
Declaration
public void ChangeParagraphSpacingAfter(double spacingAfter)
Parameters
spacingAfter
The new spacing to be applied.
ChangeParagraphSpacingBefore(double)
Changes the spacing before the current paragraph.
Declaration
public void ChangeParagraphSpacingBefore(double spacingBefore)
Parameters
spacingBefore
The new spacing to be applied.
ChangeParagraphStyle(StyleDefinition)
Changes the paragraph style of the current paragraph.
Declaration
public void ChangeParagraphStyle(StyleDefinition styleInfo)
Parameters
styleInfo
The new style to be applied.
ChangeSectionActualPageMargin(Padding)
Changes the actual page margin (regarding the page orientation) of the section.
Declaration
public void ChangeSectionActualPageMargin(Padding sectionMargin)
Parameters
sectionMargin
The section margin.
ChangeSectionEndnotesFirstNumber(int)
Changes the starting number of the endnotes of the current section.
Declaration
public void ChangeSectionEndnotesFirstNumber(int firstNumber)
Parameters
firstNumber
ChangeSectionEndnotesNumberingFormat(ListNumberingFormat)
Changes the list numbering format for the endnotes in the current section.
Declaration
public void ChangeSectionEndnotesNumberingFormat(ListNumberingFormat listNumberingFormat)
Parameters
listNumberingFormat
ChangeSectionEndnotesNumberingRestartType(NumberingRestartType)
Changes the mode in which endnotes numbers are reset to start from the first number in the current section.
Declaration
public void ChangeSectionEndnotesNumberingRestartType(NumberingRestartType numberingRestartType)
Parameters
numberingRestartType
ChangeSectionFirstPageNumber(int?)
Changes the first page number of the current section. Set null continue numeration form the previous section.
Declaration
public void ChangeSectionFirstPageNumber(int? firstPageNumber)
Parameters
firstPageNumber
int?
The new first page number value.
ChangeSectionFooterBottomMargin(int)
Changes the bottom margin of the footer of the current section.
Declaration
public void ChangeSectionFooterBottomMargin(int sectionFooterBottomMargin)
Parameters
sectionFooterBottomMargin
Footer bottom margin to be applied.
ChangeSectionFooterLinkToPrevious(Section, HeaderFooterType, bool)
Changes the value indicated whether the a section footer should be linked to the footer of the previous section.
Declaration
public void ChangeSectionFooterLinkToPrevious(Section section, HeaderFooterType footerType, bool value)
Parameters
section
The section.
footerType
Type of the footer.
value
true if the footer should be linked.
ChangeSectionFootnotesFirstNumber(int)
Changes the starting number of the footnotes of the current section.
Declaration
public void ChangeSectionFootnotesFirstNumber(int firstNumber)
Parameters
firstNumber
ChangeSectionFootnotesNumberingFormat(ListNumberingFormat)
Changes the list numbering format for the footnotes in the current section.
Declaration
public void ChangeSectionFootnotesNumberingFormat(ListNumberingFormat listNumberingFormat)
Parameters
listNumberingFormat
ChangeSectionFootnotesNumberingRestartType(NumberingRestartType)
Changes the mode in which footnotes numbers are reset to start from the first number in the current section.
Declaration
public void ChangeSectionFootnotesNumberingRestartType(NumberingRestartType numberingRestartType)
Parameters
numberingRestartType
ChangeSectionHeaderLinkToPrevious(Section, HeaderFooterType, bool)
Changes the value indicated whether the a section header should be linked to the header of the previous section.
Declaration
public void ChangeSectionHeaderLinkToPrevious(Section section, HeaderFooterType headerType, bool value)
Parameters
section
The section.
headerType
Type of the header.
value
true if the header should be linked.
ChangeSectionHeaderTopMargin(int)
Changes the top margin of the header of the current section.
Declaration
public void ChangeSectionHeaderTopMargin(int sectionHeaderTopMargin)
Parameters
sectionHeaderTopMargin
Header top margin to be applied.
ChangeSectionPageMargin(Padding)
Changes the page margin of the current section.
Declaration
public void ChangeSectionPageMargin(Padding sectionMargin)
Parameters
sectionMargin
The new margin to be applied.
ChangeSectionPageOrientation(PageOrientation)
Changes the page orientation of the current section.
Declaration
public void ChangeSectionPageOrientation(PageOrientation sectionPageOrientation)
Parameters
sectionPageOrientation
The new page orientation to be applied.
ChangeSectionPageSize(Size)
Changes the page size of the current section.
Declaration
public void ChangeSectionPageSize(Size size)
Parameters
size
The new page size to be applied.
ChangeSpanStyle(StyleDefinition)
Changes the style of current run in the document.
Declaration
public void ChangeSpanStyle(StyleDefinition styleInfo)
Parameters
styleInfo
The new style to be applied.
ChangeStrikethrough(bool)
Changes the strikethrough of the current run in the document.
Declaration
public void ChangeStrikethrough(bool isStrikethrough)
Parameters
isStrikethrough
The new strikethrough value.
ChangeTableBorders(TableBorders)
Applies the border to the selected tables.
Declaration
public void ChangeTableBorders(TableBorders borders)
Parameters
borders
ChangeTableCellBackground(Color)
Changes the back color of the currently selected cells.
Declaration
public void ChangeTableCellBackground(Color color)
Parameters
color
ChangeTableCellBorders(Border)
Applies the border to the currently selected cells.
Declaration
public void ChangeTableCellBorders(Border border)
Parameters
border
ChangeTableCellBorders(TableCellBorders)
Applies the borders to the currently selected cells.
Declaration
public void ChangeTableCellBorders(TableCellBorders tableCellBorders)
Parameters
tableCellBorders
ChangeTableCellContentAlignment(RadTextAlignment, RadVerticalAlignment)
Applies the content alignment settings to the selected cells.
Declaration
public void ChangeTableCellContentAlignment(RadTextAlignment textAlignment, RadVerticalAlignment verticalAlignment)
Parameters
textAlignment
verticalAlignment
ChangeTableCellHorizontalContentAlignment(RadTextAlignment)
Applies the horizontal alignment to the selected cells.
Declaration
public void ChangeTableCellHorizontalContentAlignment(RadTextAlignment textAlignment)
Parameters
textAlignment
ChangeTableCellPadding(Padding)
Applies the padding to the currently selected cells.
Declaration
public void ChangeTableCellPadding(Padding padding)
Parameters
padding
ChangeTableCellSpacing(double)
Applies the cell spacing to the currently selected tables.
Declaration
public void ChangeTableCellSpacing(double cellSpacing)
Parameters
cellSpacing
ChangeTableCellVerticalContentAlignment(RadVerticalAlignment)
Applies the vertical alignment to the selected cells.
Declaration
public void ChangeTableCellVerticalContentAlignment(RadVerticalAlignment verticalAlignment)
Parameters
verticalAlignment
ChangeTableDefaultCellPadding(Padding)
Changes the default cell padding of the currently selected tables.
Declaration
public void ChangeTableDefaultCellPadding(Padding padding)
Parameters
padding
ChangeTableFlowDirection(FlowDirection)
Changes the flow direction of the current table to the flow direction.
Declaration
public void ChangeTableFlowDirection(FlowDirection flowDirection)
Parameters
flowDirection
ChangeTableGridColumnWidth(Table, int, TableWidthUnit)
Changes the width of the column at the given index.
Declaration
public void ChangeTableGridColumnWidth(Table table, int gridColumnIndex, TableWidthUnit width)
Parameters
table
gridColumnIndex
width
ChangeTableHorizontalAlignment(RadHorizontalAlignment)
Changes the horizontal alignment of the current table.
Declaration
public void ChangeTableHorizontalAlignment(RadHorizontalAlignment alignment)
Parameters
alignment
ChangeTableIndent(double)
Changes the table indentation.
ChangeTableLayoutMode(Table, TableLayoutMode)
Changes the layout mode of the table.
Declaration
public void ChangeTableLayoutMode(Table table, TableLayoutMode tableLayoutMode)
Parameters
table
tableLayoutMode
ChangeTableLook(TableLook)
Applies the table look to the selected tables.
Declaration
public void ChangeTableLook(TableLook tableLook)
Parameters
tableLook
ChangeTablePreferredWidth(TableWidthUnit)
Changes the preferred table width to the provided one.
Declaration
public void ChangeTablePreferredWidth(TableWidthUnit tableWidth)
Parameters
tableWidth
ChangeTableRowHeight(TableRow, double)
Changes the height of the table row.
ChangeTextAlignment(RadTextAlignment)
Changes the text alignment of the current run in the document.
Declaration
public void ChangeTextAlignment(RadTextAlignment alignment)
Parameters
alignment
The new text alignment to be applied.
ChangeTextForeColor(Color)
Changes the text foreground color of the current run in the document.
Declaration
public void ChangeTextForeColor(Color newColor)
Parameters
newColor
The new foreground color to be applied.
ChangeTextHighlightColor(Color)
Changes the text highlight color of the current run in the document.
Declaration
public void ChangeTextHighlightColor(Color newColor)
Parameters
newColor
The new highlight color to be applied.
ChangeUnderlineColor(Color)
Changes the underline color of the current run in the document.
Declaration
public void ChangeUnderlineColor(Color newColor)
Parameters
newColor
The new underline color to be applied.
ChangeUnderlineDecoration(IUnderlineUIDecorationProvider)
Changes the underline decoration of the current run in the document.
Declaration
public void ChangeUnderlineDecoration(IUnderlineUIDecorationProvider decoration)
Parameters
decoration
IUnderlineUIDecorationProvider
The new underline decoration provider to be applied.
ClearAllFormatting()
Clears all of the formatting of the current paragraph and run in the document.
Declaration
public void ClearAllFormatting()
ClearFormatting()
Clears the formatting of the current run in the document.
Declaration
public void ClearFormatting()
ClearTabStops()
Removes all TabStops from the document.
Declaration
public void ClearTabStops()
ContinueListNumbering()
Removes all paragraphs from the current list and continues the first possible list before that paragraph. The paragraph should be in list and should be first in the list, otherwise this method does nothing.
Copy()
Copies currently selected document elements into the clipboard
Declaration
public void Copy()
CreateBehavior()
Creates and returns the input behavior for the RadRichTextEditor control.
Declaration
protected override ComponentInputBehavior CreateBehavior()
Returns
A new instance of RadRichTextEditorComponentInputBehavior.
Overrides
CreateChildItems(RadElement)
Creates the child items for the RadRichTextEditor control.
Declaration
protected override void CreateChildItems(RadElement parent)
Parameters
parent
The parent RadElement to which child items will be added.
Overrides
DecrementFontSize()
Decrements the font size of the current run in the document.
Declaration
public void DecrementFontSize()
DecrementParagraphLeftIndent()
Decrements the left indent of the current paragraph.
Declaration
public void DecrementParagraphLeftIndent()
DecrementParagraphListLevel()
Decrements the list level the paragraph is currently in by 1.
Declaration
public void DecrementParagraphListLevel()
Delete(bool)
Deletes from the document respecting CaretPosition and Selection.
Declaration
public void Delete(bool deletePrevious)
Parameters
deletePrevious
If the selection is empty, indicates whether to delete the character before or after the caret.
DeleteAllComments()
Deletes all comments in the current document.
Declaration
public void DeleteAllComments()
DeleteAnnotationRange(AnnotationRangeStart)
Deletes an annotation range.
Declaration
public void DeleteAnnotationRange(AnnotationRangeStart rangeStart)
Parameters
rangeStart
The start of the range that is to be deleted.
DeleteBookmark(BookmarkRangeStart)
Deletes a bookmark.
Declaration
public void DeleteBookmark(BookmarkRangeStart bookmarkRangeStart)
Parameters
bookmarkRangeStart
The bookmark range start.
DeleteBookmark(string)
Deletes a bookmark.
Declaration
public void DeleteBookmark(string bookmarkName)
Parameters
bookmarkName
Name of the bookmark.
DeleteCodeBlock(CodeAnnotationRangeStart)
Deletes a code block.
Declaration
public void DeleteCodeBlock(CodeAnnotationRangeStart rangeStart)
Parameters
rangeStart
The code range start of the block to delete.
DeleteComment()
Deletes the current comment.
Declaration
public void DeleteComment()
DeleteComment(CommentRangeStart)
Deletes a comment.
Declaration
public void DeleteComment(CommentRangeStart commentRangeStart)
Parameters
commentRangeStart
The comment range start.
DeletePermissionRange(PermissionRangeStart)
Deletes a permission range.
Declaration
public void DeletePermissionRange(PermissionRangeStart permissionRangeStart)
Parameters
permissionRangeStart
The permission range start.
DeleteReadOnlyRange()
Deletes the current read only range.
Declaration
public void DeleteReadOnlyRange()
DeleteReadOnlyRange(ReadOnlyRangeStart)
Deletes the read only range.
Declaration
public void DeleteReadOnlyRange(ReadOnlyRangeStart readOnlyRangeStart)
Parameters
readOnlyRangeStart
The read only range that is to be deleted.
DeleteTable()
Deletes the table currently containing the caret.
Declaration
public void DeleteTable()
DeleteTable(Table)
Deletes the table from the document.
DeleteTableColumn()
Deletes the current column.
Declaration
public void DeleteTableColumn()
DeleteTableRow()
Deletes the current row from the table.
Declaration
public void DeleteTableRow()
DeleteTableRow(TableRow)
Deletes the row from the table.
DisableWatermark()
Removes the currently applied watermark.
Declaration
public void DisableWatermark()
EditListStyleInDialog(ListStyle)
Shows the dialog for editing styles.
Declaration
public void EditListStyleInDialog(ListStyle listStyle)
Parameters
listStyle
FocusFooter()
Focuses the footer of the current page.
Declaration
public void FocusFooter()
FocusHeader()
Focuses the header of the current page.
Declaration
public void FocusHeader()
GetApperanceSettingsForComment(Comment)
Gets the visual settings for the given comment.
Declaration
public CommentAppearanceSettings GetApperanceSettingsForComment(Comment comment)
Parameters
comment
The comment to get visual settings for.
Returns
GetContent(string)
Gets the content in various formats.
GoToNextComment()
Moves current position to the next comment.
Declaration
public void GoToNextComment()
GoToNextEndnote()
Moves current position to the next endnote.
Declaration
public void GoToNextEndnote()
GoToNextFootnote()
Moves current position to the next footnote.
Declaration
public void GoToNextFootnote()
GoToNextRevision()
Moves current position to the next revision.
Declaration
public void GoToNextRevision()
GoToPreviousComment()
Moves current position to the previous comment.
Declaration
public void GoToPreviousComment()
GoToPreviousEndnote()
Moves current position to the previous endnote.
Declaration
public void GoToPreviousEndnote()
GoToPreviousFootnote()
Moves current position to the previous footnote.
Declaration
public void GoToPreviousFootnote()
GoToPreviousRevision()
Moves current position to the previous revision.
Declaration
public void GoToPreviousRevision()
IncrementFontSize()
Increments the font size of the current run in the document.
Declaration
public void IncrementFontSize()
IncrementParagraphLeftIndent()
Increments the left indent of the current paragraph.
Declaration
public void IncrementParagraphLeftIndent()
IncrementParagraphListLevel()
Increments the list level the paragraph is currently in by 1.
Declaration
public void IncrementParagraphListLevel()
Insert(string)
Inserts text into the document at current caret position.
Declaration
public void Insert(string text)
Parameters
text
The text to insert.
Insert(string, DocumentPosition)
Inserts text into the document at the specified position.
Declaration
public void Insert(string text, DocumentPosition insertionPosition)
Parameters
text
The text to insert.
insertionPosition
The position where the text will be inserted.
InsertAnnotationRange(AnnotationRangeStart, AnnotationRangeEnd)
Inserts an annotation range.
Declaration
public void InsertAnnotationRange(AnnotationRangeStart rangeStart, AnnotationRangeEnd rangeEnd)
Parameters
rangeStart
The annotation range start.
rangeEnd
The annotation range end.
InsertBookmark(string)
Inserts a bookmark.
Declaration
public void InsertBookmark(string bookmarkName)
Parameters
bookmarkName
Name of the bookmark.
InsertCaption(CaptionDefinition, string, bool, bool)
Inserts a caption.
Declaration
public void InsertCaption(CaptionDefinition definition, string caption, bool includeLabel, bool insertBelow)
Parameters
definition
The definition.
caption
The caption text to be used.
includeLabel
if set to true the label is included in the caption.
insertBelow
if set to true the caption is inserted after the current selection.
InsertCodeBlock(string, CodeFormattingSettings)
Inserts code block into the document at caret position. If caret position is in code block, replaces the current code block.
Declaration
public void InsertCodeBlock(string code, CodeFormattingSettings settings)
Parameters
code
settings
InsertComment(Comment)
Inserts a comment.
Declaration
public void InsertComment(Comment comment)
Parameters
comment
The comment.
InsertCrossReferenceToBookmark(string, ReferenceContentType, bool)
Inserts a Cross-Reference to a bookmark into the document at current caret position.
Declaration
public void InsertCrossReferenceToBookmark(string bookmarkName, ReferenceContentType contentType, bool insertAsHyperlink)
Parameters
bookmarkName
contentType
insertAsHyperlink
InsertCrossReferenceToCaption(Paragraph, ReferenceContentType, bool)
Inserts a Cross-Reference to a caption into the document at current caret position.
Declaration
public void InsertCrossReferenceToCaption(Paragraph captionParagraph, ReferenceContentType contentType, bool insertAsHyperlink)
Parameters
captionParagraph
contentType
insertAsHyperlink
InsertCrossReferenceToHeading(Paragraph, ReferenceContentType, bool)
Inserts a Cross-Reference to a heading paragraph into the document at current caret position.
Declaration
public void InsertCrossReferenceToHeading(Paragraph headingParagraph, ReferenceContentType contentType, bool insertAsHyperlink)
Parameters
headingParagraph
contentType
insertAsHyperlink
InsertEndnote()
Inserts endnote at the current position.
Declaration
public void InsertEndnote()
InsertEndnote(Note)
Inserts the endnote at the current position.
Declaration
public void InsertEndnote(Note endnote)
Parameters
endnote
The endnote.
InsertField(Field)
Inserts a field into the document at current caret position.
InsertField(Field, FieldDisplayMode)
Inserts a field into the document at current caret position in a specified display mode.
Declaration
public bool InsertField(Field field, FieldDisplayMode displayMode)
Parameters
field
The field.
displayMode
The display mode.
Returns
True if the operation completed successfully
InsertFootnote()
Inserts footnote at the current position.
Declaration
public void InsertFootnote()
InsertFootnote(Note)
Inserts the footnote at the current position.
Declaration
public void InsertFootnote(Note footnote)
Parameters
footnote
The footnote.
InsertFragment(DocumentFragment)
Inserts a document fragment.
Declaration
public void InsertFragment(DocumentFragment documentFragment)
Parameters
documentFragment
The document fragment to insert.
InsertFragment(DocumentFragment, DocumentPosition)
Inserts a fragment at specified position.
Declaration
public void InsertFragment(DocumentFragment documentFragment, DocumentPosition documentPosition)
Parameters
documentFragment
The fragment to insert.
documentPosition
The document position to insert the fragment at.
InsertHyperlink(HyperlinkInfo)
Creates hyperlink form the current selection.
Declaration
public void InsertHyperlink(HyperlinkInfo hyperlinkInfo)
Parameters
hyperlinkInfo
The hyperlink info.
InsertHyperlink(HyperlinkInfo, IEnumerable<Inline>)
Inserts collection of inlines as hyperlink into the document.
Declaration
public void InsertHyperlink(HyperlinkInfo hyperlinkInfo, IEnumerable<Inline> inlines)
Parameters
hyperlinkInfo
The hyperlink info.
inlines
IEnumerable<Inline>
The inlines.
InsertHyperlink(HyperlinkInfo, string)
Inserts hyperlink into the document.
Declaration
public void InsertHyperlink(HyperlinkInfo hyperlinkInfo, string hyperlinkText)
Parameters
hyperlinkInfo
The hyperlink info.
hyperlinkText
The hyperlink text.
InsertImage(Stream, string)
Inserts image inline into the document.
InsertInline(Inline)
Inserts inline element into the document.
Declaration
public void InsertInline(Inline inline)
Parameters
inline
The inline element to insert.
InsertInline(Inline, DocumentPosition)
Inserts inline element into the document.
Declaration
public void InsertInline(Inline inline, DocumentPosition documentPosition)
Parameters
inline
The inline element to insert.
documentPosition
The document position to insert the inline at.
InsertLine(string)
Inserts text and adds new paragraph after it.
InsertLineBreak()
Inserts LineBreak into the document at current caret position.
Declaration
public void InsertLineBreak()
InsertPageBreak()
Inserts PageBreak into the document at current caret position.
Declaration
public void InsertPageBreak()
InsertParagraph()
Inserts a new paragraph.
Declaration
public void InsertParagraph()
InsertPermissionRange(IEnumerable<PermissionRangeInfo>)
Inserts new permission range.
Declaration
public void InsertPermissionRange(IEnumerable<PermissionRangeInfo> permissionInfos)
Parameters
permissionInfos
IEnumerable<PermissionRangeInfo>
The permissions for the new range.
InsertReadOnlyRange()
Inserts a read only range.
Declaration
public void InsertReadOnlyRange()
InsertSectionBreak()
Inserts SectionBreak into the document at current caret position.
Declaration
public void InsertSectionBreak()
InsertSectionBreak(SectionBreakType)
Inserts SectionBreak of the specified type into the document at current caret position.
Declaration
public void InsertSectionBreak(SectionBreakType sectionBreakType)
Parameters
sectionBreakType
The type of the section break.
InsertStructuredDocumentTag()
Inserts a default structured document tag (Content Control). The default type is RichText.
Declaration
public void InsertStructuredDocumentTag()
InsertStructuredDocumentTag(SdtProperties)
Inserts a structured document tag (Content Control) based on the provided properties.
Declaration
public void InsertStructuredDocumentTag(SdtProperties insertProperties)
Parameters
insertProperties
InsertStructuredDocumentTag(SdtType)
Inserts a structured document tag (Content Control) of the given type.
Declaration
public void InsertStructuredDocumentTag(SdtType insertType)
Parameters
insertType
InsertTable(Table)
Inserts the table at the current caret position.
InsertTable(int, int)
Inserts a table with the given number or rows and columns.
InsertTableColumn()
Adds a column to the table.
Declaration
public void InsertTableColumn()
InsertTableColumnToTheLeft()
Adds a column to the left of the current one.
Declaration
public void InsertTableColumnToTheLeft()
InsertTableColumnToTheRight()
Adds a column to the right of the current one.
Declaration
public void InsertTableColumnToTheRight()
InsertTableRow()
Adds a new row at the bottom of the current table.
Declaration
public void InsertTableRow()
InsertTableRowAbove()
Inserts a row above the current row in the table.
Declaration
public void InsertTableRowAbove()
InsertTableRowBelow()
Inserts a row below the current row in the table.
Declaration
public void InsertTableRowBelow()
IsInputKey(Keys)
Determines whether the specified key is an input key or a special key that requires preprocessing.
MailMerge(bool)
Produces a mail merge document for all the mail merge data records.
Declaration
public RadDocument MailMerge(bool startEachRecordOnNewPage = true)
Parameters
startEachRecordOnNewPage
true if each record should start on a new page.
Returns
The document
MailMergeCurrentRecord()
Produces a mail merge document for the current mail merge data record.
Declaration
public RadDocument MailMergeCurrentRecord()
Returns
The document
MergeTableCells()
Merges the currently selected cells.
Declaration
public void MergeTableCells()
MoveSelection(DocumentPosition, bool)
Moves current document selection to a specified position.
Declaration
public void MoveSelection(DocumentPosition position, bool deleteSelection)
Parameters
position
The move position.
deleteSelection
Indicates whether the current selection should be deleted.
OnGotFocus(EventArgs)
Raises the GotFocus event when the control receives focus.
Declaration
protected override void OnGotFocus(EventArgs e)
Parameters
e
An EventArgs that contains the event data.
Overrides
OnHandleCreated(EventArgs)
Raises the HandleCreated event to initialize IME support.
Declaration
protected override void OnHandleCreated(EventArgs e)
Parameters
e
An EventArgs that contains the event data.
Overrides
OnKeyDown(KeyEventArgs)
Declaration
protected override void OnKeyDown(KeyEventArgs e)
Parameters
e
Overrides
OnKeyPress(KeyPressEventArgs)
Raises the KeyPress event to handle character input.
Declaration
protected override void OnKeyPress(KeyPressEventArgs e)
Parameters
e
A KeyPressEventArgs that contains the event data.
Overrides
OnKeyUp(KeyEventArgs)
Raises the KeyUp event to handle key release events.
Declaration
protected override void OnKeyUp(KeyEventArgs e)
Parameters
e
A KeyEventArgs that contains the event data.
Overrides
OnLoad(Size)
Raises the Load event and initializes the control.
Declaration
protected override void OnLoad(Size desiredSize)
Parameters
desiredSize
The desired size of the control.
Overrides
OpenContextMenuOnNextSpellingError()
Opens the context menu on the next word that has a spelling error.
Declaration
public void OpenContextMenuOnNextSpellingError()
Paste()
Pastes from clipboard into the document respecting CaretPosition and Selection
Declaration
public void Paste()
Paste(PasteOption)
Pastes the content of the clipboard into the document using the specified paste option.
Declaration
public void Paste(PasteOption pasteOption)
Parameters
pasteOption
PreviewFirstMailMergeDataRecord()
Previews the first mail merge data record.
PreviewLastMailMergeDataRecord()
Previews the last mail merge data record.
PreviewMailMergeDataRecordAtIndex(int)
Previews the mail merge data record at a specified index.
PreviewNextMailMergeDataRecord()
Previews the next mail merge data record.
PreviewPreviousMailMergeDataRecord()
Previews the previous mail merge data record.
Print()
Directly prints the RadRichTextEditor document to the default printer.
Declaration
public virtual void Print()
Print(bool)
Directly prints the RadRichTextEditor document to the default printer or shows printer settings and then prints the RadRichTextEditor document.
Declaration
public virtual void Print(bool showPrinterSettings)
Parameters
showPrinterSettings
Indicates whether printer settings dialog should be shown.
Print(bool, RadPrintDocument)
Directly prints the RadRichTextEditor document to the default printer or shows printer settings and then prints the RadRichTextEditor document.
Declaration
public virtual void Print(bool showPrinterSettings, RadPrintDocument document)
Parameters
showPrinterSettings
Indicates whether printer settings dialog should be shown.
document
As instance of RadPrintDocument used to control the print process.
PrintPreview()
Shows a RadPrintPreviewDialog for editing the RadRichTextEditor print settings.
Declaration
public virtual void PrintPreview()
PrintPreview(RadPrintDocument)
Shows a RadPrintPreviewDialog for editing the RadRichTextEditor print settings.
Declaration
public virtual void PrintPreview(RadPrintDocument document)
Parameters
document
As instance of RadPrintDocument used to control the print process.
RejectAllRevisions()
Rejects all revisions in the current document.
Declaration
public void RejectAllRevisions()
RejectRevision(Revision)
Rejects revision.
Declaration
public void RejectRevision(Revision revision)
Parameters
revision
The revision.
RemoveHyperlink()
Removes the hyperlink on the caret position.
Declaration
public void RemoveHyperlink()
RemoveTabStop(TabStop)
Removes the provided TabStop from the document.
RemoveTabStopRange(IEnumerable<TabStop>)
Removes the provided TabStops from the document.
Declaration
public void RemoveTabStopRange(IEnumerable<TabStop> tabStops)
Parameters
tabStops
IEnumerable<TabStop>
ReplaceTabStop(TabStop, TabStop)
Replaces the provided tab stop with a new one.
ResizeTableColumn(Table, int, double)
Changes the size of the column in the table to the new width.
RestartListNumbering()
Creates a new list from the current paragraph. The paragraph should be in list, otherwise this method does nothing.
ScaleControl(SizeF, BoundsSpecified)
Scales the control according to the specified scaling factor.
Declaration
protected override void ScaleControl(SizeF factor, BoundsSpecified specified)
Parameters
factor
The scaling factor to apply.
specified
A BoundsSpecified value that specifies which bounds of the control to update.
Overrides
ScrollToNote(Note)
Scrolls the viewport so that a note becomes visible.
SetSelectedComment(CommentRangeStart)
Sets the currently selected comment.
Declaration
public void SetSelectedComment(CommentRangeStart commentStart)
Parameters
commentStart
SetWatermark(DocumentWatermarkSettings)
Applies the watermark settings to the document.
Declaration
public void SetWatermark(DocumentWatermarkSettings watermarkSettings)
Parameters
watermarkSettings
SetWatermark(PredefinedWatermarkType)
Applies one of the predefined watermarks.
Declaration
public void SetWatermark(PredefinedWatermarkType predefinedType)
Parameters
predefinedType
SetWatermarkImage(WatermarkImageSettings)
Applies the image settings watermark to the document.
Declaration
public void SetWatermarkImage(WatermarkImageSettings settings)
Parameters
settings
SetWatermarkText(WatermarkTextSettings)
Applies the text settings watermark to the document.
Declaration
public void SetWatermarkText(WatermarkTextSettings settings)
Parameters
settings
ShowAddNewBibliographicSourceDialog(string, bool, Action<BibliographicSource>)
Shows the Add New Bibliographic Source Dialog.
Declaration
public void ShowAddNewBibliographicSourceDialog(string sourceName = null, bool insertFieldOnClose = true, Action<BibliographicSource> callBackOnClosed = null)
Parameters
sourceName
insertFieldOnClose
callBackOnClosed
ShowChangeEditingPermissionsDialog()
Shows the dialog for changing editing permissions.
Declaration
public void ShowChangeEditingPermissionsDialog()
ShowCodeFormattingDialog()
Shows the dialog for code formatting.
Declaration
public void ShowCodeFormattingDialog()
ShowContextMenuAtDocumentPosition(DocumentPosition)
Opens the RichTextEditor context menu at the given position
Declaration
public void ShowContextMenuAtDocumentPosition(DocumentPosition position)
Parameters
position
The position of the context menu.
ShowContextMenuAtDocumentPosition(Point, DocumentPosition)
Shows the context menu and adjusts the position it needed.
Declaration
public void ShowContextMenuAtDocumentPosition(Point proposedLocation, DocumentPosition position)
Parameters
proposedLocation
The original location where the context menu will open.
position
The position in the document that would help adjust the precise location of the menu.
ShowDefineNewListStyleDialog()
Shows dialog for creating new list style.
Declaration
public void ShowDefineNewListStyleDialog()
ShowEditCustomDictionaryDialog()
Shows the dialog for editing custom spell-checking dictionaries.
Declaration
public void ShowEditCustomDictionaryDialog()
ShowFindReplaceDialog()
Shows the find replace dialog.
Declaration
public virtual void ShowFindReplaceDialog()
ShowFloatingBlockPropertiesDialog()
Shows the floating block properties dialog.
Declaration
public void ShowFloatingBlockPropertiesDialog()
ShowFontPropertiesDialog()
Shows the font properties dialog.
Declaration
public void ShowFontPropertiesDialog()
ShowImageEditorDialog()
Shows the image editor dialog.
Declaration
public void ShowImageEditorDialog()
ShowImageEditorDialog(string)
Shows the image editor dialog.
Declaration
public void ShowImageEditorDialog(string executeToolName)
Parameters
executeToolName
Name of the tool to execute when the dialog is opened.
ShowInsertCaptionDialog()
Shows the insert caption dialog.
Declaration
public void ShowInsertCaptionDialog()
ShowInsertCrossReferenceWindow()
Shows the insert cross reference window.
Declaration
public void ShowInsertCrossReferenceWindow()
ShowInsertDateTimeDialog()
Shows the insert date field dialog.
Declaration
public void ShowInsertDateTimeDialog()
ShowInsertHyperlinkDialog()
Shows the insert hyperlink dialog.
Declaration
public void ShowInsertHyperlinkDialog()
ShowInsertSymbolWindow()
Show the insert symbol dialog.
Declaration
public void ShowInsertSymbolWindow()
ShowInsertTableDialog()
Shows the insert table dialog.
Declaration
public void ShowInsertTableDialog()
ShowInsertTableOfContentsDialog()
Shows the insert Table of Contents window.
Declaration
public void ShowInsertTableOfContentsDialog()
ShowManageBibliographicSourcesDialog()
Shows the Manage Bibliographic Sources Dialog.
Declaration
public void ShowManageBibliographicSourcesDialog()
ShowManageBookmarksDialog()
Shows the dialog for managing bookmarks.
Declaration
public void ShowManageBookmarksDialog()
ShowManageStylesDialog()
Shows the dialog for managing styles.
Declaration
public void ShowManageStylesDialog()
ShowParagraphPropertiesDialog()
Shows the paragraph properties dialog.
Declaration
public void ShowParagraphPropertiesDialog()
ShowProtectDocumentDialog()
Shows the dialog for enforcing document protection.
Declaration
public void ShowProtectDocumentDialog()
ShowSetNumberingValueDialog()
Shows the Set Numbering Value Dialog.
Declaration
public void ShowSetNumberingValueDialog()
ShowSpellCheckingDialog()
Shows the spell checking dialog.
Declaration
public void ShowSpellCheckingDialog()
ShowStyleFormattingPropertiesDialog()
Shows the dialog for adding new style.
Declaration
public void ShowStyleFormattingPropertiesDialog()
ShowStyleFormattingPropertiesDialog(StyleDefinition)
Shows the dialog for modifying style formatting.
Declaration
public void ShowStyleFormattingPropertiesDialog(StyleDefinition styleDefinition)
Parameters
styleDefinition
ShowStyleFormattingPropertiesDialog(StyleFormattingPropertiesDialogSettings)
Shows the style formatting properties dialog.
Declaration
public void ShowStyleFormattingPropertiesDialog(StyleFormattingPropertiesDialogSettings settings)
Parameters
settings
StyleFormattingPropertiesDialogSettings
The settings.
ShowTabStopsPropertiesDialog()
Shows the dialog for editing tab stops.
Declaration
public void ShowTabStopsPropertiesDialog()
ShowTableBordersDialog()
Shows the table borders dialog.
Declaration
public void ShowTableBordersDialog()
ShowTablePropertiesDialog()
Shows the table properties dialog.
Declaration
public void ShowTablePropertiesDialog()
ShowUnprotectDocumentDialog()
Shows the dialog for removing document protection.
Declaration
public void ShowUnprotectDocumentDialog()
ShowWatermarkSettingsDialog()
Shows the watermark settings dialog.
Declaration
public void ShowWatermarkSettingsDialog()
SplitAnnotationRange(AnnotationRangeStart)
Splits an annotation range at the caret position.
Declaration
public void SplitAnnotationRange(AnnotationRangeStart rangeStart)
Parameters
rangeStart
The start of the range that is to be split.
SplitAnnotationRange(AnnotationRangeStart, DocumentPosition)
Splits an annotation range at the specified position.
Declaration
public void SplitAnnotationRange(AnnotationRangeStart rangeStart, DocumentPosition position)
Parameters
rangeStart
The start of the range that is to be split.
position
The position where the range is to be split.
ToggleBold()
Toggles the bold state of the current run in the document.
Declaration
public void ToggleBold()
ToggleBookmarks()
Toggles the visibility of the bookmarks in the document.
Declaration
public void ToggleBookmarks()
ToggleComments()
Toggles the visibility of the comments in the document.
Declaration
public void ToggleComments()
ToggleDifferentFirstPageHeaderFooter()
Turns on or off the option to have a different header on the first page.
Declaration
public void ToggleDifferentFirstPageHeaderFooter()
ToggleDifferentOddAndEvenPagesHeaderFooter()
Turns on or off the option to have different headers and footers on odd and even pages.
Declaration
public void ToggleDifferentOddAndEvenPagesHeaderFooter()
ToggleFieldCodes(FieldRangeStart)
Toggles the display mode of a field.
Declaration
public void ToggleFieldCodes(FieldRangeStart fieldStart)
Parameters
fieldStart
The field start.
ToggleFormattingSymbols()
Toggles the visibility of the formatting symbols in the document.
Declaration
public void ToggleFormattingSymbols()
ToggleHeaderFooterEditingMode()
Toggles the headers/footers editing mode.
Declaration
public void ToggleHeaderFooterEditingMode()
ToggleItalic()
Toggles the italic state of the current run in the document.
Declaration
public void ToggleItalic()
ToggleMergeFieldsHighlight()
Turns on or off the highlighting of merge fields.
Declaration
public void ToggleMergeFieldsHighlight()
ToggleStrikethrough()
Toggles the subscript state of the current run in the document.
Declaration
public void ToggleStrikethrough()
ToggleSubscript()
Toggles the subscript state of the current run in the document.
Declaration
public void ToggleSubscript()
ToggleSuperscript()
Changes the superscript state of the current run in the document.
Declaration
public void ToggleSuperscript()
ToggleUnderline()
Toggles the underline state of the current run in the document.
Declaration
public void ToggleUnderline()
UnmergeTableCells()
Unmerges the currently selected cells.
Declaration
public void UnmergeTableCells()
UpdateAllCaptions(CaptionDefinition)
Updates all captions related to caption definition.
Declaration
public void UpdateAllCaptions(CaptionDefinition captionDefinition)
Parameters
captionDefinition
The caption definition.
UpdateAllFields()
Updates all fields in the document.
Declaration
public void UpdateAllFields()
UpdateAllFields(FieldDisplayMode)
Updates all fields and displays them in the specified display mode.
Declaration
public void UpdateAllFields(FieldDisplayMode displayMode)
Parameters
displayMode
The display mode.
UpdateEditorLayout()
Forces the control to update its layout and UI;
Declaration
public void UpdateEditorLayout()
UpdateEditorLayout(bool)
Forces the control to update its layout and UI.
Declaration
public void UpdateEditorLayout(bool async)
Parameters
async
False to execute the update immediately. Otherwise it will be executed with slight delay using Dispatcher Timer for performance reasons.
UpdateField(FieldRangeStart)
Updates a field.
Declaration
public void UpdateField(FieldRangeStart fieldStart)
Parameters
fieldStart
The field start.
UpdateFooter(Section, HeaderFooterType, Footer)
Updates the footer for a section.
Declaration
public void UpdateFooter(Section section, HeaderFooterType footerType, Footer footer)
Parameters
section
The section of the footer.
footerType
Type of the footer.
footer
The footer.
UpdateHeader(Section, HeaderFooterType, Header)
Updates the header for a section.
Declaration
public void UpdateHeader(Section section, HeaderFooterType headerType, Header header)
Parameters
section
The section of the header.
headerType
Type of the header.
header
The header.
WndProc(ref Message)
Processes Windows messages, handling IME character input specially.
Declaration
protected override void WndProc(ref Message m)
Parameters
m
The Windows Message to process.
Overrides
Events
ActiveDocumentEditorChanged
Occurs when active document editor changes.
Declaration
public event EventHandler<ActiveDocumentEditorChangedEventArgs> ActiveDocumentEditorChanged
Event Value
BeforeOpenFile
Occurs before a file is opened, before the open file dialog is shown.
Declaration
public event EventHandler<OpenFileDialogEventArgs> BeforeOpenFile
Event Value
Remarks
Subscribe to this event to customize the OpenFileDialog properties (like Filter, InitialDirectory, etc.) before it is displayed to the user. Handlers can also cancel the open file operation by setting the Cancel property of the event arguments to true.
BeforeSaveFile
Occurs before the file is saved, before the save file dialog is shown.
Declaration
public event EventHandler<SaveFileDialogEventArgs> BeforeSaveFile
Event Value
Remarks
Subscribe to this event to customize the SaveFileDialog properties (like Filter, InitialDirectory, etc.) before it is displayed to the user. Handlers can also cancel the open file operation by setting the Cancel property of the event arguments to true.
CommandError
Occurs on error while executing command.
Declaration
public event EventHandler<CommandErrorEventArgs> CommandError
Event Value
CommandExecuted
Occurs after the execution of RichTextBoxCommandBase.
Declaration
public event EventHandler<CommandExecutedEventArgs> CommandExecuted
Event Value
CommandExecuting
Occurs before the execution of RichTextBoxCommandBase.
Declaration
public event EventHandler<CommandExecutingEventArgs> CommandExecuting
Event Value
CommentShowing
Occurs when showing comment.
Declaration
public event EventHandler<CommentShowingEventArgs> CommentShowing
Event Value
CurrentEditingStyleChanged
Occurs when the current editing style has changed.
Declaration
public event EventHandler CurrentEditingStyleChanged
Event Value
CurrentParagraphStyleChanged
Occurs when the current paragraph's style has changed.
Declaration
public event EventHandler CurrentParagraphStyleChanged
Event Value
CurrentSpanStyleChanged
Occurs when the current span's style has changed.
Declaration
public event EventHandler CurrentSpanStyleChanged
Event Value
CurrentVisiblePageChanged
Occurs when the CurrentPage property value has changed.
Declaration
public event EventHandler CurrentVisiblePageChanged
Event Value
DocumentArranged
Occurs when the current document has been arranged.
DocumentChanged
Occurs when the current document has changed.
DocumentChanging
Occurs when the current document is changing.
DocumentContentChanged
Occurs when the content of the current document has changed.
Declaration
public event EventHandler DocumentContentChanged
Event Value
DocumentLayoutModeChanged
Occurs when the layout mode of the current document has changed.
Declaration
public event EventHandler DocumentLayoutModeChanged
Event Value
DocumentPresentationChanged
Occurs when document presentation is changed.
Declaration
public event EventHandler<PresentationChangedEventArgs> DocumentPresentationChanged
Event Value
HyperlinkClicked
Occurs when the users clicks on a hyperlink in the current document.
Declaration
public event EventHandler<HyperlinkClickedEventArgs> HyperlinkClicked
Event Value
IsReadOnlyChanged
Occurs when IsReadOnly property changes.
Loaded
Occurs when the control is loaded and fully initialized.
MergeFieldToStringConverting
Occurs when MergeField is going to calculate its value. If MergeFieldToStringConvertingEventArgs.ConvertedValue is set it becomes a result string value.
Declaration
public event EventHandler<MergeFieldToStringConvertingEventArgs> MergeFieldToStringConverting
Event Value
ProtectionStateChanged
Occurs when the current protection state has changed.
Declaration
public event EventHandler ProtectionStateChanged
Event Value
ProviderUILayerInitialized
Occurs when the child elements of an UI layer have been initialized and added to its container.
Declaration
public event EventHandler<ProviderUILayerInitilizedEventArgs> ProviderUILayerInitialized
Event Value
ScaleFactorChanged
Occurs when the ScaleFactor property value has changed.
SelectedLayoutBoxChanged
Occurs when currently selected layout box has changed.
Declaration
public event EventHandler<SelectedLayoutBoxChangedEventArgs> SelectedLayoutBoxChanged
Event Value
SelectionChanged
Occurs when selection is changed.
StreamFromUriResolving
Occurs when resolving a stream from a URI reference.
Declaration
public event EventHandler<StreamFromUriResolvingEventArgs> StreamFromUriResolving
Event Value
UntrackableCommandExecuting
Occurs when executing command that does not support track changes and track changes are enabled.
Declaration
public event EventHandler<UntrackableCommandExecutingEventArgs> UntrackableCommandExecuting
Event Value
UserInfoChanged
Occurs when the current user info has changed.