New to Telerik UI for WinFormsStart a free 30-day trial

Defines members for a non-visual editor for RadDocument, which supports history and preserves the validity of the underlying document model.

Definition

Namespace:Telerik.WinForms.Documents.Model

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public interface IDocumentEditor

Derived Classes: RadDocumentEditorRadRichTextBox

Properties

Gets the current document.

C#
RadDocument Document { get; }

Methods

Accepts all revisions in the document.

C#
void AcceptAllRevisions()

Accepts a revision.

C#
void AcceptRevision(Revision revision)
Parameters:revisionRevision

The revision.

Adds a tab stop to the current paragraph.

C#
void AddTabStop(TabStop tabStop)
Parameters:tabStopTabStop

The tab stop.

Adds a tab stop range to the current paragraph.

C#
void AddTabStopRange(IEnumerable<TabStop> tabStops)
Parameters:tabStopsIEnumerable<TabStop>

The tab stop collection.

Begins a new group of actions which will appear as a single item in the document history.

C#
void BeginUndoGroup()

Cancels the currently started undo-able group, started with BeginUndoGroup() and undoes the actions executed since the starting of the group.

C#
void CancelUndoGroup()

Changes the display mode of all fields in the document.

C#
void ChangeAllFieldsDisplayMode(FieldDisplayMode displayMode)
Parameters:displayModeFieldDisplayMode

The display mode which will be used for the fields.

Changes the baseline alignment of the selected content.

C#
void ChangeBaselineAlignment(BaselineAlignment baselineAlignment)
Parameters:baselineAlignmentBaselineAlignment

The baseline alignment to be applied.

Changes the bibliographic style of all bibliography related fields in the document.

C#
void ChangeBibliographicStyle(BibliographicReferenceStyleBase style)
Parameters:styleBibliographicReferenceStyleBase

The new bibliographic style.

Sets a value determining whether the headers and footers of the first page in the selected sections are different than the ones of the other pages.

C#
void ChangeDifferentFirstPageHeaderFooter(bool value)
Parameters:valuebool

If set to true, the header and footer of the first page will be different than the rest of the pages in the section.

Changes the value determining whether the sections should have different odd and even pages header/footer.

C#
void ChangeDifferentOddAndEvenPagesHeaderFooter(bool value)
Parameters:valuebool

true, if the even and odd page header/footer should differ.

Changes default tab stop width for the document.

C#
void ChangeDocumentDefaultTabWidth(double tabWidth)
Parameters:tabWidthdouble

Width of the tab.

Changes the Tag property of a specified DocumentElement.

C#
void ChangeDocumentElementTag(DocumentElement element, string tag)
Parameters:elementDocumentElement

The DocumentElement.

tagstring

The new tag value.

Changes the first number of the endnotes in the document.

C#
void ChangeDocumentEndnotesFirstNumber(int firstNumber)
Parameters:firstNumberint

The first number.

Changes the numbering format of the endnotes in the document.

C#
void ChangeDocumentEndnotesNumberingFormat(ListNumberingFormat numberingFormat)
Parameters:numberingFormatListNumberingFormat

The numbering format.

Changes the type of numbering restart of the endnotes in the document.

C#
void ChangeDocumentEndnotesNumberingRestartType(NumberingRestartType numberingRestartType)
Parameters:numberingRestartTypeNumberingRestartType

The type of restart for the numbering.

Changes the position of the endnotes in the document.

C#
void ChangeDocumentEndnotesPosition(EndnotesPosition endnotesPosition)
Parameters:endnotesPositionEndnotesPosition

The position.

Changes the first number of the footnotes in the document.

C#
void ChangeDocumentFootnotesFirstNumber(int firstNumber)
Parameters:firstNumberint

The first number.

Changes the numbering format of the footnotes in the document.

C#
void ChangeDocumentFootnotesNumberingFormat(ListNumberingFormat numberingFormat)
Parameters:numberingFormatListNumberingFormat

The numbering format.

Changes the type of numbering restart of the endnotes in the document.

C#
void ChangeDocumentFootnotesNumberingRestartType(NumberingRestartType numberingRestartType)
Parameters:numberingRestartTypeNumberingRestartType

The type of restart for the numbering.

Changes the position of the footnotes in the document.

C#
void ChangeDocumentFootnotesPosition(FootnotesPosition footnotesPosition)
Parameters:footnotesPositionFootnotesPosition

The footnotes position.

Sets a value determining whether the strict line breaking rule will be applied to Japanese text in this document.

C#
void ChangeDocumentIsStrictLineBreakingRuleEnabled(bool value)
Parameters:valuebool

if set to true, the strict line breaking rule will be applied.

Sets the language whose rules should be used for line breaking in the paragraphs.

C#
void ChangeDocumentLineBreakingRuleLanguage(LineBreakingRuleLanguage lineBreakingRuleLanguage)
Parameters:lineBreakingRuleLanguageLineBreakingRuleLanguage

The line breaking rule language.

Sets a rule determining which characters cannot end a line in East-Asian languages.

C#
void ChangeDocumentNoLineBreaksAfterRule(LineBreakingRule lineBreakingCharacterRule)
Parameters:lineBreakingCharacterRuleLineBreakingRule

The line breaking character rule.

Sets a rule determining which characters cannot start a line in East-Asian languages.

C#
void ChangeDocumentNoLineBreaksBeforeRule(LineBreakingRule lineBreakingCharacterRule)
Parameters:lineBreakingCharacterRuleLineBreakingRule

The rule.

Changes the display mode of a field.

C#
void ChangeFieldDisplayMode(FieldRangeStart fieldStart, FieldDisplayMode displayMode)
Parameters:fieldStartFieldRangeStart

The field start.

displayModeFieldDisplayMode

The new display mode.

Changes the font family of the selected content.

