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

Represents 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 class RadDocumentEditor : IDocumentEditor

Inheritance: objectRadDocumentEditor

Implements: IDocumentEditor

Constructors

Initializes a new instance of the RadDocumentEditor class.

C#
public RadDocumentEditor(RadDocument document)
Parameters:documentRadDocument

The RadDocument instance which will be edited.

Properties

Gets or sets a value indicating whether the editing operations can insert new paragraphs if needed.

C#
public bool AcceptsReturn { get; set; }

Gets the document that is to be edited.

C#
public RadDocument Document { get; }

Implements: IDocumentEditor.Document

Gets or sets a value that indicates whether protection ranges should be respected when editing.

C#
public bool RespectDocumentProtection { get; set; }
Property Value:

true if the protection ranges should be respected; otherwise, false.

Gets or sets a value indicating whether non-deletable ranges should be respected when editing.

C#
public bool RespectNonDeletableRanges { get; set; }
Property Value:

true if the non-deletable ranges should be respected; otherwise, false.

Gets or sets a value indicating whether read-only ranges should be respected when editing.

C#
public bool RespectReadOnlyRanges { get; set; }
Property Value:

true if the read-only ranges should be respected; otherwise, false.

Methods

Accepts all revisions in the document.

C#
public void AcceptAllRevisions()

Implements: IDocumentEditor.AcceptAllRevisions()

Accepts a revision.

C#
public void AcceptRevision(Revision revision)
Parameters:revisionRevision

The revision.

Implements: IDocumentEditor.AcceptRevision(Revision)

Adds a tab stop to the current paragraph.

C#
public void AddTabStop(TabStop tabStop)
Parameters:tabStopTabStop

The tab stop.

Implements: IDocumentEditor.AddTabStop(TabStop)

Adds a tab stop range to the current paragraph.

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

The tab stop collection.

Implements: IDocumentEditor.AddTabStopRange(IEnumerable<TabStop>)

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

C#
public void BeginUndoGroup()

Implements: IDocumentEditor.BeginUndoGroup()

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

If an undo group is not started, an InvalidOperationException is thrown.

C#
public void CancelUndoGroup()

Implements: IDocumentEditor.CancelUndoGroup()

Changes the display mode of all fields in the document.

C#
public void ChangeAllFieldsDisplayMode(FieldDisplayMode displayMode)
Parameters:displayModeFieldDisplayMode

The display mode which will be used for the fields.

Implements: IDocumentEditor.ChangeAllFieldsDisplayMode(FieldDisplayMode)

Changes the baseline alignment of the selected content.

C#
public void ChangeBaselineAlignment(BaselineAlignment baselineAlignment)
Parameters:baselineAlignmentBaselineAlignment

The baseline alignment to be applied.

Implements: IDocumentEditor.ChangeBaselineAlignment(BaselineAlignment)

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

C#
public void ChangeBibliographicStyle(BibliographicReferenceStyleBase newBibliographicStyle)
Parameters:newBibliographicStyleBibliographicReferenceStyleBase

The new bibliographic style.

Implements: IDocumentEditor.ChangeBibliographicStyle(BibliographicReferenceStyleBase)

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#
public 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.

Implements: IDocumentEditor.ChangeDifferentFirstPageHeaderFooter(bool)

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

C#
public void ChangeDifferentOddAndEvenPagesHeaderFooter(bool value)
Parameters:valuebool

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

Implements: IDocumentEditor.ChangeDifferentOddAndEvenPagesHeaderFooter(bool)

Changes default tab stop width for the document.

C#
public void ChangeDocumentDefaultTabWidth(double tabWidth)
Parameters:tabWidthdouble

Width of the tab.

Implements: IDocumentEditor.ChangeDocumentDefaultTabWidth(double)

Changes the Tag property of a specified DocumentElement.

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

The DocumentElement.

tagstring

The new tag value.

Implements: IDocumentEditor.ChangeDocumentElementTag(DocumentElement, string)

Changes the first number of the endnotes in the document.

C#
public void ChangeDocumentEndnotesFirstNumber(int firstNumber)
Parameters:firstNumberint

The first number.

Implements: IDocumentEditor.ChangeDocumentEndnotesFirstNumber(int)

Changes the numbering format of the endnotes in the document.

C#
public void ChangeDocumentEndnotesNumberingFormat(ListNumberingFormat numberingFormat)
Parameters:numberingFormatListNumberingFormat

The numbering format.

Implements: IDocumentEditor.ChangeDocumentEndnotesNumberingFormat(ListNumberingFormat)

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

C#
public void ChangeDocumentEndnotesNumberingRestartType(NumberingRestartType numberingRestartType)
Parameters:numberingRestartTypeNumberingRestartType

The type of restart for the numbering.

Implements: IDocumentEditor.ChangeDocumentEndnotesNumberingRestartType(NumberingRestartType)

Changes the position of the endnotes in the document.

C#
public void ChangeDocumentEndnotesPosition(EndnotesPosition endnotesPosition)
Parameters:endnotesPositionEndnotesPosition

The position.

Implements: IDocumentEditor.ChangeDocumentEndnotesPosition(EndnotesPosition)

Changes the first number of the footnotes in the document.

C#
public void ChangeDocumentFootnotesFirstNumber(int firstNumber)
Parameters:firstNumberint

The first number.

Implements: IDocumentEditor.ChangeDocumentFootnotesFirstNumber(int)

Changes the numbering format of the footnotes in the document.

C#
public void ChangeDocumentFootnotesNumberingFormat(ListNumberingFormat numberingFormat)
Parameters:numberingFormatListNumberingFormat

The numbering format.

Implements: IDocumentEditor.ChangeDocumentFootnotesNumberingFormat(ListNumberingFormat)

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

C#
public void ChangeDocumentFootnotesNumberingRestartType(NumberingRestartType numberingRestartType)
Parameters:numberingRestartTypeNumberingRestartType

The type of restart for the numbering.

Implements: IDocumentEditor.ChangeDocumentFootnotesNumberingRestartType(NumberingRestartType)