C#
void ChangeFontFamily(FontFamily fontFamily)
Parameters:fontFamilyFontFamily

The font family to be applied.

Changes the size of the font of the selected content.

C#
void ChangeFontSize(double fontSize)
Parameters:fontSizedouble

Size of the font.

Changes the font style of the selected content.

C#
void ChangeFontStyle(FontStyle fontStyle)
Parameters:fontStyleFontStyle

The font style.

Changes the font weight of the selected content. If selection is not present, the current editing style is updated.

C#
void ChangeFontWeight(FontWeight fontWeight)
Parameters:fontWeightFontWeight

The font weight.

Changes the fore color of the selected content.

C#
void ChangeForeColor(Color color)
Parameters:colorColor

The color.

Changes the highlight color of the selected content.

C#
void ChangeHighlightColor(Color color)
Parameters:colorColor

The color.

Changes the rotate angle of an image.

C#
void ChangeImageRotateAngle(ImageInline image, double angle)
Parameters:imageImageInline

The ImageInline.

angledouble

The new angle.

Changes the size of an image.

C#
void ChangeImageSize(ImageInline image, Size size)
Parameters:imageImageInline

The ImageInline which is modified.

sizeSize

The new size.

Changes the restart type of line numberings for the selected sections.

C#
void ChangeLineNumberingRestartType(LineNumberingRestartType restartType)
Parameters:restartTypeLineNumberingRestartType

The line numbering restart type.

Changes the automatic spacing after of the selected paragraphs.

C#
void ChangeParagraphAutomaticSpacingAfter(bool value)
Parameters:valuebool

If set to true, the automatic spacing after will be enabled.

Changes the automatic spacing before of the selected paragraphs.

C#
void ChangeParagraphAutomaticSpacingBefore(bool value)
Parameters:valuebool

If set to true, the automatic spacing before will be enabled.

Changes the background of the selected paragraphs.

C#
void ChangeParagraphBackground(Color color)
Parameters:colorColor

The color.

Changes the first line indent of the selected paragraphs.

C#
void ChangeParagraphFirstLineIndent(double firstLineIndent)
Parameters:firstLineIndentdouble

The first line indent.

Changes the flow direction of the selected paragraphs.

C#
void ChangeParagraphFlowDirection(FlowDirection flowDirection)
Parameters:flowDirectionFlowDirection

The flow direction.

Changes the IsLineBreakingRuleEnabled property. This property indicates whether East Asian typography rules will be applied to determine which characters may begin and end each line.

C#
void ChangeParagraphIsLineBreakingRuleEnabled(bool value)
Parameters:valuebool

If set to true, East Asian typography rules will be applied to determine which characters may begin and end each line.

Changes the left indent of the selected paragraphs.

C#
void ChangeParagraphLeftIndent(double leftIndent)
Parameters:leftIndentdouble

The left indent.

Changes the line spacing of the selected paragraphs.

C#
void ChangeParagraphLineSpacing(double lineSpacing, LineSpacingType lineSpacingType)
Parameters:lineSpacingdouble

The line spacing.

lineSpacingTypeLineSpacingType

Type of the line spacing.

Changes the line spacing of the selected paragraphs.

C#
void ChangeParagraphLineSpacing(double lineSpacing)
Parameters:lineSpacingdouble

The line spacing.

Changes the type of the line spacing of the selected paragraphs.

C#
void ChangeParagraphLineSpacingType(LineSpacingType lineSpacingType)
Parameters:lineSpacingTypeLineSpacingType

Type of the line spacing.

Changes the list level of the selected paragraphs.

C#
void ChangeParagraphListLevel(int listLevel)
Parameters:listLevelint

The list level.

Changes the paragraph list style of the selected paragraphs.

C#
void ChangeParagraphListStyle(ListStyle style)
Parameters:styleListStyle

The style.

Changes the right indent of the selected paragraphs.

C#
void ChangeParagraphRightIndent(double rightIndent)
Parameters:rightIndentdouble

The right indent.

Changes the spacing after of the selected paragraphs.

C#
void ChangeParagraphSpacingAfter(double spacingAfter)
Parameters:spacingAfterdouble

The spacing after.

Changes the spacing before of the selected paragraphs.

C#
void ChangeParagraphSpacingBefore(double spacingBefore)
Parameters:spacingBeforedouble

The spacing before.

Changes the paragraph style of the selected content.

C#
void ChangeParagraphStyle(StyleDefinition styleInfo)
Parameters:styleInfoStyleDefinition

The style information.

Changes the text alignment of the selected paragraphs.

C#
void ChangeParagraphTextAlignment(RadTextAlignment alignment)
Parameters:alignmentRadTextAlignment

The alignment.

Changes the page margin of the selected sections respecting their current orientation.

C#
void ChangeSectionActualPageMargin(Padding sectionMargin)
Parameters:sectionMarginPadding

The margin.

Changes the section columns for the selected sections.

C#
void ChangeSectionColumns(SectionColumnCollection sectionColumns)
Parameters:sectionColumnsSectionColumnCollection

The section columns.

Changes the section columns for a given collection of Section elements.

C#
void ChangeSectionColumns(SectionColumnsLayout sectionColumnsLayout)
Parameters:sectionColumnsLayoutSectionColumnsLayout

The section columns layout.

Changes the first number of the endnotes in the selected sections.

C#
void ChangeSectionEndnotesFirstNumber(int firstNumber)
Parameters:firstNumberint

The first number.

Changes the numbering format of the endnotes in the selected sections.

C#
void ChangeSectionEndnotesNumberingFormat(ListNumberingFormat numberingFormat)
Parameters:numberingFormatListNumberingFormat

The numbering format.

Changes the type of numbering restart of the endnotes in the selected sections.

C#
void ChangeSectionEndnotesNumberingRestartType(NumberingRestartType numberingRestartType)
Parameters:numberingRestartTypeNumberingRestartType