Changes the position of the footnotes in the document.

C#
public void ChangeDocumentFootnotesPosition(FootnotesPosition footnotesPosition)
Parameters:footnotesPositionFootnotesPosition

The footnotes position.

Implements: IDocumentEditor.ChangeDocumentFootnotesPosition(FootnotesPosition)

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

C#
public void ChangeDocumentIsStrictLineBreakingRuleEnabled(bool value)
Parameters:valuebool

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

Implements: IDocumentEditor.ChangeDocumentIsStrictLineBreakingRuleEnabled(bool)

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

C#
public void ChangeDocumentLineBreakingRuleLanguage(LineBreakingRuleLanguage lineBreakingRuleLanguage)
Parameters:lineBreakingRuleLanguageLineBreakingRuleLanguage

The line breaking rule language.

Implements: IDocumentEditor.ChangeDocumentLineBreakingRuleLanguage(LineBreakingRuleLanguage)

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

C#
public void ChangeDocumentNoLineBreaksAfterRule(LineBreakingRule lineBreakingCharacterRule)
Parameters:lineBreakingCharacterRuleLineBreakingRule

The line breaking character rule.

Implements: IDocumentEditor.ChangeDocumentNoLineBreaksAfterRule(LineBreakingRule)

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

C#
public void ChangeDocumentNoLineBreaksBeforeRule(LineBreakingRule lineBreakingCharacterRule)
Parameters:lineBreakingCharacterRuleLineBreakingRule

The rule.

Implements: IDocumentEditor.ChangeDocumentNoLineBreaksBeforeRule(LineBreakingRule)

Changes the display mode of a field.

C#
public void ChangeFieldDisplayMode(FieldRangeStart fieldRangeStart, FieldDisplayMode displayMode)
Parameters:fieldRangeStartFieldRangeStart

The field start.

displayModeFieldDisplayMode

The new display mode.

Implements: IDocumentEditor.ChangeFieldDisplayMode(FieldRangeStart, FieldDisplayMode)

Changes the font family of the selected content.

C#
public void ChangeFontFamily(FontFamily fontFamily)
Parameters:fontFamilyFontFamily

The font family to be applied.

Implements: IDocumentEditor.ChangeFontFamily(FontFamily)

Changes the size of the font of the selected content.

C#
public void ChangeFontSize(double fontSize)
Parameters:fontSizedouble

Size of the font.

Implements: IDocumentEditor.ChangeFontSize(double)

Changes the font style of the selected content.

C#
public void ChangeFontStyle(FontStyle fontStyle)
Parameters:fontStyleFontStyle

The font style.

Implements: IDocumentEditor.ChangeFontStyle(FontStyle)

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

C#
public void ChangeFontWeight(FontWeight fontWeight)
Parameters:fontWeightFontWeight

The font weight.

Implements: IDocumentEditor.ChangeFontWeight(FontWeight)

Changes the fore color of the selected content.

C#
public void ChangeForeColor(Color color)
Parameters:colorColor

The color.

Implements: IDocumentEditor.ChangeForeColor(Color)

Changes the highlight color of the selected content.

C#
public void ChangeHighlightColor(Color color)
Parameters:colorColor

The color.

Implements: IDocumentEditor.ChangeHighlightColor(Color)

Changes the rotate angle of an image.

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

The ImageInline.

angledouble

The new angle.

Implements: IDocumentEditor.ChangeImageRotateAngle(ImageInline, double)

Changes the size of an image.

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

The ImageInline whose size should be changed.

sizeSize

The new size.

Implements: IDocumentEditor.ChangeImageSize(ImageInline, Size)

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

C#
public void ChangeLineNumberingRestartType(LineNumberingRestartType restartType)
Parameters:restartTypeLineNumberingRestartType

The line numbering restart type.

Implements: IDocumentEditor.ChangeLineNumberingRestartType(LineNumberingRestartType)

Changes the automatic spacing after of the selected paragraphs.

C#
public void ChangeParagraphAutomaticSpacingAfter(bool value)
Parameters:valuebool

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

Implements: IDocumentEditor.ChangeParagraphAutomaticSpacingAfter(bool)

Changes the automatic spacing before of the selected paragraphs.

C#
public void ChangeParagraphAutomaticSpacingBefore(bool value)
Parameters:valuebool

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

Implements: IDocumentEditor.ChangeParagraphAutomaticSpacingBefore(bool)

Changes the background of the selected paragraphs.

C#
public void ChangeParagraphBackground(Color color)
Parameters:colorColor

The color.

Implements: IDocumentEditor.ChangeParagraphBackground(Color)

Changes the first line indent of the selected paragraphs.

C#
public void ChangeParagraphFirstLineIndent(double firstLineIndent)
Parameters:firstLineIndentdouble

The first line indent.

Implements: IDocumentEditor.ChangeParagraphFirstLineIndent(double)

Changes the flow direction of the selected paragraphs.

C#
public void ChangeParagraphFlowDirection(FlowDirection flowDirection)
Parameters:flowDirectionFlowDirection

The flow direction.

Implements: IDocumentEditor.ChangeParagraphFlowDirection(FlowDirection)

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#
public 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.

Implements: IDocumentEditor.ChangeParagraphIsLineBreakingRuleEnabled(bool)

Changes the left indent of the selected paragraphs.

C#
public void ChangeParagraphLeftIndent(double leftIndent)
Parameters:leftIndentdouble

The left indent.

Implements: IDocumentEditor.ChangeParagraphLeftIndent(double)

Changes the line spacing of the selected paragraphs.

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

The line spacing.

lineSpacingTypeLineSpacingType

Type of the line spacing.

Implements: IDocumentEditor.ChangeParagraphLineSpacing(double, LineSpacingType)

Changes the line spacing of the selected paragraphs.

C#
public void ChangeParagraphLineSpacing(double lineSpacing)
Parameters:lineSpacingdouble

The line spacing.