The type of restart for the numbering.

Changes the first page number of the selected sections.

C#
void ChangeSectionFirstPageNumber(int? firstPageNumber)
Parameters:firstPageNumberint?

The first page number.

Changes the section footer.

C#
void ChangeSectionFooter(Section section, HeaderFooterType footerType, Footer footer)
Parameters:sectionSection

The section.

footerTypeHeaderFooterType

Type of the footer.

footerFooter

The footer.

Changes the footer bottom margin of the selected sections.

C#
void ChangeSectionFooterBottomMargin(int sectionFooterBottomMargin)
Parameters:sectionFooterBottomMarginint

The section footer bottom margin.

Changes the value indicating whether the section footer should be linked to the footer of the previous section.

C#
void ChangeSectionFooterLinkToPrevious(Section section, HeaderFooterType footerType, bool value)
Parameters:sectionSection

The section.

footerTypeHeaderFooterType

Type of the footer.

valuebool

true if the footer should be linked.

Changes the first number of the footnotes in the selected sections.

C#
void ChangeSectionFootnotesFirstNumber(int firstNumber)
Parameters:firstNumberint

The first number.

Changes the numbering format of the footnotes in the selected sections.

C#
void ChangeSectionFootnotesNumberingFormat(ListNumberingFormat numberingFormat)
Parameters:numberingFormatListNumberingFormat

The numbering format.

Changes the type of numbering restart of the footnotes in the selected sections.

C#
void ChangeSectionFootnotesNumberingRestartType(NumberingRestartType numberingRestartType)
Parameters:numberingRestartTypeNumberingRestartType

The type of restart for the numbering.

Changes the section header.

C#
void ChangeSectionHeader(Section section, HeaderFooterType headerType, Header header)
Parameters:sectionSection

The section.

headerTypeHeaderFooterType

Type of the header.

headerHeader

The header.

Changes the value indicating whether the section header should be linked to the header of the previous section.

C#
void ChangeSectionHeaderLinkToPrevious(Section section, HeaderFooterType headerType, bool value)
Parameters:sectionSection

The section.

headerTypeHeaderFooterType

Type of the header.

valuebool

true if the header should be linked.

Changes the header top margin of the selected sections.

C#
void ChangeSectionHeaderTopMargin(int sectionHeaderTopMargin)
Parameters:sectionHeaderTopMarginint

The section header top margin.

Changes the line numbering for the selected sections.

C#
void ChangeSectionLineNumbering(LineNumbering lineNumbering)
Parameters:lineNumberingLineNumbering

The line numbering.

Changes the page margin of the selected sections.

C#
void ChangeSectionPageMargin(Padding sectionMargin)
Parameters:sectionMarginPadding

The margin.

Changes the page orientation of the selected sections.

C#
void ChangeSectionPageOrientation(PageOrientation sectionPageOrientation)
Parameters:sectionPageOrientationPageOrientation

The page orientation.

Changes the page size of the selected sections.

C#
void ChangeSectionPageSize(Size newSize)
Parameters:newSizeSize

The new size. You can use the PaperTypes enumeration to get the desired size from the predefined values.

Changes the span style of the selected content.

C#
void ChangeSpanStyle(StyleDefinition styleInfo)
Parameters:styleInfoStyleDefinition

The style information.

Changes the strike-through of the selected content.

C#
void ChangeStrikethrough(bool isStrikethrough)
Parameters:isStrikethroughbool

If set to true, a strike-through will be applied to the selected content.

Applies style with a given name to the selected elements in the document.

C#
void ChangeStyleName(string styleName, bool useLinkedStyle)
Parameters:styleNamestring

Name of the style.

useLinkedStylebool

If true, the linked style may be used depending on the selection.

Applies style with a given name to the selected elements in the document.

C#
void ChangeStyleName(string styleName)
Parameters:styleNamestring

Name of the style to be applied.

Changes the borders of the selected tables.

C#
void ChangeTableBorders(TableBorders tableBorders)
Parameters:tableBordersTableBorders

The table borders.

Changes the background of the selected table cells.

C#
void ChangeTableCellBackground(Color color)
Parameters:colorColor

The color.

Changes the borders of the selected table cells.

C#
void ChangeTableCellBorders(Border border)
Parameters:borderBorder

A Border instance which will be applied on all borders of the cell.

Changes the borders of the selected table cells.

C#
void ChangeTableCellBorders(TableCellBorders tableCellBorders)
Parameters:tableCellBordersTableCellBorders

The border which will be used for all table cell borders.

Changes the content alignment of the selected table cells.

C#
void ChangeTableCellContentAlignment(RadTextAlignment textAlignment, RadVerticalAlignment verticalAlignment)
Parameters:textAlignmentRadTextAlignment

The text alignment.

verticalAlignmentRadVerticalAlignment

The vertical alignment.

Changes the horizontal content alignment of the selected table cells.

C#
void ChangeTableCellHorizontalContentAlignment(RadTextAlignment textAlignment)
Parameters:textAlignmentRadTextAlignment

The alignment.

Changes the padding of the selected table cells.

C#
void ChangeTableCellPadding(Padding padding)
Parameters:paddingPadding

The padding.

Changes the cell spacing of the selected tables.

C#
void ChangeTableCellSpacing(double cellSpacing)
Parameters:cellSpacingdouble

The cell spacing.

Changes the vertical content alignment of the selected table cells.

C#
void ChangeTableCellVerticalContentAlignment(RadVerticalAlignment verticalAlignment)
Parameters:verticalAlignmentRadVerticalAlignment

The alignment.

Changes the default cell padding of the selected tables.

C#
void ChangeTableDefaultCellPadding(Padding padding)
Parameters:paddingPadding

The padding which will be used as a default value.

Changes the flow direction of the selected tables.