Implements: IDocumentEditor.ChangeParagraphLineSpacing(double)

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

C#
public void ChangeParagraphLineSpacingType(LineSpacingType lineSpacingType)
Parameters:lineSpacingTypeLineSpacingType

Type of the line spacing.

Implements: IDocumentEditor.ChangeParagraphLineSpacingType(LineSpacingType)

Changes the list level of the selected paragraphs.

C#
public void ChangeParagraphListLevel(int listLevel)
Parameters:listLevelint

The list level.

Implements: IDocumentEditor.ChangeParagraphListLevel(int)

Changes the list style of the specified paragraphs.

C#
public void ChangeParagraphListStyle(ListStyle style, IEnumerable<Paragraph> paragraphs)
Parameters:styleListStyle

The style.

paragraphsIEnumerable<Paragraph>

The paragraphs.

Changes the paragraph list style of the selected paragraphs.

C#
public void ChangeParagraphListStyle(ListStyle style)
Parameters:styleListStyle

The style.

Implements: IDocumentEditor.ChangeParagraphListStyle(ListStyle)

Changes the right indent of the selected paragraphs.

C#
public void ChangeParagraphRightIndent(double rightIndent)
Parameters:rightIndentdouble

The right indent.

Implements: IDocumentEditor.ChangeParagraphRightIndent(double)

Changes the spacing after of the selected paragraphs.

C#
public void ChangeParagraphSpacingAfter(double spacingAfter)
Parameters:spacingAfterdouble

The spacing after.

Implements: IDocumentEditor.ChangeParagraphSpacingAfter(double)

Changes the spacing before of the selected paragraphs.

C#
public void ChangeParagraphSpacingBefore(double spacingBefore)
Parameters:spacingBeforedouble

The spacing before.

Implements: IDocumentEditor.ChangeParagraphSpacingBefore(double)

Changes the paragraph style of the selected content.

C#
public void ChangeParagraphStyle(StyleDefinition styleInfo)
Parameters:styleInfoStyleDefinition

The style information.

Implements: IDocumentEditor.ChangeParagraphStyle(StyleDefinition)

Changes the text alignment of the selected paragraphs.

C#
public void ChangeParagraphTextAlignment(RadTextAlignment alignment)
Parameters:alignmentRadTextAlignment

The alignment.

Implements: IDocumentEditor.ChangeParagraphTextAlignment(RadTextAlignment)

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

C#
public void ChangeSectionActualPageMargin(Padding sectionMargin)
Parameters:sectionMarginPadding

The margin.

Implements: IDocumentEditor.ChangeSectionActualPageMargin(Padding)

Changes the section columns for the selected sections.

C#
public void ChangeSectionColumns(SectionColumnCollection sectionColumns)
Parameters:sectionColumnsSectionColumnCollection

The section columns.

Implements: IDocumentEditor.ChangeSectionColumns(SectionColumnCollection)

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

C#
public void ChangeSectionColumns(SectionColumnsLayout sectionColumnsLayout)
Parameters:sectionColumnsLayoutSectionColumnsLayout

The section columns layout.

Implements: IDocumentEditor.ChangeSectionColumns(SectionColumnsLayout)

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

C#
public void ChangeSectionEndnotesFirstNumber(int firstNumber)
Parameters:firstNumberint

The first number.

Implements: IDocumentEditor.ChangeSectionEndnotesFirstNumber(int)

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

C#
public void ChangeSectionEndnotesNumberingFormat(ListNumberingFormat numberingFormat)
Parameters:numberingFormatListNumberingFormat

The numbering format.

Implements: IDocumentEditor.ChangeSectionEndnotesNumberingFormat(ListNumberingFormat)

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

C#
public void ChangeSectionEndnotesNumberingRestartType(NumberingRestartType numberingRestartType)
Parameters:numberingRestartTypeNumberingRestartType

The type of restart for the numbering.

Implements: IDocumentEditor.ChangeSectionEndnotesNumberingRestartType(NumberingRestartType)

Changes the first page number of the selected sections.

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

The first page number.

Implements: IDocumentEditor.ChangeSectionFirstPageNumber(int?)

Changes the section footer.

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

The section.

footerTypeHeaderFooterType

Type of the footer.

footerFooter

The footer.

Implements: IDocumentEditor.ChangeSectionFooter(Section, HeaderFooterType, Footer)

Changes the footer bottom margin of the selected sections.

C#
public void ChangeSectionFooterBottomMargin(int sectionFooterBottomMargin)
Parameters:sectionFooterBottomMarginint

The section footer bottom margin.

Implements: IDocumentEditor.ChangeSectionFooterBottomMargin(int)

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

C#
public 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.

Implements: IDocumentEditor.ChangeSectionFooterLinkToPrevious(Section, HeaderFooterType, bool)

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

C#
public void ChangeSectionFootnotesFirstNumber(int firstNumber)
Parameters:firstNumberint

The first number.

Implements: IDocumentEditor.ChangeSectionFootnotesFirstNumber(int)

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

C#
public void ChangeSectionFootnotesNumberingFormat(ListNumberingFormat numberingFormat)
Parameters:numberingFormatListNumberingFormat

The numbering format.

Implements: IDocumentEditor.ChangeSectionFootnotesNumberingFormat(ListNumberingFormat)

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

C#
public void ChangeSectionFootnotesNumberingRestartType(NumberingRestartType numberingRestartType)
Parameters:numberingRestartTypeNumberingRestartType

The type of restart for the numbering.

Implements: IDocumentEditor.ChangeSectionFootnotesNumberingRestartType(NumberingRestartType)

Changes the section header.

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

The section.

headerTypeHeaderFooterType

Type of the header.

headerHeader

The header.

Implements: IDocumentEditor.ChangeSectionHeader(Section, HeaderFooterType, Header)

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

C#
public 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.

Implements: IDocumentEditor.ChangeSectionHeaderLinkToPrevious(Section, HeaderFooterType, bool)

Changes the header top margin of the selected sections.