C#
void ChangeTableFlowDirection(FlowDirection flowDirection)
Parameters:flowDirectionFlowDirection

The flow direction.

Changes the width of a table column.

C#
void ChangeTableGridColumnWidth(Table table, int columnIndex, TableWidthUnit width)
Parameters:tableTable

The table.

columnIndexint

The index of the column.

widthTableWidthUnit

The new value for the column width.

Changes the horizontal alignment of the selected tables.

C#
void ChangeTableHorizontalAlignment(RadHorizontalAlignment alignment)
Parameters:alignmentRadHorizontalAlignment

The alignment.

Changes the indent of the selected tables.

C#
void ChangeTableIndent(double indent)
Parameters:indentdouble

The indent.

Changes the layout mode of the selected tables.

C#
void ChangeTableLayoutMode(Table table, TableLayoutMode tableLayoutMode)
Parameters:tableTable

The table.

tableLayoutModeTableLayoutMode

The table layout mode.

Changes the look of the selected tables.

The look of a table defines the components of the conditional formatting which will be applied to it.

C#
void ChangeTableLook(TableLook tableLook)
Parameters:tableLookTableLook

The table look.

Changes the preferred width of the selected tables.

C#
void ChangeTablePreferredWidth(TableWidthUnit tableWidth)
Parameters:tableWidthTableWidthUnit

Width of the table.

Changes the height of a table row.

C#
void ChangeTableRowHeight(TableRow tableRow, double rowHeight)
Parameters:tableRowTableRow

The table row.

rowHeightdouble

The height.

Depending on the current value, enables or disables the repetition of a table row on every page.

C#
void ChangeTableRowRepeatOnEveryPage(TableRow tableRow)
Parameters:tableRowTableRow

The table row.

Changes the underline color of the selected content.

C#
void ChangeUnderlineColor(Color color)
Parameters:colorColor

The color.

Changes the underline decoration of the selected content.

C#
void ChangeUnderlineDecoration(IUnderlineUIDecorationProvider decoration)
Parameters:decorationIUnderlineUIDecorationProvider

The value.

Clears all the formatting (character and paragraph) from the selected content.

C#
void ClearAllFormatting()

Clears the character formatting of the selected content.

C#
void ClearFormatting()

Clears the tab stops inside the selected paragraphs.

C#
void ClearTabStops()

Removes all paragraphs from the current list and continues the first possible list before that paragraph. The paragraph must be in a list and should be first in the list, otherwise this method does nothing.

C#
bool ContinueListNumbering()
Returns:

bool

A boolean value indicating whether the operation completed successfully.

Copies the currently selected document elements into the clipboard.

C#
void Copy()

Copies the formatting of the current selection.

C#
bool CopyFormatting()
Returns:

bool

A value indicating whether the copy was successful.

Cuts the currently selected document elements into the clipboard.

C#
void Cut()

Decrements the size of the font of the selected content with 2 points.

C#
void DecrementFontSize()

Decrements the left indent of the selected paragraphs.

C#
void DecrementParagraphLeftIndent()

Deletes content from the document. If the Selection is not empty, deletes the selected content. Otherwise, deletes the character next to the CaretPosition.

C#
bool Delete(bool deletePrevious)
Parameters:deletePreviousbool

If the selection is empty, indicates whether to delete the character before or after the caret.

Returns:

bool

Deletes all comments in the document.

C#
void DeleteAllComments()

Deletes an annotation range.

C#
void DeleteAnnotationRange(AnnotationRangeStart rangeStart)
Parameters:rangeStartAnnotationRangeStart

The start of the range that will be deleted.

Deletes a bookmark.

C#
void DeleteBookmark(BookmarkRangeStart bookmarkRangeStart)
Parameters:bookmarkRangeStartBookmarkRangeStart

The bookmark range start.

Deletes a bookmark.

C#
void DeleteBookmark(string bookmarkName)
Parameters:bookmarkNamestring

Name of the bookmark.

Deletes a code block.

C#
void DeleteCodeBlock(CodeAnnotationRangeStart rangeStart)
Parameters:rangeStartCodeAnnotationRangeStart

The CodeAnnotationRangeStart of the block to delete.

Deletes the current comment.

C#
void DeleteComment()

Deletes a comment.

C#
void DeleteComment(CommentRangeStart commentRangeStart)
Parameters:commentRangeStartCommentRangeStart

The comment range start.

Deletes the current hyperlink.

C#
void DeleteHyperlink()

Deletes a hyperlink.

C#
void DeleteHyperlink(HyperlinkRangeStart hyperlinkRangeStart)
Parameters:hyperlinkRangeStartHyperlinkRangeStart

The hyperlink range start.

Deletes a permission range.

C#
void DeletePermissionRange(PermissionRangeStart rangeStart)
Parameters:rangeStartPermissionRangeStart

The permission range start.

Deletes the read only range at the current caret position or inside the current selection.

C#
void DeleteReadOnlyRange()

Deletes read only range.

C#
void DeleteReadOnlyRange(ReadOnlyRangeStart readOnlyRangeStart)
Parameters:readOnlyRangeStartReadOnlyRangeStart

The read only range that is to be deleted.

Deletes the table the current caret position is in.

C#
void DeleteTable()

Deletes a table.

C#
void DeleteTable(Table table)
Parameters:tableTable

The Table to delete.

Deletes the current table column which is under the caret position.

C#
void DeleteTableColumn()

Deletes the table row under the caret position.

C#
void DeleteTableRow()

Deletes a table row.

C#
void DeleteTableRow(TableRow row)
Parameters:rowTableRow

The TableRow to delete.

Closes currently started undo-able group, started with BeginUndoGroup(), and adds an action in the document history.

C#
void EndUndoGroup()

Closes currently started undo-able group, started with BeginUndoGroup(), and adds an action in the document history.