C#
public void ChangeSectionHeaderTopMargin(int sectionHeaderTopMargin)
Parameters:sectionHeaderTopMarginint

The section header top margin.

Implements: IDocumentEditor.ChangeSectionHeaderTopMargin(int)

Changes the line numbering for a given collection of Section elements.

C#
public void ChangeSectionLineNumbering(LineNumbering lineNumbering)
Parameters:lineNumberingLineNumbering

The line numbering.

Implements: IDocumentEditor.ChangeSectionLineNumbering(LineNumbering)

Changes the page margin of the selected sections.

C#
public void ChangeSectionPageMargin(Padding sectionMargin)
Parameters:sectionMarginPadding

The margin.

Implements: IDocumentEditor.ChangeSectionPageMargin(Padding)

Changes the page orientation of the selected sections.

C#
public void ChangeSectionPageOrientation(PageOrientation sectionPageOrientation)
Parameters:sectionPageOrientationPageOrientation

The page orientation.

Implements: IDocumentEditor.ChangeSectionPageOrientation(PageOrientation)

Changes the page size of the selected sections.

C#
public void ChangeSectionPageSize(Size newSize)
Parameters:newSizeSize

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

Implements: IDocumentEditor.ChangeSectionPageSize(Size)

Changes the span style of the selected content.

C#
public void ChangeSpanStyle(StyleDefinition styleInfo)
Parameters:styleInfoStyleDefinition

The style information.

Implements: IDocumentEditor.ChangeSpanStyle(StyleDefinition)

Changes the strike-through of the selected content.

C#
public void ChangeStrikethrough(bool isStriketrough)
Parameters:isStriketroughbool

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

Implements: IDocumentEditor.ChangeStrikethrough(bool)

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

C#
public 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.

Implements: IDocumentEditor.ChangeStyleName(string, bool)

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

C#
public void ChangeStyleName(string styleName)
Parameters:styleNamestring

Name of the style to be applied.

Implements: IDocumentEditor.ChangeStyleName(string)

Changes the borders of the selected tables.

C#
public void ChangeTableBorders(TableBorders tableBorders)
Parameters:tableBordersTableBorders

The table borders.

Implements: IDocumentEditor.ChangeTableBorders(TableBorders)

Changes the background of the selected table cells.

C#
public void ChangeTableCellBackground(Color color)
Parameters:colorColor

The color.

Implements: IDocumentEditor.ChangeTableCellBackground(Color)

Changes the borders of the selected table cells.

C#
public void ChangeTableCellBorders(Border border)
Parameters:borderBorder

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

Implements: IDocumentEditor.ChangeTableCellBorders(Border)

Changes the borders of the selected table cells.

C#
public void ChangeTableCellBorders(TableCellBorders tableCellBorders)
Parameters:tableCellBordersTableCellBorders

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

Implements: IDocumentEditor.ChangeTableCellBorders(TableCellBorders)

Changes the content alignment of the selected table cells.

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

The text alignment.

verticalAlignmentRadVerticalAlignment

The vertical alignment.

Implements: IDocumentEditor.ChangeTableCellContentAlignment(RadTextAlignment, RadVerticalAlignment)

Changes the horizontal content alignment of the selected table cells.

C#
public void ChangeTableCellHorizontalContentAlignment(RadTextAlignment textAlignment)
Parameters:textAlignmentRadTextAlignment

The alignment.

Implements: IDocumentEditor.ChangeTableCellHorizontalContentAlignment(RadTextAlignment)

Changes the padding of the selected table cells.

C#
public void ChangeTableCellPadding(Padding padding)
Parameters:paddingPadding

The padding.

Implements: IDocumentEditor.ChangeTableCellPadding(Padding)

Changes the cell spacing of the selected tables.

C#
public void ChangeTableCellSpacing(double cellSpacing)
Parameters:cellSpacingdouble

The cell spacing.

Implements: IDocumentEditor.ChangeTableCellSpacing(double)

Changes the vertical content alignment of the selected table cells.

C#
public void ChangeTableCellVerticalContentAlignment(RadVerticalAlignment verticalAlignment)
Parameters:verticalAlignmentRadVerticalAlignment

The alignment.

Implements: IDocumentEditor.ChangeTableCellVerticalContentAlignment(RadVerticalAlignment)

Changes the default cell padding of the selected tables.

C#
public void ChangeTableDefaultCellPadding(Padding padding)
Parameters:paddingPadding

The padding which will be used as a default value.

Implements: IDocumentEditor.ChangeTableDefaultCellPadding(Padding)

Changes the flow direction of the selected tables.

C#
public void ChangeTableFlowDirection(FlowDirection flowDirection)
Parameters:flowDirectionFlowDirection

The flow direction.

Implements: IDocumentEditor.ChangeTableFlowDirection(FlowDirection)

Changes the width of a table column.

C#
public 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. If the type of the width is not specified, Fixed will be used.

Implements: IDocumentEditor.ChangeTableGridColumnWidth(Table, int, TableWidthUnit)

Changes the horizontal alignment of the selected tables.

C#
public void ChangeTableHorizontalAlignment(RadHorizontalAlignment alignment)
Parameters:alignmentRadHorizontalAlignment

The alignment.

Implements: IDocumentEditor.ChangeTableHorizontalAlignment(RadHorizontalAlignment)

Changes the indent of the selected tables.

C#
public void ChangeTableIndent(double indent)
Parameters:indentdouble

The indent.

Implements: IDocumentEditor.ChangeTableIndent(double)

Changes the layout mode of the selected tables.

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

The table.

tableLayoutModeTableLayoutMode

The table layout mode.

Implements: IDocumentEditor.ChangeTableLayoutMode(Table, TableLayoutMode)

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#
public void ChangeTableLook(TableLook tableLook)
Parameters:tableLookTableLook

The table look.

Implements: IDocumentEditor.ChangeTableLook(TableLook)

Changes the preferred width of the selected tables.

C#
public void ChangeTablePreferredWidth(TableWidthUnit tableWidth)
Parameters:tableWidthTableWidthUnit