C#
void EndUndoGroup(string groupDisplayText)
Parameters:groupDisplayTextstring

The display text which will be used for the undo group.

Increments the size of the font of the selected content with 2 points.

C#
void IncrementFontSize()

Increments the left indent of the selected paragraphs.

C#
void IncrementParagraphLeftIndent()

Inserts text into the document at the current caret position.

C#
bool Insert(string text)
Parameters:textstring

The text to insert.

Returns:

bool

Inserts an annotation range over the current selection. If the selection is empty, the annotation range is inserted at the caret position.

C#
void InsertAnnotationRange(AnnotationRangeStart rangeStart, AnnotationRangeEnd rangeEnd)
Parameters:rangeStartAnnotationRangeStart

The annotation range start.

rangeEndAnnotationRangeEnd

The annotation range end.

Inserts a bookmark around the current selection. If the selection is empty, the bookmark is inserted at the caret position.

C#
void InsertBookmark(string bookmarkName)
Parameters:bookmarkNamestring

Name of the bookmark.

Inserts a caption around the current selection. If the selection is empty, the caption is inserted at the current caret position.

C#
void InsertCaption(CaptionDefinition definition, string caption, bool includeLabel, bool insertBelow)
Parameters:definitionCaptionDefinition

The definition of the caption.

captionstring

The caption text to be used.

includeLabelbool

If set to true, the label is included in the caption.

insertBelowbool

If set to true, the caption is inserted after the current selection.

Inserts a code block at the caret position. If the caret position is in code block, replaces the current code block.

C#
void InsertCodeBlock(string code, CodeFormattingSettings settings)
Parameters:codestring

The code to insert.

settingsCodeFormattingSettings

The settings which will be used for the code block.

Inserts a column break into the document at the current caret position.

C#
void InsertColumnBreak()

Inserts a comment around the current selection. If the selection is empty, the comment is inserted at the caret position.

C#
void InsertComment(Comment comment)
Parameters:commentComment

The comment.

Inserts a cross-reference to a bookmark into the document at the current caret position.

C#
void InsertCrossReferenceToBookmark(string bookmarkName, ReferenceContentType contentType, bool insertAsHyperlink)
Parameters:bookmarkNamestring

Name of the bookmark.

contentTypeReferenceContentType

Type of the content.

insertAsHyperlinkbool

If set to true, the cross-reference is inserted as a hyperlink.

Inserts a cross-reference to a caption into the document at the current caret position.

C#
void InsertCrossReferenceToCaption(Paragraph captionParagraph, ReferenceContentType contentType, bool insertAsHyperlink)
Parameters:captionParagraphParagraph

The paragraph containing the caption sequence field.

contentTypeReferenceContentType

The reference content type. If the paragraph doesn't have applied a Caption style, the method will not be executed.

insertAsHyperlinkbool

A parameter indicating whether the cross-reference field should be a hyperlink.

Inserts a cross-reference to a paragraph with Heading style into the document at the current caret position.

C#
void InsertCrossReferenceToHeading(Paragraph headingParagraph, ReferenceContentType contentType, bool insertAsHyperlink)
Parameters:headingParagraphParagraph

The paragraph. If the paragraph doesn't have applied a Heading style, the method will not be executed.

contentTypeReferenceContentType

Type of the content.

insertAsHyperlinkbool

If set to true, the cross-reference is inserted as a hyperlink.

Inserts endnote at the current position.

C#
void InsertEndnote()

Inserts the endnote at the current position.

C#
void InsertEndnote(Note endnote)
Parameters:endnoteNote

The endnote.

Inserts a field into the document at the current caret position in a specified display mode.

C#
bool InsertField(Field field, FieldDisplayMode displayMode)
Parameters:fieldField

The field.

displayModeFieldDisplayMode

The display mode.

Returns:

bool

True, if the operation completed successfully.

Inserts a field into the document at the current caret position.

C#
bool InsertField(Field field)
Parameters:fieldField

The field.

Returns:

bool

True, if the operation completed successfully.

Inserts footnote at the current position.

C#
void InsertFootnote()

Inserts the footnote at the current position.

C#
void InsertFootnote(Note footnote)
Parameters:footnoteNote

The footnote.

Inserts a fragment at a specified position. Document selection should be cleared in advance.

C#
void InsertFragment(DocumentFragment documentFragment, DocumentPosition documentPosition)
Parameters:documentFragmentDocumentFragment

The fragment to insert.

documentPositionDocumentPosition

The document position to insert the fragment at.

Inserts a fragment at the current caret position.

C#
void InsertFragment(DocumentFragment documentFragment)
Parameters:documentFragmentDocumentFragment

The fragment to insert.

Inserts collection of inlines as hyperlink into the document.

C#
void InsertHyperlink(HyperlinkInfo hyperlinkInfo, IEnumerable<Inline> inlines)
Parameters:hyperlinkInfoHyperlinkInfo

The hyperlink info.

inlinesIEnumerable<Inline>

The inlines in the hyperlink.

Inserts a hyperlink in the document.

C#
void InsertHyperlink(HyperlinkInfo hyperlinkInfo)
Parameters:hyperlinkInfoHyperlinkInfo

The hyperlink info.

Inserts an inline image into the document at the current caret position.

C#
void InsertImage(Stream imageStream, string extension)
Parameters:imageStreamStream

The stream to the image's contents.

extensionstring

The extension specifying the image format.

Inserts inline element into the document at a specified caret position. Document selection should be cleared in advance.

C#
void InsertInline(Inline inline, DocumentPosition documentPosition)
Parameters:inlineInline

The inline element to insert.

documentPositionDocumentPosition

The document position to insert the inline at.

Inserts inline element into the document at the current caret position.

C#
void InsertInline(Inline inline)
Parameters:inlineInline

The inline element to insert.

Inserts text at the current caret position and adds a new paragraph after it.

C#
void InsertLine(string text)
Parameters:textstring

The text.

Inserts a line break into the document at the current caret position.

C#
void InsertLineBreak()

Inserts a page break into the document at the current caret position.

C#
void InsertPageBreak()

Inserts a new paragraph at the current caret position.

C#
void InsertParagraph()

Inserts a new permission range over the current selection. If the selection is empty, the permission range is inserted at the caret position.

C#
void InsertPermissionRange(IEnumerable<PermissionRangeInfo> permissionInfos)
Parameters:permissionInfosIEnumerable<PermissionRangeInfo>

The permissions for the new range.

Inserts a read only range over the current selection. If the selection is empty, the range is inserted at the caret position.

C#
void InsertReadOnlyRange()

Inserts a section break into the document at the current caret position.

C#
void InsertSectionBreak()

Inserts a section break of the specified type into the document at the current caret position.

C#
void InsertSectionBreak(SectionBreakType type)
Parameters:typeSectionBreakType

The type of the section break.

Inserts a new table in the document.

C#
void InsertTable(int rows, int columns)
Parameters:rowsint

Number of the rows in the table.

columnsint

Number of the columns in the table.

Inserts a table in the document.

C#
void InsertTable(Table table)
Parameters:tableTable

The table.

Inserts a table column in the table which is under the caret position.

C#
void InsertTableColumn()

Inserts a table column to the left in the table which is under the caret position.

C#
void InsertTableColumnToTheLeft()

Inserts a table column to the right in the table which is under the caret position.

C#
void InsertTableColumnToTheRight()

Inserts a new table row in the table under the caret position.

C#
void InsertTableRow()

Inserts a table row above the one under the caret position.

C#
void InsertTableRowAbove()

Inserts a table row below the one under the caret position.

C#
void InsertTableRowBelow()

Produces a mail merged document containing the results for all data records.

C#
RadDocument MailMerge(bool startEachRecordOnNewPage)
Parameters:startEachRecordOnNewPagebool

true, if each record should start on a new page.

Returns:

RadDocument

The document containing the result of the operation.

Creates a new RadDocument containing the result of merging the template with the values of the current data record.

C#
RadDocument MailMergeCurrentRecord()
Returns:

RadDocument

The document.

Merges the currently selected table cells into one.

C#
void MergeTableCells()

Moves the current selection along with the selected document elements to a specified position.

C#
void MoveSelection(DocumentPosition position, bool deleteSelection)
Parameters:positionDocumentPosition

The start position where the selection should be moved to.

deleteSelectionbool

true, if the current selection and contained elements should be deleted on the original position.

Pastes the content of the clipboard into the document.

C#
void Paste()

Pastes the content of the clipboard into the document.

C#
void Paste(PasteOption pasteOptions)
Parameters:pasteOptionsPasteOption

Pastes the currently copied formatting on the current selection.

C#
bool PasteFormatting()
Returns:

bool

A value indicating whether the paste was successful.

Updates all fields in the document with the values evaluated using the first data record.

C#
bool PreviewFirstMailMergeDataRecord()
Returns:

bool

True, if the operation completed successfully.

Updates all fields in the document with the values evaluated using the last data record.

C#
bool PreviewLastMailMergeDataRecord()
Returns:

bool

True, if the operation completed successfully.

Updates all fields in the document with the values evaluated using a specified data record.

C#
bool PreviewMailMergeDataRecordAtIndex(int index)
Parameters:indexint

The index of the record to be shown.

Returns:

bool

True, if the operation completed successfully.

Updates all fields in the document with the values evaluated using the next data record.

C#
bool PreviewNextMailMergeDataRecord()
Returns:

bool

True, if the operation completed successfully.

Updates all fields in the document with the values evaluated using the previous data record.

C#
bool PreviewPreviousMailMergeDataRecord()
Returns:

bool

True, if the operation completed successfully.

Re-executes the last undone command group.

C#
void Redo()

Rejects all revisions in the document.

C#
void RejectAllRevisions()

Rejects a revision.

C#
void RejectRevision(Revision revision)
Parameters:revisionRevision

The revision.

Removes a tab stop from the selected paragraphs.

C#
void RemoveTabStop(TabStop tabStop)
Parameters:tabStopTabStop

The tab stop.

Removes a collection of tab stops in the selected paragraphs.

C#
void RemoveTabStopRange(IEnumerable<TabStop> tabStops)
Parameters:tabStopsIEnumerable<TabStop>

The tab stops.

Replaces a tab stop inside the selected paragraphs.

C#
void ReplaceTabStop(TabStop oldTabStop, TabStop newTabStop)
Parameters:oldTabStopTabStop

The old tab stop.

newTabStopTabStop

The new tab stop.

Changes the width of a table column. You could specify different width type through the ChangeTableGridColumnWidth(Table, int, TableWidthUnit) method.

C#
void ResizeTableColumn(Table table, int columnIndex, double columnWidth)
Parameters:tableTable

The table.

columnIndexint

The index of the column.

columnWidthdouble

The new value for the column width.

Creates a new list from the current paragraph. The paragraph must be in a list, otherwise this method does nothing.

C#
bool RestartListNumbering()
Returns:

bool

A boolean value determining whether the operation completed successfully.

Skips numbers and starts the counting of the current list from the specified value.

C#
bool SetListNumbering(int numbersToSkip)
Parameters:numbersToSkipint

The numbers to skip.

Returns:

bool

A boolean value indicating whether the operation completed successfully.

Sets a watermark to the selected sections.

C#
void SetWatermark(DocumentWatermarkSettings watermarkSettings)
Parameters:watermarkSettingsDocumentWatermarkSettings

The watermark settings describing the watermark that will be applied.

Sets a predefined watermark to the selected sections.

C#
void SetWatermark(PredefinedWatermarkType predefinedType)
Parameters:predefinedTypePredefinedWatermarkType