Width of the table.

Implements: IDocumentEditor.ChangeTablePreferredWidth(TableWidthUnit)

Changes the height of a table row.

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

The table row.

heightdouble

The height.

Implements: IDocumentEditor.ChangeTableRowHeight(TableRow, double)

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

C#
public void ChangeTableRowRepeatOnEveryPage(TableRow tableRow)
Parameters:tableRowTableRow

The table row.

Implements: IDocumentEditor.ChangeTableRowRepeatOnEveryPage(TableRow)

Changes the underline color of the selected content.

C#
public void ChangeUnderlineColor(Color color)
Parameters:colorColor

The color.

Implements: IDocumentEditor.ChangeUnderlineColor(Color)

Changes the underline decoration of the selected content.

C#
public void ChangeUnderlineDecoration(IUnderlineUIDecorationProvider decoration)
Parameters:decorationIUnderlineUIDecorationProvider

The value.

Implements: IDocumentEditor.ChangeUnderlineDecoration(IUnderlineUIDecorationProvider)

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

C#
public void ClearAllFormatting()

Implements: IDocumentEditor.ClearAllFormatting()

Clears the character formatting of the selected content.

C#
public void ClearFormatting()

Implements: IDocumentEditor.ClearFormatting()

Clears the paragraph formatting of the selected content.

C#
public void ClearParagraphFormatting()

Clears the tab stops inside the selected paragraphs.

C#
public void ClearTabStops()

Implements: IDocumentEditor.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#
public bool ContinueListNumbering()
Returns:

bool

A boolean value indicating whether the operation completed successfully.

Implements: IDocumentEditor.ContinueListNumbering()

Copies the currently selected document elements into the clipboard.

C#
public void Copy()

Implements: IDocumentEditor.Copy()

Copies the formatting of the current selection.

C#
public bool CopyFormatting()
Returns:

bool

A value indicating whether the copy was successful.

Implements: IDocumentEditor.CopyFormatting()

Cuts the currently selected document elements into the clipboard.

C#
public void Cut()

Implements: IDocumentEditor.Cut()

Decreases the left indent of the selected paragraphs. The default step used for indentation is 24.

C#
public void DecreaseLeftIndent()

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

C#
public void DecrementFontSize()

Implements: IDocumentEditor.DecrementFontSize()

Decrements the left indent of the selected paragraphs. The default step used for indentation is 24.

C#
public void DecrementParagraphLeftIndent()

Implements: IDocumentEditor.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#
public bool Delete(bool deletePrevious)
Parameters:deletePreviousbool

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

Returns:

bool

Implements: IDocumentEditor.Delete(bool)

Deletes all comments in the document.

C#
public void DeleteAllComments()

Implements: IDocumentEditor.DeleteAllComments()

Deletes an annotation range.

C#
public void DeleteAnnotationRange(AnnotationRangeStart rangeStart)
Parameters:rangeStartAnnotationRangeStart

The start of the range that will be deleted.

Implements: IDocumentEditor.DeleteAnnotationRange(AnnotationRangeStart)

Deletes a bookmark.

C#
public void DeleteBookmark(BookmarkRangeStart bookmarkRangeStart)
Parameters:bookmarkRangeStartBookmarkRangeStart

The bookmark range start.

Implements: IDocumentEditor.DeleteBookmark(BookmarkRangeStart)

Deletes a bookmark.

C#
public void DeleteBookmark(string bookmarkName)
Parameters:bookmarkNamestring

Name of the bookmark.

Implements: IDocumentEditor.DeleteBookmark(string)

Deletes a code block.

C#
public void DeleteCodeBlock(CodeAnnotationRangeStart rangeStart)
Parameters:rangeStartCodeAnnotationRangeStart

The CodeAnnotationRangeStart of the block to delete.

Implements: IDocumentEditor.DeleteCodeBlock(CodeAnnotationRangeStart)

Deletes the current comment.

C#
public void DeleteComment()

Implements: IDocumentEditor.DeleteComment()

Deletes a comment.

C#
public void DeleteComment(CommentRangeStart commentRangeStart)
Parameters:commentRangeStartCommentRangeStart

The comment range start.

Implements: IDocumentEditor.DeleteComment(CommentRangeStart)

Deletes the current hyperlink.

C#
public void DeleteHyperlink()

Implements: IDocumentEditor.DeleteHyperlink()

Deletes a hyperlink.

C#
public void DeleteHyperlink(HyperlinkRangeStart hyperlinkRangeStart)
Parameters:hyperlinkRangeStartHyperlinkRangeStart

The hyperlink range start.

Implements: IDocumentEditor.DeleteHyperlink(HyperlinkRangeStart)

Deletes a permission range.

C#
public void DeletePermissionRange(PermissionRangeStart permissionRangeStart)
Parameters:permissionRangeStartPermissionRangeStart

The permission range start.

Implements: IDocumentEditor.DeletePermissionRange(PermissionRangeStart)

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

C#
public void DeleteReadOnlyRange()

Implements: IDocumentEditor.DeleteReadOnlyRange()

Deletes read only range.

C#
public void DeleteReadOnlyRange(ReadOnlyRangeStart readOnlyRangeStart)
Parameters:readOnlyRangeStartReadOnlyRangeStart

The read only range that is to be deleted.

Implements: IDocumentEditor.DeleteReadOnlyRange(ReadOnlyRangeStart)

Deletes the table the current caret position is in.

C#
public void DeleteTable()

Implements: IDocumentEditor.DeleteTable()

Deletes a table.

C#
public void DeleteTable(Table table)
Parameters:tableTable

The Table to delete.

Implements: IDocumentEditor.DeleteTable(Table)

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

C#
public void DeleteTableColumn()

Implements: IDocumentEditor.DeleteTableColumn()

Deletes the table row under the caret position.

C#
public void DeleteTableRow()

Implements: IDocumentEditor.DeleteTableRow()

Deletes a table row.

C#
public void DeleteTableRow(TableRow row)
Parameters:rowTableRow