Type of the predefined watermark.

Splits an annotation range at the specified position, resulting in two new ranges.

C#
void SplitAnnotationRange(AnnotationRangeStart rangeStart, DocumentPosition position)
Parameters:rangeStartAnnotationRangeStart

The annotation range start to be split.

positionDocumentPosition

The position where the range start should be split.

Splits an annotation range at the caret position, resulting in two new ranges.

C#
void SplitAnnotationRange(AnnotationRangeStart rangeStart)
Parameters:rangeStartAnnotationRangeStart

The annotation range start to be split.

Suppress the line numbering for selected paragraphs.

C#
void SuppressLineNumberingForCurrentParagraph(IEnumerable<Paragraph> paragraphs)
Parameters:paragraphsIEnumerable<Paragraph>

The paragraphs.

Toggles the font weight of the selected content.

C#
void ToggleBold()

Toggles the display mode of a field.

C#
void ToggleFieldCodes(FieldRangeStart fieldStart)
Parameters:fieldStartFieldRangeStart

The field start.

Toggles the font style of the selected content between Italic and Normal.

C#
void ToggleItalic()

Toggles the strike-through of the selected content.

C#
void ToggleStrikethrough()

Reverts the last executed command group.

C#
void Undo()

Splits the currently selected table cell.

C#
void UnmergeTableCells()

Updates all captions in the document related to a caption definition.

C#
void UpdateAllCaptions(CaptionDefinition captionDefinition)
Parameters:captionDefinitionCaptionDefinition

The caption definition.

Updates all fields in the document.

C#
void UpdateAllFields()

Updates all fields in the document and displays them in the specified display mode.

C#
void UpdateAllFields(FieldDisplayMode displayMode)
Parameters:displayModeFieldDisplayMode

The display mode which will be used for the fields.

Updates a field.

C#
void UpdateField(FieldRangeStart fieldStart)
Parameters:fieldStartFieldRangeStart

The field start.

Updates the permissions inside the current selection.

C#
void UpdatePermissionRanges(IEnumerable<PermissionRangeInfo> permissionsToAdd, IEnumerable<PermissionRangeInfo> permissionsToRemove)
Parameters:permissionsToAddIEnumerable<PermissionRangeInfo>

Permissions to add.

permissionsToRemoveIEnumerable<PermissionRangeInfo>

Permissions to remove.

In this article
DefinitionPropertiesDocumentMethodsAcceptAllRevisions()AcceptRevision(Revision)AddTabStop(TabStop)AddTabStopRange(IEnumerable<TabStop>)BeginUndoGroup()CancelUndoGroup()ChangeAllFieldsDisplayMode(FieldDisplayMode)ChangeBaselineAlignment(BaselineAlignment)ChangeBibliographicStyle(BibliographicReferenceStyleBase)ChangeDifferentFirstPageHeaderFooter(bool)ChangeDifferentOddAndEvenPagesHeaderFooter(bool)ChangeDocumentDefaultTabWidth(double)ChangeDocumentElementTag(DocumentElement, string)ChangeDocumentEndnotesFirstNumber(int)ChangeDocumentEndnotesNumberingFormat(ListNumberingFormat)ChangeDocumentEndnotesNumberingRestartType(NumberingRestartType)ChangeDocumentEndnotesPosition(EndnotesPosition)ChangeDocumentFootnotesFirstNumber(int)ChangeDocumentFootnotesNumberingFormat(ListNumberingFormat)ChangeDocumentFootnotesNumberingRestartType(NumberingRestartType)ChangeDocumentFootnotesPosition(FootnotesPosition)ChangeDocumentIsStrictLineBreakingRuleEnabled(bool)ChangeDocumentLineBreakingRuleLanguage(LineBreakingRuleLanguage)ChangeDocumentNoLineBreaksAfterRule(LineBreakingRule)ChangeDocumentNoLineBreaksBeforeRule(LineBreakingRule)ChangeFieldDisplayMode(FieldRangeStart, FieldDisplayMode)ChangeFontFamily(FontFamily)ChangeFontSize(double)ChangeFontStyle(FontStyle)ChangeFontWeight(FontWeight)ChangeForeColor(Color)ChangeHighlightColor(Color)ChangeImageRotateAngle(ImageInline, double)ChangeImageSize(ImageInline, Size)ChangeLineNumberingRestartType(LineNumberingRestartType)ChangeParagraphAutomaticSpacingAfter(bool)ChangeParagraphAutomaticSpacingBefore(bool)ChangeParagraphBackground(Color)ChangeParagraphFirstLineIndent(double)ChangeParagraphFlowDirection(FlowDirection)ChangeParagraphIsLineBreakingRuleEnabled(bool)ChangeParagraphLeftIndent(double)ChangeParagraphLineSpacing(double, LineSpacingType)ChangeParagraphLineSpacing(double)ChangeParagraphLineSpacingType(LineSpacingType)ChangeParagraphListLevel(int)ChangeParagraphListStyle(ListStyle)ChangeParagraphRightIndent(double)ChangeParagraphSpacingAfter(double)ChangeParagraphSpacingBefore(double)ChangeParagraphStyle(StyleDefinition)ChangeParagraphTextAlignment(RadTextAlignment)ChangeSectionActualPageMargin(Padding)ChangeSectionColumns(SectionColumnCollection)ChangeSectionColumns(SectionColumnsLayout)ChangeSectionEndnotesFirstNumber(int)ChangeSectionEndnotesNumberingFormat(ListNumberingFormat)ChangeSectionEndnotesNumberingRestartType(NumberingRestartType)ChangeSectionFirstPageNumber(int?)ChangeSectionFooter(Section, HeaderFooterType, Footer)ChangeSectionFooterBottomMargin(int)ChangeSectionFooterLinkToPrevious(Section, HeaderFooterType, bool)ChangeSectionFootnotesFirstNumber(int)ChangeSectionFootnotesNumberingFormat(ListNumberingFormat)ChangeSectionFootnotesNumberingRestartType(NumberingRestartType)ChangeSectionHeader(Section, HeaderFooterType, Header)ChangeSectionHeaderLinkToPrevious(Section, HeaderFooterType, bool)ChangeSectionHeaderTopMargin(int)ChangeSectionLineNumbering(LineNumbering)ChangeSectionPageMargin(Padding)ChangeSectionPageOrientation(PageOrientation)ChangeSectionPageSize(Size)ChangeSpanStyle(StyleDefinition)ChangeStrikethrough(bool)ChangeStyleName(string, bool)ChangeStyleName(string)ChangeTableBorders(TableBorders)ChangeTableCellBackground(Color)ChangeTableCellBorders(Border)ChangeTableCellBorders(TableCellBorders)ChangeTableCellContentAlignment(RadTextAlignment, RadVerticalAlignment)ChangeTableCellHorizontalContentAlignment(RadTextAlignment)ChangeTableCellPadding(Padding)ChangeTableCellSpacing(double)ChangeTableCellVerticalContentAlignment(RadVerticalAlignment)ChangeTableDefaultCellPadding(Padding)ChangeTableFlowDirection(FlowDirection)ChangeTableGridColumnWidth(Table, int, TableWidthUnit)ChangeTableHorizontalAlignment(RadHorizontalAlignment)ChangeTableIndent(double)ChangeTableLayoutMode(Table, TableLayoutMode)ChangeTableLook(TableLook)ChangeTablePreferredWidth(TableWidthUnit)ChangeTableRowHeight(TableRow, double)ChangeTableRowRepeatOnEveryPage(TableRow)ChangeUnderlineColor(Color)ChangeUnderlineDecoration(IUnderlineUIDecorationProvider)ClearAllFormatting()ClearFormatting()ClearTabStops()ContinueListNumbering()Copy()CopyFormatting()Cut()DecrementFontSize()DecrementParagraphLeftIndent()Delete(bool)DeleteAllComments()DeleteAnnotationRange(AnnotationRangeStart)DeleteBookmark(BookmarkRangeStart)DeleteBookmark(string)DeleteCodeBlock(CodeAnnotationRangeStart)DeleteComment()DeleteComment(CommentRangeStart)DeleteHyperlink()DeleteHyperlink(HyperlinkRangeStart)DeletePermissionRange(PermissionRangeStart)DeleteReadOnlyRange()DeleteReadOnlyRange(ReadOnlyRangeStart)DeleteTable()DeleteTable(Table)DeleteTableColumn()DeleteTableRow()DeleteTableRow(TableRow)EndUndoGroup()EndUndoGroup(string)IncrementFontSize()IncrementParagraphLeftIndent()Insert(string)InsertAnnotationRange(AnnotationRangeStart, AnnotationRangeEnd)InsertBookmark(string)InsertCaption(CaptionDefinition, string, bool, bool)InsertCodeBlock(string, CodeFormattingSettings)InsertColumnBreak()InsertComment(Comment)InsertCrossReferenceToBookmark(string, ReferenceContentType, bool)InsertCrossReferenceToCaption(Paragraph, ReferenceContentType, bool)InsertCrossReferenceToHeading(Paragraph, ReferenceContentType, bool)InsertEndnote()InsertEndnote(Note)InsertField(Field, FieldDisplayMode)InsertField(Field)InsertFootnote()InsertFootnote(Note)InsertFragment(DocumentFragment, DocumentPosition)InsertFragment(DocumentFragment)InsertHyperlink(HyperlinkInfo, IEnumerable<Inline>)InsertHyperlink(HyperlinkInfo)InsertImage(Stream, string)InsertInline(Inline, DocumentPosition)InsertInline(Inline)InsertLine(string)InsertLineBreak()InsertPageBreak()InsertParagraph()InsertPermissionRange(IEnumerable<PermissionRangeInfo>)InsertReadOnlyRange()InsertSectionBreak()InsertSectionBreak(SectionBreakType)InsertTable(int, int)InsertTable(Table)InsertTableColumn()InsertTableColumnToTheLeft()InsertTableColumnToTheRight()InsertTableRow()InsertTableRowAbove()InsertTableRowBelow()MailMerge(bool)MailMergeCurrentRecord()MergeTableCells()MoveSelection(DocumentPosition, bool)Paste()Paste(PasteOption)PasteFormatting()PreviewFirstMailMergeDataRecord()PreviewLastMailMergeDataRecord()PreviewMailMergeDataRecordAtIndex(int)PreviewNextMailMergeDataRecord()PreviewPreviousMailMergeDataRecord()Redo()RejectAllRevisions()RejectRevision(Revision)RemoveTabStop(TabStop)RemoveTabStopRange(IEnumerable<TabStop>)ReplaceTabStop(TabStop, TabStop)ResizeTableColumn(Table, int, double)RestartListNumbering()SetListNumbering(int)SetWatermark(DocumentWatermarkSettings)SetWatermark(PredefinedWatermarkType)SplitAnnotationRange(AnnotationRangeStart, DocumentPosition)SplitAnnotationRange(AnnotationRangeStart)SuppressLineNumberingForCurrentParagraph(IEnumerable<Paragraph>)ToggleBold()ToggleFieldCodes(FieldRangeStart)ToggleItalic()ToggleStrikethrough()Undo()UnmergeTableCells()UpdateAllCaptions(CaptionDefinition)UpdateAllFields()UpdateAllFields(FieldDisplayMode)UpdateField(FieldRangeStart)UpdatePermissionRanges(IEnumerable<PermissionRangeInfo>, IEnumerable<PermissionRangeInfo>)
Not finding the help you need?
Contact Support