The TableRow to delete.

Implements: IDocumentEditor.DeleteTableRow(TableRow)

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

C#
public void EndUndoGroup()

Implements: IDocumentEditor.EndUndoGroup()

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

C#
public void EndUndoGroup(string groupDisplayText)
Parameters:groupDisplayTextstring

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

Implements: IDocumentEditor.EndUndoGroup(string)

Increases the left indent of the selected paragraphs. The default step used for indentation is 24.

C#
public void IncreaseLeftIndent()

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

C#
public void IncrementFontSize()

Implements: IDocumentEditor.IncrementFontSize()

Increments the left indent of the selected paragraphs. The default step used for indentation is 24.

C#
public void IncrementParagraphLeftIndent()

Implements: IDocumentEditor.IncrementParagraphLeftIndent()

Increments the paragraph list level of the selected paragraphs.

C#
public void IncrementParagraphListLevel(int value)
Parameters:valueint

A value determining how much the level should be increased.

Inserts text into the document at the current caret position.

C#
public bool Insert(string text)
Parameters:textstring

The text to insert.

Returns:

bool

Implements: IDocumentEditor.Insert(string)

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

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

The annotation range start.

rangeEndAnnotationRangeEnd

The annotation range end.

Implements: IDocumentEditor.InsertAnnotationRange(AnnotationRangeStart, AnnotationRangeEnd)

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

C#
public void InsertBookmark(string bookmarkName)
Parameters:bookmarkNamestring

Name of the bookmark.

Implements: IDocumentEditor.InsertBookmark(string)

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

C#
public void InsertCaption(CaptionDefinition captionDefinition, string caption, bool includeLabel, bool insertBelow)
Parameters:captionDefinitionCaptionDefinition

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.

Implements: IDocumentEditor.InsertCaption(CaptionDefinition, string, bool, bool)

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

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

The code to insert.

settingsCodeFormattingSettings

The settings which will be used for the code block.

Implements: IDocumentEditor.InsertCodeBlock(string, CodeFormattingSettings)

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

C#
public void InsertColumnBreak()

Implements: IDocumentEditor.InsertColumnBreak()

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

C#
public void InsertComment(Comment comment)
Parameters:commentComment

The comment.

Implements: IDocumentEditor.InsertComment(Comment)

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

C#
public 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.

Implements: IDocumentEditor.InsertCrossReferenceToBookmark(string, ReferenceContentType, bool)

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

C#
public 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.

Implements: IDocumentEditor.InsertCrossReferenceToCaption(Paragraph, ReferenceContentType, bool)

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

C#
public 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.

Implements: IDocumentEditor.InsertCrossReferenceToHeading(Paragraph, ReferenceContentType, bool)

Inserts endnote at the current position.

C#
public void InsertEndnote()

Implements: IDocumentEditor.InsertEndnote()

Inserts the endnote at the current position.

C#
public void InsertEndnote(Note endnote)
Parameters:endnoteNote

The endnote.

Implements: IDocumentEditor.InsertEndnote(Note)

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

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

The field.

displayModeFieldDisplayMode

The display mode.

Returns:

bool

True, if the operation completed successfully.

Implements: IDocumentEditor.InsertField(Field, FieldDisplayMode)

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

C#
public bool InsertField(Field field)
Parameters:fieldField

The field.

Returns:

bool

True, if the operation completed successfully.

Implements: IDocumentEditor.InsertField(Field)

Inserts footnote at the current position.

C#
public void InsertFootnote()

Implements: IDocumentEditor.InsertFootnote()

Inserts the footnote at the current position.

C#
public void InsertFootnote(Note footnote)
Parameters:footnoteNote

The footnote.

Implements: IDocumentEditor.InsertFootnote(Note)

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

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

The fragment to insert.

documentPositionDocumentPosition

The document position to insert the fragment at.

Exceptions:

InvalidOperationException

Thrown when there is selection in the document.

ArgumentNullException

Thrown when documentFragment or documentPosition is null.

Implements: IDocumentEditor.InsertFragment(DocumentFragment, DocumentPosition)

Remarks:

Document selection should be cleared before calling this method, otherwise exception may be thrown.

Inserts a fragment at the current caret position.

C#
public void InsertFragment(DocumentFragment documentFragment)
Parameters:documentFragmentDocumentFragment

The fragment to insert.

Exceptions:

ArgumentNullException

Thrown when documentFragment is null.

Implements: IDocumentEditor.InsertFragment(DocumentFragment)

Inserts a hyperlink in the document.

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

The hyperlink info.

inlinesIEnumerable<Inline>

The inlines in the hyperlink.

Implements: IDocumentEditor.InsertHyperlink(HyperlinkInfo, IEnumerable<Inline>)

Inserts collection of inlines as hyperlink into the document.

C#
public void InsertHyperlink(HyperlinkInfo hyperlinkInfo, string hyperlinkText)
Parameters:hyperlinkInfoHyperlinkInfo

The hyperlink info.

hyperlinkTextstring

The hyperlink text.

Inserts a hyperlink in the document. The hyperlink will be created around the current selection.

C#
public void InsertHyperlink(HyperlinkInfo hyperlinkInfo)
Parameters:hyperlinkInfoHyperlinkInfo

The hyperlink info.

Implements: IDocumentEditor.InsertHyperlink(HyperlinkInfo)

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

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

The stream to the image's contents.

extensionstring

The extension specifying the image format.

Implements: IDocumentEditor.InsertImage(Stream, string)

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

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

The inline element to insert.

documentPositionDocumentPosition

The document position to insert the inline at.

Exceptions:

InvalidOperationException

Thrown when there is selection in the document.

ArgumentNullException

Thrown when inline or documentPosition is null.

Implements: IDocumentEditor.InsertInline(Inline, DocumentPosition)

Remarks:

Document selection should be cleared before calling this method, otherwise exception may be thrown.

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

C#
public void InsertInline(Inline inline)
Parameters:inlineInline

The inline element to insert.

Exceptions:

ArgumentNullException

Thrown when inline is null.

Implements: IDocumentEditor.InsertInline(Inline)

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

C#
public void InsertLine(string text)
Parameters:textstring

The text.

Implements: IDocumentEditor.InsertLine(string)

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

C#
public void InsertLineBreak()

Implements: IDocumentEditor.InsertLineBreak()

Inserts a non-breaking space into the document at the current caret position.

C#
public void InsertNonBreakingSpace()

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

C#
public void InsertPageBreak()

Implements: IDocumentEditor.InsertPageBreak()

Inserts a new paragraph at the current caret position.

C#
public void InsertParagraph()

Implements: IDocumentEditor.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#
public void InsertPermissionRange(IEnumerable<PermissionRangeInfo> permissionInfos)
Parameters:permissionInfosIEnumerable<PermissionRangeInfo>

The permissions for the new range.

Implements: IDocumentEditor.InsertPermissionRange(IEnumerable<PermissionRangeInfo>)

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

C#
public void InsertReadOnlyRange()

Implements: IDocumentEditor.InsertReadOnlyRange()

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

C#
public void InsertSectionBreak()

Implements: IDocumentEditor.InsertSectionBreak()

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

C#
public void InsertSectionBreak(SectionBreakType sectionBreakType)
Parameters:sectionBreakTypeSectionBreakType

The type of the section break.

Implements: IDocumentEditor.InsertSectionBreak(SectionBreakType)

Inserts a default structured document tag (Content Control). The default type is RichText.

C#
public void InsertStructuredDocumentTag()

Inserts a structured document tag (Content Control) based on the provided properties.

C#
public void InsertStructuredDocumentTag(SdtProperties insertProperties)
Parameters:insertPropertiesSdtProperties

Inserts a structured document tag (Content Control) of the given type.

C#
public void InsertStructuredDocumentTag(SdtType insertType)
Parameters:insertTypeSdtType

Inserts a new table in the document.

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

Number of the rows in the table.

columnsint

Number of the columns in the table.

shouldInsertParagraphBeforeTablebool

if set to true, an additional empty paragraph is inserted before the table.

Inserts a new table in the document.

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

Number of the rows in the table.

columnsint

Number of the columns in the table.

Implements: IDocumentEditor.InsertTable(int, int)

Inserts the table.

C#
public void InsertTable(Table table, bool shouldInsertParagraphBeforeTable)
Parameters:tableTable

The table.

shouldInsertParagraphBeforeTablebool

if set to true, an additional empty paragraph is inserted before the table.

Remarks:

The Table instance inserted in the document is a cloning of the one passed for the table parameter. Making subsequеnt changes to the Table is not possible.

Inserts a table in the document.

Note: The Table instance inserted in the document is a cloning of the one passed for the table parameter. Making subsequent changes to the Table is not possible using the same object.

C#
public void InsertTable(Table table)
Parameters:tableTable

The table.

Implements: IDocumentEditor.InsertTable(Table)

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

C#
public void InsertTableColumn()

Implements: IDocumentEditor.InsertTableColumn()

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

C#
public void InsertTableColumnToTheLeft()

Implements: IDocumentEditor.InsertTableColumnToTheLeft()

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

C#
public void InsertTableColumnToTheRight()

Implements: IDocumentEditor.InsertTableColumnToTheRight()

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

C#
public void InsertTableRow()

Implements: IDocumentEditor.InsertTableRow()

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

C#
public void InsertTableRowAbove()

Implements: IDocumentEditor.InsertTableRowAbove()

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

C#
public void InsertTableRowBelow()

Implements: IDocumentEditor.InsertTableRowBelow()

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

C#
public 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.

Implements: IDocumentEditor.MailMerge(bool)

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

C#
public RadDocument MailMergeCurrentRecord()
Returns:

RadDocument

The document.

Implements: IDocumentEditor.MailMergeCurrentRecord()

Merges the currently selected table cells into one.

C#
public void MergeTableCells()

Implements: IDocumentEditor.MergeTableCells()

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

C#
public void MoveSelection(DocumentPosition movePosition, bool deleteSelection)
Parameters:movePositionDocumentPosition

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.

Implements: IDocumentEditor.MoveSelection(DocumentPosition, bool)

Pastes the content of the clipboard into the document.

C#
public void Paste()

Implements: IDocumentEditor.Paste()

Pastes the content of the clipboard into the document.

C#
public void Paste(PasteOption pasteOption)
Parameters:pasteOptionPasteOption

The paste option that will be used.

Implements: IDocumentEditor.Paste(PasteOption)

Pastes the currently copied formatting on the current selection.

C#
public bool PasteFormatting()
Returns:

bool

A value indicating whether the paste was successful.

Implements: IDocumentEditor.PasteFormatting()

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

C#
public bool PreviewFirstMailMergeDataRecord()
Returns:

bool

True, if the operation completed successfully.

Implements: IDocumentEditor.PreviewFirstMailMergeDataRecord()

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

C#
public bool PreviewLastMailMergeDataRecord()
Returns:

bool

True, if the operation completed successfully.

Implements: IDocumentEditor.PreviewLastMailMergeDataRecord()

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

C#
public bool PreviewMailMergeDataRecordAtIndex(int index)
Parameters:indexint

The index of the record to be shown.

Returns:

bool

True, if the operation completed successfully.

Implements: IDocumentEditor.PreviewMailMergeDataRecordAtIndex(int)

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

C#
public bool PreviewNextMailMergeDataRecord()
Returns:

bool

True, if the operation completed successfully.

Implements: IDocumentEditor.PreviewNextMailMergeDataRecord()

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

C#
public bool PreviewPreviousMailMergeDataRecord()
Returns:

bool

True, if the operation completed successfully.

Implements: IDocumentEditor.PreviewPreviousMailMergeDataRecord()

Re-executes the last undone command group.

C#
public void Redo()

Implements: IDocumentEditor.Redo()

Rejects all revisions in the document.

C#
public void RejectAllRevisions()

Implements: IDocumentEditor.RejectAllRevisions()

Rejects a revision.

C#
public void RejectRevision(Revision revision)
Parameters:revisionRevision

The revision.

Implements: IDocumentEditor.RejectRevision(Revision)

Removes a tab stop from the selected paragraphs.

C#
public void RemoveTabStop(TabStop tabStop)
Parameters:tabStopTabStop

The tab stop.

Implements: IDocumentEditor.RemoveTabStop(TabStop)

Removes a collection of tab stops in the selected paragraphs.

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

The tab stops.

Implements: IDocumentEditor.RemoveTabStopRange(IEnumerable<TabStop>)

Replaces a tab stop inside the selected paragraphs.

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

The old tab stop.

newTabStopTabStop

The new tab stop.

Implements: IDocumentEditor.ReplaceTabStop(TabStop, TabStop)

Changes the width of a table column. The specified width value will be applied with width type Fixed. You could specify different width type through the ChangeTableGridColumnWidth(Table, int, TableWidthUnit) method.

C#
public 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.

Implements: IDocumentEditor.ResizeTableColumn(Table, int, double)

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

C#
public bool RestartListNumbering()
Returns:

bool

A boolean value determining whether the operation completed successfully.

Implements: IDocumentEditor.RestartListNumbering()

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

C#
public bool SetListNumbering(int numbersToSkip)
Parameters:numbersToSkipint

The numbers to skip.

Returns:

bool

A boolean value indicating whether the operation completed successfully.

Implements: IDocumentEditor.SetListNumbering(int)

Sets a watermark to the selected sections.

C#
public void SetWatermark(DocumentWatermarkSettings watermarkSettings)
Parameters:watermarkSettingsDocumentWatermarkSettings

The watermark settings describing the watermark that will be applied.

Implements: IDocumentEditor.SetWatermark(DocumentWatermarkSettings)

Sets a predefined watermark to the selected sections.

C#
public void SetWatermark(PredefinedWatermarkType predefinedType)
Parameters:predefinedTypePredefinedWatermarkType

Type of the predefined watermark.

Implements: IDocumentEditor.SetWatermark(PredefinedWatermarkType)

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

C#
public 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.

Implements: IDocumentEditor.SplitAnnotationRange(AnnotationRangeStart, DocumentPosition)

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

C#
public void SplitAnnotationRange(AnnotationRangeStart rangeStart)
Parameters:rangeStartAnnotationRangeStart

The annotation range start to be split.

Implements: IDocumentEditor.SplitAnnotationRange(AnnotationRangeStart)

Suppress the line numbering for selected paragraphs.

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

The paragraphs.

Implements: IDocumentEditor.SuppressLineNumberingForCurrentParagraph(IEnumerable<Paragraph>)

Toggles the font weight of the selected content between Bold and Normal.

C#
public void ToggleBold()

Implements: IDocumentEditor.ToggleBold()

Toggles the display mode of a field.

C#
public void ToggleFieldCodes(FieldRangeStart fieldStart)
Parameters:fieldStartFieldRangeStart

The field start.

Implements: IDocumentEditor.ToggleFieldCodes(FieldRangeStart)

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

C#
public void ToggleItalic()

Implements: IDocumentEditor.ToggleItalic()

Toggles the strike-through of the selected content.

C#
public void ToggleStrikethrough()

Implements: IDocumentEditor.ToggleStrikethrough()

Reverts the last executed command group.

C#
public void Undo()

Implements: IDocumentEditor.Undo()

Splits the currently selected table cell.

C#
public void UnmergeTableCells()

Implements: IDocumentEditor.UnmergeTableCells()

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

C#
public void UpdateAllCaptions(CaptionDefinition captionDefinition)
Parameters:captionDefinitionCaptionDefinition

The caption definition.

Implements: IDocumentEditor.UpdateAllCaptions(CaptionDefinition)

Updates all fields in the document.

C#
public void UpdateAllFields()

Implements: IDocumentEditor.UpdateAllFields()

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

C#
public void UpdateAllFields(FieldDisplayMode displayMode)
Parameters:displayModeFieldDisplayMode

The display mode which will be used for the fields.

Implements: IDocumentEditor.UpdateAllFields(FieldDisplayMode)

Updates a field.

C#
public void UpdateField(FieldRangeStart fieldStart)
Parameters:fieldStartFieldRangeStart

The field start.

Implements: IDocumentEditor.UpdateField(FieldRangeStart)

Updates the permissions inside the current selection.

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

Permissions to add.

permissionsToRemoveIEnumerable<PermissionRangeInfo>

Permissions to remove.

Implements: IDocumentEditor.UpdatePermissionRanges(IEnumerable<PermissionRangeInfo>, IEnumerable<PermissionRangeInfo>)

In this article
DefinitionConstructorsRadDocumentEditor(RadDocument)PropertiesAcceptsReturnDocumentRespectDocumentProtectionRespectNonDeletableRangesRespectReadOnlyRangesMethodsAcceptAllRevisions()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, IEnumerable<Paragraph>)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()ClearParagraphFormatting()ClearTabStops()ContinueListNumbering()Copy()CopyFormatting()Cut()DecreaseLeftIndent()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)IncreaseLeftIndent()IncrementFontSize()IncrementParagraphLeftIndent()IncrementParagraphListLevel(int)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, string)InsertHyperlink(HyperlinkInfo)InsertImage(Stream, string)InsertInline(Inline, DocumentPosition)InsertInline(Inline)InsertLine(string)InsertLineBreak()InsertNonBreakingSpace()InsertPageBreak()InsertParagraph()InsertPermissionRange(IEnumerable<PermissionRangeInfo>)InsertReadOnlyRange()InsertSectionBreak()InsertSectionBreak(SectionBreakType)InsertStructuredDocumentTag()InsertStructuredDocumentTag(SdtProperties)InsertStructuredDocumentTag(SdtType)InsertTable(int, int, bool)InsertTable(int, int)InsertTable(Table, bool)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