skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Test Studio Dev Edition Telerik JustMock

    CMS

    Sitefinity

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class RadDocumentEditor

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

Inheritance
System.Object
RadDocumentEditor
Namespace: Telerik.Windows.Documents.Model
Assembly: Telerik.Windows.Controls.RichTextBox.dll

Syntax

public class RadDocumentEditor : Object, IDocumentEditor, ITextInputCommandsHandler

Constructors

RadDocumentEditor(RadDocument)

Initializes a new instance of the RadDocumentEditor class.

Declaration
public RadDocumentEditor(RadDocument document)
Parameters
RadDocument document

The RadDocument instance which will be edited.

Properties

AcceptsReturn

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

Declaration
public bool AcceptsReturn { get; set; }
Property Value
System.Boolean

Document

Gets the document that is to be edited.

Declaration
public RadDocument Document { get; }
Property Value
RadDocument

Implements
IDocumentEditor.Document

RespectDocumentProtection

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

Declaration
public bool RespectDocumentProtection { get; set; }
Property Value
System.Boolean

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

RespectNonDeletableRanges

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

Declaration
public bool RespectNonDeletableRanges { get; set; }
Property Value
System.Boolean

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

RespectReadOnlyRanges

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

Declaration
public bool RespectReadOnlyRanges { get; set; }
Property Value
System.Boolean

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

Methods

AcceptAllRevisions()

Accepts all revisions in the document.

Declaration
public void AcceptAllRevisions()
Implements
IDocumentEditor.AcceptAllRevisions()

AcceptRevision(Revision)

Accepts a revision.

Declaration
public void AcceptRevision(Revision revision)
Parameters
Revision revision

The revision.

Implements
IDocumentEditor.AcceptRevision(Revision)

AddShapeTextBox(ShapeInline)

Initializes a text box element for a shape that does not have any.

Declaration
public void AddShapeTextBox(ShapeInline shape)
Parameters
ShapeInline shape

The ShapeInline.

Implements
IDocumentEditor.AddShapeTextBox(ShapeInline)

AddTabStop(TabStop)

Adds a tab stop to the current paragraph.

Declaration
public void AddTabStop(TabStop tabStop)
Parameters
TabStop tabStop

The tab stop.

Implements
IDocumentEditor.AddTabStop(TabStop)

AddTabStopRange(IEnumerable<TabStop>)

Adds a tab stop range to the current paragraph.

Declaration
public void AddTabStopRange(IEnumerable<TabStop> tabStops)
Parameters
System.Collections.Generic.IEnumerable<TabStop> tabStops

The tab stop collection.

Implements
IDocumentEditor.AddTabStopRange(IEnumerable<TabStop>)

BeginUndoGroup()

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

Declaration
public void BeginUndoGroup()
Implements
IDocumentEditor.BeginUndoGroup()

CancelUndoGroup()

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 System.InvalidOperationException is thrown.

Declaration
public void CancelUndoGroup()
Implements
IDocumentEditor.CancelUndoGroup()

ChangeAllFieldsDisplayMode(FieldDisplayMode)

Changes the display mode of all fields in the document.

Declaration
public void ChangeAllFieldsDisplayMode(FieldDisplayMode displayMode)
Parameters
FieldDisplayMode displayMode

The display mode which will be used for the fields.

Implements
IDocumentEditor.ChangeAllFieldsDisplayMode(FieldDisplayMode)

ChangeBaselineAlignment(BaselineAlignment)

Changes the baseline alignment of the selected content.

Declaration
public void ChangeBaselineAlignment(BaselineAlignment baselineAlignment)
Parameters
BaselineAlignment baselineAlignment

The baseline alignment to be applied.

Implements
IDocumentEditor.ChangeBaselineAlignment(BaselineAlignment)

ChangeBibliographicStyle(BibliographicReferenceStyleBase)

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

Declaration
public void ChangeBibliographicStyle(BibliographicReferenceStyleBase newBibliographicStyle)
Parameters
BibliographicReferenceStyleBase newBibliographicStyle

The new bibliographic style.

Implements
IDocumentEditor.ChangeBibliographicStyle(BibliographicReferenceStyleBase)

ChangeDifferentFirstPageHeaderFooter(Boolean)

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.

Declaration
public void ChangeDifferentFirstPageHeaderFooter(bool value)
Parameters
System.Boolean value

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(Boolean)

ChangeDifferentOddAndEvenPagesHeaderFooter(Boolean)

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

Declaration
public void ChangeDifferentOddAndEvenPagesHeaderFooter(bool value)
Parameters
System.Boolean value

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

Implements
IDocumentEditor.ChangeDifferentOddAndEvenPagesHeaderFooter(Boolean)

ChangeDocumentDefaultTabWidth(Double)

Changes default tab stop width for the document.

Declaration
public void ChangeDocumentDefaultTabWidth(double tabWidth)
Parameters
System.Double tabWidth

Width of the tab.

Implements
IDocumentEditor.ChangeDocumentDefaultTabWidth(Double)

ChangeDocumentElementTag(DocumentElement, String)

Changes the Tag property of a specified DocumentElement.

Declaration
public void ChangeDocumentElementTag(DocumentElement element, string tag)
Parameters
DocumentElement element

The DocumentElement.

System.String tag

The new tag value.

Implements
IDocumentEditor.ChangeDocumentElementTag(DocumentElement, String)

ChangeDocumentEndnotesFirstNumber(Int32)

Changes the first number of the endnotes in the document.

Declaration
public void ChangeDocumentEndnotesFirstNumber(int firstNumber)
Parameters
System.Int32 firstNumber

The first number.

Implements
IDocumentEditor.ChangeDocumentEndnotesFirstNumber(Int32)

ChangeDocumentEndnotesNumberingFormat(ListNumberingFormat)

Changes the numbering format of the endnotes in the document.

Declaration
public void ChangeDocumentEndnotesNumberingFormat(ListNumberingFormat numberingFormat)
Parameters
ListNumberingFormat numberingFormat

The numbering format.

Implements
IDocumentEditor.ChangeDocumentEndnotesNumberingFormat(ListNumberingFormat)

ChangeDocumentEndnotesNumberingRestartType(NumberingRestartType)

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

Declaration
public void ChangeDocumentEndnotesNumberingRestartType(NumberingRestartType numberingRestartType)
Parameters
NumberingRestartType numberingRestartType

The type of restart for the numbering.

Implements
IDocumentEditor.ChangeDocumentEndnotesNumberingRestartType(NumberingRestartType)

ChangeDocumentEndnotesPosition(EndnotesPosition)

Changes the position of the endnotes in the document.

Declaration
public void ChangeDocumentEndnotesPosition(EndnotesPosition endnotesPosition)
Parameters
EndnotesPosition endnotesPosition

The position.

Implements
IDocumentEditor.ChangeDocumentEndnotesPosition(EndnotesPosition)

ChangeDocumentFootnotesFirstNumber(Int32)

Changes the first number of the footnotes in the document.

Declaration
public void ChangeDocumentFootnotesFirstNumber(int firstNumber)
Parameters
System.Int32 firstNumber

The first number.

Implements
IDocumentEditor.ChangeDocumentFootnotesFirstNumber(Int32)

ChangeDocumentFootnotesNumberingFormat(ListNumberingFormat)

Changes the numbering format of the footnotes in the document.

Declaration
public void ChangeDocumentFootnotesNumberingFormat(ListNumberingFormat numberingFormat)
Parameters
ListNumberingFormat numberingFormat

The numbering format.

Implements
IDocumentEditor.ChangeDocumentFootnotesNumberingFormat(ListNumberingFormat)

ChangeDocumentFootnotesNumberingRestartType(NumberingRestartType)

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

Declaration
public void ChangeDocumentFootnotesNumberingRestartType(NumberingRestartType numberingRestartType)
Parameters
NumberingRestartType numberingRestartType

The type of restart for the numbering.

Implements
IDocumentEditor.ChangeDocumentFootnotesNumberingRestartType(NumberingRestartType)

ChangeDocumentFootnotesPosition(FootnotesPosition)

Changes the position of the footnotes in the document.

Declaration
public void ChangeDocumentFootnotesPosition(FootnotesPosition footnotesPosition)
Parameters
FootnotesPosition footnotesPosition

The footnotes position.

Implements
IDocumentEditor.ChangeDocumentFootnotesPosition(FootnotesPosition)

ChangeDocumentIsStrictLineBreakingRuleEnabled(Boolean)

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

Declaration
public void ChangeDocumentIsStrictLineBreakingRuleEnabled(bool value)
Parameters
System.Boolean value

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

Implements
IDocumentEditor.ChangeDocumentIsStrictLineBreakingRuleEnabled(Boolean)

ChangeDocumentLineBreakingRuleLanguage(LineBreakingRuleLanguage)

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

Declaration
public void ChangeDocumentLineBreakingRuleLanguage(LineBreakingRuleLanguage lineBreakingRuleLanguage)
Parameters
LineBreakingRuleLanguage lineBreakingRuleLanguage

The line breaking rule language.

Implements
IDocumentEditor.ChangeDocumentLineBreakingRuleLanguage(LineBreakingRuleLanguage)

ChangeDocumentNoLineBreaksAfterRule(LineBreakingRule)

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

Declaration
public void ChangeDocumentNoLineBreaksAfterRule(LineBreakingRule lineBreakingCharacterRule)
Parameters
LineBreakingRule lineBreakingCharacterRule

The line breaking character rule.

Implements
IDocumentEditor.ChangeDocumentNoLineBreaksAfterRule(LineBreakingRule)

ChangeDocumentNoLineBreaksBeforeRule(LineBreakingRule)

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

Declaration
public void ChangeDocumentNoLineBreaksBeforeRule(LineBreakingRule lineBreakingCharacterRule)
Parameters
LineBreakingRule lineBreakingCharacterRule

The rule.

Implements
IDocumentEditor.ChangeDocumentNoLineBreaksBeforeRule(LineBreakingRule)

ChangeFieldDisplayMode(FieldRangeStart, FieldDisplayMode)

Changes the display mode of a field.

Declaration
public void ChangeFieldDisplayMode(FieldRangeStart fieldRangeStart, FieldDisplayMode displayMode)
Parameters
FieldRangeStart fieldRangeStart

The field start.

FieldDisplayMode displayMode

The new display mode.

Implements
IDocumentEditor.ChangeFieldDisplayMode(FieldRangeStart, FieldDisplayMode)

ChangeFontFamily(FontFamily)

Changes the font family of the selected content.

Declaration
public void ChangeFontFamily(FontFamily fontFamily)
Parameters
System.Windows.Media.FontFamily fontFamily

The font family to be applied.

Implements
IDocumentEditor.ChangeFontFamily(FontFamily)

ChangeFontSize(Double)

Changes the size of the font of the selected content.

Declaration
public void ChangeFontSize(double fontSize)
Parameters
System.Double fontSize

Size of the font.

Implements
IDocumentEditor.ChangeFontSize(Double)

ChangeFontStyle(FontStyle)

Changes the font style of the selected content.

Declaration
public void ChangeFontStyle(FontStyle fontStyle)
Parameters
System.Windows.FontStyle fontStyle

The font style.

Implements
IDocumentEditor.ChangeFontStyle(FontStyle)

ChangeFontWeight(FontWeight)

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

Declaration
public void ChangeFontWeight(FontWeight fontWeight)
Parameters
System.Windows.FontWeight fontWeight

The font weight.

Implements
IDocumentEditor.ChangeFontWeight(FontWeight)

ChangeForeColor(Color)

Changes the fore color of the selected content.

Declaration
public void ChangeForeColor(Color color)
Parameters
System.Windows.Media.Color color

The color.

Implements
IDocumentEditor.ChangeForeColor(Color)

ChangeHighlightColor(Color)

Changes the highlight color of the selected content.

Declaration
public void ChangeHighlightColor(Color color)
Parameters
System.Windows.Media.Color color

The color.

Implements
IDocumentEditor.ChangeHighlightColor(Color)

ChangeImageRotateAngle(ImageInline, Double)

Changes the rotate angle of an image.

Declaration
public void ChangeImageRotateAngle(ImageInline image, double angle)
Parameters
ImageInline image

The ImageInline.

System.Double angle

The new angle.

Implements
IDocumentEditor.ChangeImageRotateAngle(ImageInline, Double)

ChangeImageSize(ImageInline, Size)

Changes the size of an image.

Declaration
public void ChangeImageSize(ImageInline image, Size size)
Parameters
ImageInline image

The ImageInline whose size should be changed.

System.Windows.Size size

The new size.

Implements
IDocumentEditor.ChangeImageSize(ImageInline, Size)

ChangeLineNumberingRestartType(LineNumberingRestartType)

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

Declaration
public void ChangeLineNumberingRestartType(LineNumberingRestartType restartType)
Parameters
LineNumberingRestartType restartType

The line numbering restart type.

Implements
IDocumentEditor.ChangeLineNumberingRestartType(LineNumberingRestartType)

ChangeParagraphAutomaticSpacingAfter(Boolean)

Changes the automatic spacing after of the selected paragraphs.

Declaration
public void ChangeParagraphAutomaticSpacingAfter(bool value)
Parameters
System.Boolean value

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

Implements
IDocumentEditor.ChangeParagraphAutomaticSpacingAfter(Boolean)

ChangeParagraphAutomaticSpacingBefore(Boolean)

Changes the automatic spacing before of the selected paragraphs.

Declaration
public void ChangeParagraphAutomaticSpacingBefore(bool value)
Parameters
System.Boolean value

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

Implements
IDocumentEditor.ChangeParagraphAutomaticSpacingBefore(Boolean)

ChangeParagraphBackground(Color)

Changes the background of the selected paragraphs.

Declaration
public void ChangeParagraphBackground(Color color)
Parameters
System.Windows.Media.Color color

The color.

Implements
IDocumentEditor.ChangeParagraphBackground(Color)

ChangeParagraphFirstLineIndent(Double)

Changes the first line indent of the selected paragraphs.

Declaration
public void ChangeParagraphFirstLineIndent(double firstLineIndent)
Parameters
System.Double firstLineIndent

The first line indent.

Implements
IDocumentEditor.ChangeParagraphFirstLineIndent(Double)

ChangeParagraphFlowDirection(FlowDirection)

Changes the flow direction of the selected paragraphs.

Declaration
public void ChangeParagraphFlowDirection(FlowDirection flowDirection)
Parameters
System.Windows.FlowDirection flowDirection

The flow direction.

Implements
IDocumentEditor.ChangeParagraphFlowDirection(FlowDirection)

ChangeParagraphIsLineBreakingRuleEnabled(Boolean)

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.

Declaration
public void ChangeParagraphIsLineBreakingRuleEnabled(bool value)
Parameters
System.Boolean value

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

Implements
IDocumentEditor.ChangeParagraphIsLineBreakingRuleEnabled(Boolean)

ChangeParagraphLeftIndent(Double)

Changes the left indent of the selected paragraphs.

Declaration
public void ChangeParagraphLeftIndent(double leftIndent)
Parameters
System.Double leftIndent

The left indent.

Implements
IDocumentEditor.ChangeParagraphLeftIndent(Double)

ChangeParagraphLineSpacing(Double)

Changes the line spacing of the selected paragraphs.

Declaration
public void ChangeParagraphLineSpacing(double lineSpacing)
Parameters
System.Double lineSpacing

The line spacing.

Implements
IDocumentEditor.ChangeParagraphLineSpacing(Double)

ChangeParagraphLineSpacing(Double, LineSpacingType)

Changes the line spacing of the selected paragraphs.

Declaration
public void ChangeParagraphLineSpacing(double lineSpacing, LineSpacingType lineSpacingType)
Parameters
System.Double lineSpacing

The line spacing.

LineSpacingType lineSpacingType

Type of the line spacing.

Implements
IDocumentEditor.ChangeParagraphLineSpacing(Double, LineSpacingType)

ChangeParagraphLineSpacingType(LineSpacingType)

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

Declaration
public void ChangeParagraphLineSpacingType(LineSpacingType lineSpacingType)
Parameters
LineSpacingType lineSpacingType

Type of the line spacing.

Implements
IDocumentEditor.ChangeParagraphLineSpacingType(LineSpacingType)

ChangeParagraphListLevel(Int32)

Changes the list level of the selected paragraphs.

Declaration
public void ChangeParagraphListLevel(int listLevel)
Parameters
System.Int32 listLevel

The list level.

Implements
IDocumentEditor.ChangeParagraphListLevel(Int32)

ChangeParagraphListStyle(ListStyle)

Changes the paragraph list style of the selected paragraphs.

Declaration
public void ChangeParagraphListStyle(ListStyle style)
Parameters
ListStyle style

The style.

Implements
IDocumentEditor.ChangeParagraphListStyle(ListStyle)

ChangeParagraphListStyle(ListStyle, IEnumerable<Paragraph>)

Changes the list style of the specified paragraphs.

Declaration
public void ChangeParagraphListStyle(ListStyle style, IEnumerable<Paragraph> paragraphs)
Parameters
ListStyle style

The style.

System.Collections.Generic.IEnumerable<Paragraph> paragraphs

The paragraphs.

ChangeParagraphRightIndent(Double)

Changes the right indent of the selected paragraphs.

Declaration
public void ChangeParagraphRightIndent(double rightIndent)
Parameters
System.Double rightIndent

The right indent.

Implements
IDocumentEditor.ChangeParagraphRightIndent(Double)

ChangeParagraphSpacingAfter(Double)

Changes the spacing after of the selected paragraphs.

Declaration
public void ChangeParagraphSpacingAfter(double spacingAfter)
Parameters
System.Double spacingAfter

The spacing after.

Implements
IDocumentEditor.ChangeParagraphSpacingAfter(Double)

ChangeParagraphSpacingBefore(Double)

Changes the spacing before of the selected paragraphs.

Declaration
public void ChangeParagraphSpacingBefore(double spacingBefore)
Parameters
System.Double spacingBefore

The spacing before.

Implements
IDocumentEditor.ChangeParagraphSpacingBefore(Double)

ChangeParagraphStyle(StyleDefinition)

Changes the paragraph style of the selected content.

Declaration
public void ChangeParagraphStyle(StyleDefinition styleInfo)
Parameters
StyleDefinition styleInfo

The style information.

Implements
IDocumentEditor.ChangeParagraphStyle(StyleDefinition)

ChangeParagraphTextAlignment(RadTextAlignment)

Changes the text alignment of the selected paragraphs.

Declaration
public void ChangeParagraphTextAlignment(RadTextAlignment alignment)
Parameters
RadTextAlignment alignment

The alignment.

Implements
IDocumentEditor.ChangeParagraphTextAlignment(RadTextAlignment)

ChangeRotateTextWithShape(ShapeInline, Boolean)

Changes a value that indicates whether shape's text box element will rotate when the shape is rotated.

Declaration
public void ChangeRotateTextWithShape(ShapeInline shape, bool shouldRotate)
Parameters
ShapeInline shape

The ShapeInline.

System.Boolean shouldRotate

The new value that indicates text box element rotation behavior.

Implements
IDocumentEditor.ChangeRotateTextWithShape(ShapeInline, Boolean)

ChangeSectionActualPageMargin(Padding)

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

Declaration
public void ChangeSectionActualPageMargin(Padding sectionMargin)
Parameters
Padding sectionMargin

The margin.

Implements
IDocumentEditor.ChangeSectionActualPageMargin(Padding)

ChangeSectionColumns(SectionColumnCollection)

Changes the section columns for the selected sections.

Declaration
public void ChangeSectionColumns(SectionColumnCollection sectionColumns)
Parameters
SectionColumnCollection sectionColumns

The section columns.

Implements
IDocumentEditor.ChangeSectionColumns(SectionColumnCollection)

ChangeSectionColumns(SectionColumnsLayout)

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

Declaration
public void ChangeSectionColumns(SectionColumnsLayout sectionColumnsLayout)
Parameters
SectionColumnsLayout sectionColumnsLayout

The section columns layout.

Implements
IDocumentEditor.ChangeSectionColumns(SectionColumnsLayout)

ChangeSectionEndnotesFirstNumber(Int32)

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

Declaration
public void ChangeSectionEndnotesFirstNumber(int firstNumber)
Parameters
System.Int32 firstNumber

The first number.

Implements
IDocumentEditor.ChangeSectionEndnotesFirstNumber(Int32)

ChangeSectionEndnotesNumberingFormat(ListNumberingFormat)

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

Declaration
public void ChangeSectionEndnotesNumberingFormat(ListNumberingFormat numberingFormat)
Parameters
ListNumberingFormat numberingFormat

The numbering format.

Implements
IDocumentEditor.ChangeSectionEndnotesNumberingFormat(ListNumberingFormat)

ChangeSectionEndnotesNumberingRestartType(NumberingRestartType)

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

Declaration
public void ChangeSectionEndnotesNumberingRestartType(NumberingRestartType numberingRestartType)
Parameters
NumberingRestartType numberingRestartType

The type of restart for the numbering.

Implements
IDocumentEditor.ChangeSectionEndnotesNumberingRestartType(NumberingRestartType)

ChangeSectionFirstPageNumber(Nullable<Int32>)

Changes the first page number of the selected sections.

Declaration
public void ChangeSectionFirstPageNumber(Nullable<int> firstPageNumber)
Parameters
System.Nullable<System.Int32> firstPageNumber

The first page number.

Implements
IDocumentEditor.ChangeSectionFirstPageNumber(Nullable<Int32>)

ChangeSectionFooter(Section, HeaderFooterType, Footer)

Changes the section footer.

Declaration
public void ChangeSectionFooter(Section section, HeaderFooterType footerType, Footer footer)
Parameters
Section section

The section.

HeaderFooterType footerType

Type of the footer.

Footer footer

The footer.

Implements
IDocumentEditor.ChangeSectionFooter(Section, HeaderFooterType, Footer)

ChangeSectionFooterBottomMargin(Int32)

Changes the footer bottom margin of the selected sections.

Declaration
public void ChangeSectionFooterBottomMargin(int sectionFooterBottomMargin)
Parameters
System.Int32 sectionFooterBottomMargin

The section footer bottom margin.

Implements
IDocumentEditor.ChangeSectionFooterBottomMargin(Int32)

ChangeSectionFooterLinkToPrevious(Section, HeaderFooterType, Boolean)

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

Declaration
public void ChangeSectionFooterLinkToPrevious(Section section, HeaderFooterType footerType, bool value)
Parameters
Section section

The section.

HeaderFooterType footerType

Type of the footer.

System.Boolean value

true if the footer should be linked.

Implements
IDocumentEditor.ChangeSectionFooterLinkToPrevious(Section, HeaderFooterType, Boolean)

ChangeSectionFootnotesFirstNumber(Int32)

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

Declaration
public void ChangeSectionFootnotesFirstNumber(int firstNumber)
Parameters
System.Int32 firstNumber

The first number.

Implements
IDocumentEditor.ChangeSectionFootnotesFirstNumber(Int32)

ChangeSectionFootnotesNumberingFormat(ListNumberingFormat)

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

Declaration
public void ChangeSectionFootnotesNumberingFormat(ListNumberingFormat numberingFormat)
Parameters
ListNumberingFormat numberingFormat

The numbering format.

Implements
IDocumentEditor.ChangeSectionFootnotesNumberingFormat(ListNumberingFormat)

ChangeSectionFootnotesNumberingRestartType(NumberingRestartType)

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

Declaration
public void ChangeSectionFootnotesNumberingRestartType(NumberingRestartType numberingRestartType)
Parameters
NumberingRestartType numberingRestartType

The type of restart for the numbering.

Implements
IDocumentEditor.ChangeSectionFootnotesNumberingRestartType(NumberingRestartType)

ChangeSectionHeader(Section, HeaderFooterType, Header)

Changes the section header.

Declaration
public void ChangeSectionHeader(Section section, HeaderFooterType headerType, Header header)
Parameters
Section section

The section.

HeaderFooterType headerType

Type of the header.

Header header

The header.

Implements
IDocumentEditor.ChangeSectionHeader(Section, HeaderFooterType, Header)

ChangeSectionHeaderLinkToPrevious(Section, HeaderFooterType, Boolean)

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

Declaration
public void ChangeSectionHeaderLinkToPrevious(Section section, HeaderFooterType headerType, bool value)
Parameters
Section section

The section.

HeaderFooterType headerType

Type of the header.

System.Boolean value

true if the header should be linked.

Implements
IDocumentEditor.ChangeSectionHeaderLinkToPrevious(Section, HeaderFooterType, Boolean)

ChangeSectionHeaderTopMargin(Int32)

Changes the header top margin of the selected sections.

Declaration
public void ChangeSectionHeaderTopMargin(int sectionHeaderTopMargin)
Parameters
System.Int32 sectionHeaderTopMargin

The section header top margin.

Implements
IDocumentEditor.ChangeSectionHeaderTopMargin(Int32)

ChangeSectionLineNumbering(LineNumbering)

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

Declaration
public void ChangeSectionLineNumbering(LineNumbering lineNumbering)
Parameters
LineNumbering lineNumbering

The line numbering.

Implements
IDocumentEditor.ChangeSectionLineNumbering(LineNumbering)

ChangeSectionPageMargin(Padding)

Changes the page margin of the selected sections.

Declaration
public void ChangeSectionPageMargin(Padding sectionMargin)
Parameters
Padding sectionMargin

The margin.

Implements
IDocumentEditor.ChangeSectionPageMargin(Padding)

ChangeSectionPageOrientation(PageOrientation)

Changes the page orientation of the selected sections.

Declaration
public void ChangeSectionPageOrientation(PageOrientation sectionPageOrientation)
Parameters
Telerik.Windows.Documents.Model.PageOrientation sectionPageOrientation

The page orientation.

Implements
IDocumentEditor.ChangeSectionPageOrientation(PageOrientation)

ChangeSectionPageSize(Size)

Changes the page size of the selected sections.

Declaration
public void ChangeSectionPageSize(Size newSize)
Parameters
System.Windows.Size newSize

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

Implements
IDocumentEditor.ChangeSectionPageSize(Size)

ChangeShapeAutoFitToText(ShapeInline, Boolean)

Changes a value that indicates whether the parent shape should be horizontally resized in accordance to the text box element's width.

Declaration
public void ChangeShapeAutoFitToText(ShapeInline shape, bool shouldAutoFit)
Parameters
ShapeInline shape

The ShapeInline.

System.Boolean shouldAutoFit

The new value that indicates text box element wrap behavior.

Implements
IDocumentEditor.ChangeShapeAutoFitToText(ShapeInline, Boolean)

ChangeShapeFill(ShapeInline, IShapeFill)

Changes the fill of a shape.

Declaration
public void ChangeShapeFill(ShapeInline shape, IShapeFill fill)
Parameters
ShapeInline shape

The ShapeInline.

IShapeFill fill

The new fill.

Implements
IDocumentEditor.ChangeShapeFill(ShapeInline, IShapeFill)

ChangeShapeOutlineDash(ShapeInline, LineDashType)

Changes the dashing pattern of a shape outline.

Declaration
public void ChangeShapeOutlineDash(ShapeInline shape, LineDashType dashType)
Parameters
ShapeInline shape

The ShapeInline.

LineDashType dashType

The new dashing pattern.

Implements
IDocumentEditor.ChangeShapeOutlineDash(ShapeInline, LineDashType)

ChangeShapeOutlineFill(ShapeInline, IShapeOutlineFill)

Changes the fill of a shape outline.

Declaration
public void ChangeShapeOutlineFill(ShapeInline shape, IShapeOutlineFill lineFill)
Parameters
ShapeInline shape

The ShapeInline.

IShapeOutlineFill lineFill

The new fill.

Implements
IDocumentEditor.ChangeShapeOutlineFill(ShapeInline, IShapeOutlineFill)

ChangeShapeOutlineWidth(ShapeInline, Double)

Changes the width a shape outline.

Declaration
public void ChangeShapeOutlineWidth(ShapeInline shape, double width)
Parameters
ShapeInline shape

The ShapeInline.

System.Double width

The new width.

Implements
IDocumentEditor.ChangeShapeOutlineWidth(ShapeInline, Double)

ChangeShapeRotateAngle(ShapeInline, Double)

Changes the rotate angle of a shape.

Declaration
public void ChangeShapeRotateAngle(ShapeInline shape, double angle)
Parameters
ShapeInline shape

The ShapeInline.

System.Double angle

The new angle.

Implements
IDocumentEditor.ChangeShapeRotateAngle(ShapeInline, Double)

ChangeShapeSize(ShapeInline, Size)

Changes the size of a shape.

Declaration
public void ChangeShapeSize(ShapeInline shape, Size size)
Parameters
ShapeInline shape

The ShapeInline whose size should be changed.

System.Windows.Size size

The new size.

Implements
IDocumentEditor.ChangeShapeSize(ShapeInline, Size)

ChangeShapeTextBottomMargin(ShapeInline, Double)

Changes the bottom margin (inset) of the shape's text box element.

Declaration
public void ChangeShapeTextBottomMargin(ShapeInline shape, double margin)
Parameters
ShapeInline shape

The ShapeInline.

System.Double margin

The new bottom margin.

Implements
IDocumentEditor.ChangeShapeTextBottomMargin(ShapeInline, Double)

ChangeShapeTextFill(ShapeInline, IShapeFill)

Changes the fill of a shape's text.

Declaration
public void ChangeShapeTextFill(ShapeInline shape, IShapeFill fill)
Parameters
ShapeInline shape

The ShapeInline.

IShapeFill fill

The new fill.

Implements
IDocumentEditor.ChangeShapeTextFill(ShapeInline, IShapeFill)

ChangeShapeTextLeftMargin(ShapeInline, Double)

Changes the left margin (inset) of the shape's text box element.

Declaration
public void ChangeShapeTextLeftMargin(ShapeInline shape, double margin)
Parameters
ShapeInline shape

The ShapeInline.

System.Double margin

The new left margin.

Implements
IDocumentEditor.ChangeShapeTextLeftMargin(ShapeInline, Double)

ChangeShapeTextOutlineDash(ShapeInline, LineDashType)

Changes the dash of a shape's text outline dash.

Declaration
public void ChangeShapeTextOutlineDash(ShapeInline shape, LineDashType dash)
Parameters
ShapeInline shape

The ShapeInline which is modified.

LineDashType dash

The new dashing pattern.

Implements
IDocumentEditor.ChangeShapeTextOutlineDash(ShapeInline, LineDashType)

ChangeShapeTextOutlineFill(ShapeInline, IShapeOutlineFill)

Changes the fill of a shape's text outline.

Declaration
public void ChangeShapeTextOutlineFill(ShapeInline shape, IShapeOutlineFill fill)
Parameters
ShapeInline shape

The ShapeInline.

IShapeOutlineFill fill

The new fill.

Implements
IDocumentEditor.ChangeShapeTextOutlineFill(ShapeInline, IShapeOutlineFill)

ChangeShapeTextOutlineWidth(ShapeInline, Double)

Changes the width of a shape's outline width.

Declaration
public void ChangeShapeTextOutlineWidth(ShapeInline shape, double width)
Parameters
ShapeInline shape

The ShapeInline which is modified.

System.Double width

The new width value.

Implements
IDocumentEditor.ChangeShapeTextOutlineWidth(ShapeInline, Double)

ChangeShapeTextRightMargin(ShapeInline, Double)

Changes the right margin (inset) of the shape's text box element.

Declaration
public void ChangeShapeTextRightMargin(ShapeInline shape, double margin)
Parameters
ShapeInline shape

The ShapeInline.

System.Double margin

The new right margin.

Implements
IDocumentEditor.ChangeShapeTextRightMargin(ShapeInline, Double)

ChangeShapeTextRotation(ShapeInline, TextRotation)

Changes the rotation angle of the shape's text box element.

Declaration
public void ChangeShapeTextRotation(ShapeInline shape, TextRotation rotation)
Parameters
ShapeInline shape

The ShapeInline.

TextRotation rotation

The new rotation angle (in degrees).

Implements
IDocumentEditor.ChangeShapeTextRotation(ShapeInline, TextRotation)

ChangeShapeTextTopMargin(ShapeInline, Double)

Changes the top margin (inset) of the shape's text box element.

Declaration
public void ChangeShapeTextTopMargin(ShapeInline shape, double margin)
Parameters
ShapeInline shape

The ShapeInline.

System.Double margin

The new top margin.

Implements
IDocumentEditor.ChangeShapeTextTopMargin(ShapeInline, Double)

ChangeShapeTextVerticalAlignment(ShapeInline, RadVerticalAlignment)

Changes the vertical alignment of a shape text box element.

Declaration
public void ChangeShapeTextVerticalAlignment(ShapeInline shape, RadVerticalAlignment alignment)
Parameters
ShapeInline shape

The ShapeInline.

RadVerticalAlignment alignment

The new vertical alignment.

Implements
IDocumentEditor.ChangeShapeTextVerticalAlignment(ShapeInline, RadVerticalAlignment)

ChangeShapeTextWrap(ShapeInline, Boolean)

Changes a value that indicates whether shape's text box element should wrap text vertically.

Declaration
public void ChangeShapeTextWrap(ShapeInline shape, bool shouldWrap)
Parameters
ShapeInline shape

The ShapeInline.

System.Boolean shouldWrap

The new value that indicates text box element wrap behavior.

Implements
IDocumentEditor.ChangeShapeTextWrap(ShapeInline, Boolean)

ChangeSpanStyle(StyleDefinition)

Changes the span style of the selected content.

Declaration
public void ChangeSpanStyle(StyleDefinition styleInfo)
Parameters
StyleDefinition styleInfo

The style information.

Implements
IDocumentEditor.ChangeSpanStyle(StyleDefinition)

ChangeStrikethrough(Boolean)

Changes the strike-through of the selected content.

Declaration
public void ChangeStrikethrough(bool isStriketrough)
Parameters
System.Boolean isStriketrough

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

Implements
IDocumentEditor.ChangeStrikethrough(Boolean)

ChangeStyleName(String)

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

Declaration
public void ChangeStyleName(string styleName)
Parameters
System.String styleName

Name of the style to be applied.

Implements
IDocumentEditor.ChangeStyleName(String)

ChangeStyleName(String, Boolean)

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

Declaration
public void ChangeStyleName(string styleName, bool useLinkedStyle)
Parameters
System.String styleName

Name of the style.

System.Boolean useLinkedStyle

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

Implements
IDocumentEditor.ChangeStyleName(String, Boolean)

ChangeTableBorders(TableBorders)

Changes the borders of the selected tables.

Declaration
public void ChangeTableBorders(TableBorders tableBorders)
Parameters
TableBorders tableBorders

The table borders.

Implements
IDocumentEditor.ChangeTableBorders(TableBorders)

ChangeTableCellBackground(Color)

Changes the background of the selected table cells.

Declaration
public void ChangeTableCellBackground(Color color)
Parameters
System.Windows.Media.Color color

The color.

Implements
IDocumentEditor.ChangeTableCellBackground(Color)

ChangeTableCellBorders(Border)

Changes the borders of the selected table cells.

Declaration
public void ChangeTableCellBorders(Border border)
Parameters
Border border

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

Implements
IDocumentEditor.ChangeTableCellBorders(Border)

ChangeTableCellBorders(TableCellBorders)

Changes the borders of the selected table cells.

Declaration
public void ChangeTableCellBorders(TableCellBorders tableCellBorders)
Parameters
TableCellBorders tableCellBorders

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

Implements
IDocumentEditor.ChangeTableCellBorders(TableCellBorders)

ChangeTableCellContentAlignment(RadTextAlignment, RadVerticalAlignment)

Changes the content alignment of the selected table cells.

Declaration
public void ChangeTableCellContentAlignment(RadTextAlignment textAlignment, RadVerticalAlignment verticalAlignment)
Parameters
RadTextAlignment textAlignment

The text alignment.

RadVerticalAlignment verticalAlignment

The vertical alignment.

Implements
IDocumentEditor.ChangeTableCellContentAlignment(RadTextAlignment, RadVerticalAlignment)

ChangeTableCellHorizontalContentAlignment(RadTextAlignment)

Changes the horizontal content alignment of the selected table cells.

Declaration
public void ChangeTableCellHorizontalContentAlignment(RadTextAlignment textAlignment)
Parameters
RadTextAlignment textAlignment

The alignment.

Implements
IDocumentEditor.ChangeTableCellHorizontalContentAlignment(RadTextAlignment)

ChangeTableCellPadding(Padding)

Changes the padding of the selected table cells.

Declaration
public void ChangeTableCellPadding(Padding padding)
Parameters
Padding padding

The padding.

Implements
IDocumentEditor.ChangeTableCellPadding(Padding)

ChangeTableCellSpacing(Double)

Changes the cell spacing of the selected tables.

Declaration
public void ChangeTableCellSpacing(double cellSpacing)
Parameters
System.Double cellSpacing

The cell spacing.

Implements
IDocumentEditor.ChangeTableCellSpacing(Double)

ChangeTableCellVerticalContentAlignment(RadVerticalAlignment)

Changes the vertical content alignment of the selected table cells.

Declaration
public void ChangeTableCellVerticalContentAlignment(RadVerticalAlignment verticalAlignment)
Parameters
RadVerticalAlignment verticalAlignment

The alignment.

Implements
IDocumentEditor.ChangeTableCellVerticalContentAlignment(RadVerticalAlignment)

ChangeTableDefaultCellPadding(Padding)

Changes the default cell padding of the selected tables.

Declaration
public void ChangeTableDefaultCellPadding(Padding padding)
Parameters
Padding padding

The padding which will be used as a default value.

Implements
IDocumentEditor.ChangeTableDefaultCellPadding(Padding)

ChangeTableFlowDirection(FlowDirection)

Changes the flow direction of the selected tables.

Declaration
public void ChangeTableFlowDirection(FlowDirection flowDirection)
Parameters
System.Windows.FlowDirection flowDirection

The flow direction.

Implements
IDocumentEditor.ChangeTableFlowDirection(FlowDirection)

ChangeTableGridColumnWidth(Table, Int32, TableWidthUnit)

Changes the width of a table column.

Declaration
public void ChangeTableGridColumnWidth(Table table, int columnIndex, TableWidthUnit width)
Parameters
Table table

The table.

System.Int32 columnIndex

The index of the column.

TableWidthUnit width

The new value for the column width. If the type of the width is not specified, Fixed will be used.

Implements
IDocumentEditor.ChangeTableGridColumnWidth(Table, Int32, TableWidthUnit)

ChangeTableHorizontalAlignment(RadHorizontalAlignment)

Changes the horizontal alignment of the selected tables.

Declaration
public void ChangeTableHorizontalAlignment(RadHorizontalAlignment alignment)
Parameters
RadHorizontalAlignment alignment

The alignment.

Implements
IDocumentEditor.ChangeTableHorizontalAlignment(RadHorizontalAlignment)

ChangeTableIndent(Double)

Changes the indent of the selected tables.

Declaration
public void ChangeTableIndent(double indent)
Parameters
System.Double indent

The indent.

Implements
IDocumentEditor.ChangeTableIndent(Double)

ChangeTableLayoutMode(Table, TableLayoutMode)

Changes the layout mode of the selected tables.

Declaration
public void ChangeTableLayoutMode(Table table, TableLayoutMode tableLayoutMode)
Parameters
Table table

The table.

TableLayoutMode tableLayoutMode

The table layout mode.

Implements
IDocumentEditor.ChangeTableLayoutMode(Table, TableLayoutMode)

ChangeTableLook(TableLook)

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.

Declaration
public void ChangeTableLook(TableLook tableLook)
Parameters
TableLook tableLook

The table look.

Implements
IDocumentEditor.ChangeTableLook(TableLook)

ChangeTablePreferredWidth(TableWidthUnit)

Changes the preferred width of the selected tables.

Declaration
public void ChangeTablePreferredWidth(TableWidthUnit tableWidth)
Parameters
TableWidthUnit tableWidth

Width of the table.

Implements
IDocumentEditor.ChangeTablePreferredWidth(TableWidthUnit)

ChangeTableRowHeight(TableRow, Double)

Changes the height of a table row.

Declaration
public void ChangeTableRowHeight(TableRow tableRow, double height)
Parameters
TableRow tableRow

The table row.

System.Double height

The height.

Implements
IDocumentEditor.ChangeTableRowHeight(TableRow, Double)

ChangeTableRowRepeatOnEveryPage(TableRow)

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

Declaration
public void ChangeTableRowRepeatOnEveryPage(TableRow tableRow)
Parameters
TableRow tableRow

The table row.

Implements
IDocumentEditor.ChangeTableRowRepeatOnEveryPage(TableRow)

ChangeUnderlineColor(Color)

Changes the underline color of the selected content.

Declaration
public void ChangeUnderlineColor(Color color)
Parameters
System.Windows.Media.Color color

The color.

Implements
IDocumentEditor.ChangeUnderlineColor(Color)

ChangeUnderlineDecoration(IUnderlineUIDecorationProvider)

Changes the underline decoration of the selected content.

Declaration
public void ChangeUnderlineDecoration(IUnderlineUIDecorationProvider decoration)
Parameters
IUnderlineUIDecorationProvider decoration

The value.

Implements
IDocumentEditor.ChangeUnderlineDecoration(IUnderlineUIDecorationProvider)

ClearAllFormatting()

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

Declaration
public void ClearAllFormatting()
Implements
IDocumentEditor.ClearAllFormatting()

ClearFormatting()

Clears the character formatting of the selected content.

Declaration
public void ClearFormatting()
Implements
IDocumentEditor.ClearFormatting()

ClearParagraphFormatting()

Clears the paragraph formatting of the selected content.

Declaration
public void ClearParagraphFormatting()

ClearTabStops()

Clears the tab stops inside the selected paragraphs.

Declaration
public void ClearTabStops()
Implements
IDocumentEditor.ClearTabStops()

ContinueListNumbering()

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.

Declaration
public bool ContinueListNumbering()
Returns
System.Boolean

A boolean value indicating whether the operation completed successfully.

Implements
IDocumentEditor.ContinueListNumbering()

Copy()

Copies the currently selected document elements into the clipboard.

Declaration
public void Copy()
Implements
IDocumentEditor.Copy()

CopyFormatting()

Copies the formatting of the current selection.

Declaration
public bool CopyFormatting()
Returns
System.Boolean

A value indicating whether the copy was successful.

Implements
IDocumentEditor.CopyFormatting()

Cut()

Cuts the currently selected document elements into the clipboard.

Declaration
public void Cut()
Implements
IDocumentEditor.Cut()

DecreaseLeftIndent()

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

Declaration
public void DecreaseLeftIndent()

DecrementFontSize()

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

Declaration
public void DecrementFontSize()
Implements
IDocumentEditor.DecrementFontSize()

DecrementParagraphLeftIndent()

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

Declaration
public void DecrementParagraphLeftIndent()
Implements
IDocumentEditor.DecrementParagraphLeftIndent()

Delete(Boolean)

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

Declaration
public bool Delete(bool deletePrevious)
Parameters
System.Boolean deletePrevious

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

Returns
System.Boolean

Implements
IDocumentEditor.Delete(Boolean)

DeleteAllComments()

Deletes all comments in the document.

Declaration
public void DeleteAllComments()
Implements
IDocumentEditor.DeleteAllComments()

DeleteAnnotationRange(AnnotationRangeStart)

Deletes an annotation range.

Declaration
public void DeleteAnnotationRange(AnnotationRangeStart rangeStart)
Parameters
AnnotationRangeStart rangeStart

The start of the range that will be deleted.

Implements
IDocumentEditor.DeleteAnnotationRange(AnnotationRangeStart)

DeleteBookmark(String)

Deletes a bookmark.

Declaration
public void DeleteBookmark(string bookmarkName)
Parameters
System.String bookmarkName

Name of the bookmark.

Implements
IDocumentEditor.DeleteBookmark(String)

DeleteBookmark(BookmarkRangeStart)

Deletes a bookmark.

Declaration
public void DeleteBookmark(BookmarkRangeStart bookmarkRangeStart)
Parameters
BookmarkRangeStart bookmarkRangeStart

The bookmark range start.

Implements
IDocumentEditor.DeleteBookmark(BookmarkRangeStart)

DeleteCodeBlock(CodeAnnotationRangeStart)

Deletes a code block.

Declaration
public void DeleteCodeBlock(CodeAnnotationRangeStart rangeStart)
Parameters
CodeAnnotationRangeStart rangeStart

The CodeAnnotationRangeStart of the block to delete.

Implements
IDocumentEditor.DeleteCodeBlock(CodeAnnotationRangeStart)

DeleteComment()

Deletes the current comment.

Declaration
public void DeleteComment()
Implements
IDocumentEditor.DeleteComment()

DeleteComment(CommentRangeStart)

Deletes a comment.

Declaration
public void DeleteComment(CommentRangeStart commentRangeStart)
Parameters
CommentRangeStart commentRangeStart

The comment range start.

Implements
IDocumentEditor.DeleteComment(CommentRangeStart)

DeleteHyperlink()

Deletes the current hyperlink.

Declaration
public void DeleteHyperlink()
Implements
IDocumentEditor.DeleteHyperlink()

DeleteHyperlink(HyperlinkRangeStart)

Deletes a hyperlink.

Declaration
public void DeleteHyperlink(HyperlinkRangeStart hyperlinkRangeStart)
Parameters
HyperlinkRangeStart hyperlinkRangeStart

The hyperlink range start.

Implements
IDocumentEditor.DeleteHyperlink(HyperlinkRangeStart)

DeletePermissionRange(PermissionRangeStart)

Deletes a permission range.

Declaration
public void DeletePermissionRange(PermissionRangeStart permissionRangeStart)
Parameters
PermissionRangeStart permissionRangeStart

The permission range start.

Implements
IDocumentEditor.DeletePermissionRange(PermissionRangeStart)

DeleteReadOnlyRange()

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

Declaration
public void DeleteReadOnlyRange()
Implements
IDocumentEditor.DeleteReadOnlyRange()

DeleteReadOnlyRange(ReadOnlyRangeStart)

Deletes read only range.

Declaration
public void DeleteReadOnlyRange(ReadOnlyRangeStart readOnlyRangeStart)
Parameters
ReadOnlyRangeStart readOnlyRangeStart

The read only range that is to be deleted.

Implements
IDocumentEditor.DeleteReadOnlyRange(ReadOnlyRangeStart)

DeleteTable()

Deletes the table the current caret position is in.

Declaration
public void DeleteTable()
Implements
IDocumentEditor.DeleteTable()

DeleteTable(Table)

Deletes a table.

Declaration
public void DeleteTable(Table table)
Parameters
Table table

The Table to delete.

Implements
IDocumentEditor.DeleteTable(Table)

DeleteTableColumn()

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

Declaration
public void DeleteTableColumn()
Implements
IDocumentEditor.DeleteTableColumn()

DeleteTableRow()

Deletes the table row under the caret position.

Declaration
public void DeleteTableRow()
Implements
IDocumentEditor.DeleteTableRow()

DeleteTableRow(TableRow)

Deletes a table row.

Declaration
public void DeleteTableRow(TableRow row)
Parameters
TableRow row

The TableRow to delete.

Implements
IDocumentEditor.DeleteTableRow(TableRow)

EditShapeTextBox(ShapeInline)

Initiates editing of a shape's text box element.

Declaration
public void EditShapeTextBox(ShapeInline shape)
Parameters
ShapeInline shape

The ShapeInline.

Implements
IDocumentEditor.EditShapeTextBox(ShapeInline)

EndUndoGroup()

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

Declaration
public void EndUndoGroup()
Implements
IDocumentEditor.EndUndoGroup()

EndUndoGroup(String)

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

Declaration
public void EndUndoGroup(string groupDisplayText)
Parameters
System.String groupDisplayText

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

Implements
IDocumentEditor.EndUndoGroup(String)

HasEditPermissions()

Declaration
public bool HasEditPermissions()
Returns
System.Boolean

Implements
IDocumentEditor.HasEditPermissions()

IncreaseLeftIndent()

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

Declaration
public void IncreaseLeftIndent()

IncrementFontSize()

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

Declaration
public void IncrementFontSize()
Implements
IDocumentEditor.IncrementFontSize()

IncrementParagraphLeftIndent()

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

Declaration
public void IncrementParagraphLeftIndent()
Implements
IDocumentEditor.IncrementParagraphLeftIndent()

IncrementParagraphListLevel(Int32)

Increments the paragraph list level of the selected paragraphs.

Declaration
public void IncrementParagraphListLevel(int value)
Parameters
System.Int32 value

A value determining how much the level should be increased.

Insert(String)

Inserts text into the document at the current caret position.

Declaration
public bool Insert(string text)
Parameters
System.String text

The text to insert.

Returns
System.Boolean

Implements
IDocumentEditor.Insert(String)

InsertAnnotationRange(AnnotationRangeStart, AnnotationRangeEnd)

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

Declaration
public void InsertAnnotationRange(AnnotationRangeStart rangeStart, AnnotationRangeEnd rangeEnd)
Parameters
AnnotationRangeStart rangeStart

The annotation range start.

AnnotationRangeEnd rangeEnd

The annotation range end.

Implements
IDocumentEditor.InsertAnnotationRange(AnnotationRangeStart, AnnotationRangeEnd)

InsertBookmark(String)

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

Declaration
public void InsertBookmark(string bookmarkName)
Parameters
System.String bookmarkName

Name of the bookmark.

Implements
IDocumentEditor.InsertBookmark(String)

InsertCaption(CaptionDefinition, String, Boolean, Boolean)

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

Declaration
public void InsertCaption(CaptionDefinition captionDefinition, string caption, bool includeLabel, bool insertBelow)
Parameters
CaptionDefinition captionDefinition

The definition of the caption.

System.String caption

The caption text to be used.

System.Boolean includeLabel

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

System.Boolean insertBelow

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

Implements
IDocumentEditor.InsertCaption(CaptionDefinition, String, Boolean, Boolean)

InsertCodeBlock(String, CodeFormattingSettings)

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

Declaration
public void InsertCodeBlock(string code, CodeFormattingSettings settings)
Parameters
System.String code

The code to insert.

CodeFormattingSettings settings

The settings which will be used for the code block.

Implements
IDocumentEditor.InsertCodeBlock(String, CodeFormattingSettings)

InsertColumnBreak()

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

Declaration
public void InsertColumnBreak()
Implements
IDocumentEditor.InsertColumnBreak()

InsertComment(Comment)

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

Declaration
public void InsertComment(Comment comment)
Parameters
Comment comment

The comment.

Implements
IDocumentEditor.InsertComment(Comment)

InsertCrossReferenceToBookmark(String, ReferenceContentType, Boolean)

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

Declaration
public void InsertCrossReferenceToBookmark(string bookmarkName, ReferenceContentType contentType, bool insertAsHyperlink)
Parameters
System.String bookmarkName

Name of the bookmark.

ReferenceContentType contentType

Type of the content.

System.Boolean insertAsHyperlink

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

Implements
IDocumentEditor.InsertCrossReferenceToBookmark(String, ReferenceContentType, Boolean)

InsertCrossReferenceToCaption(Paragraph, ReferenceContentType, Boolean)

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

Declaration
public void InsertCrossReferenceToCaption(Paragraph captionParagraph, ReferenceContentType contentType, bool insertAsHyperlink)
Parameters
Paragraph captionParagraph

The paragraph containing the caption sequence field.

ReferenceContentType contentType

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

System.Boolean insertAsHyperlink

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

Implements
IDocumentEditor.InsertCrossReferenceToCaption(Paragraph, ReferenceContentType, Boolean)

InsertCrossReferenceToHeading(Paragraph, ReferenceContentType, Boolean)

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

Declaration
public void InsertCrossReferenceToHeading(Paragraph headingParagraph, ReferenceContentType contentType, bool insertAsHyperlink)
Parameters
Paragraph headingParagraph

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

ReferenceContentType contentType

Type of the content.

System.Boolean insertAsHyperlink

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

Implements
IDocumentEditor.InsertCrossReferenceToHeading(Paragraph, ReferenceContentType, Boolean)

InsertEndnote()

Inserts endnote at the current position.

Declaration
public void InsertEndnote()
Implements
IDocumentEditor.InsertEndnote()

InsertEndnote(Note)

Inserts the endnote at the current position.

Declaration
public void InsertEndnote(Note endnote)
Parameters
Note endnote

The endnote.

Implements
IDocumentEditor.InsertEndnote(Note)

InsertField(Field)

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

Declaration
public bool InsertField(Field field)
Parameters
Field field

The field.

Returns
System.Boolean

True, if the operation completed successfully.

Implements
IDocumentEditor.InsertField(Field)

InsertField(Field, FieldDisplayMode)

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

Declaration
public bool InsertField(Field field, FieldDisplayMode displayMode)
Parameters
Field field

The field.

FieldDisplayMode displayMode

The display mode.

Returns
System.Boolean

True, if the operation completed successfully.

Implements
IDocumentEditor.InsertField(Field, FieldDisplayMode)

InsertFootnote()

Inserts footnote at the current position.

Declaration
public void InsertFootnote()
Implements
IDocumentEditor.InsertFootnote()

InsertFootnote(Note)

Inserts the footnote at the current position.

Declaration
public void InsertFootnote(Note footnote)
Parameters
Note footnote

The footnote.

Implements
IDocumentEditor.InsertFootnote(Note)

InsertFragment(DocumentFragment)

Inserts a fragment at the current caret position.

Declaration
public void InsertFragment(DocumentFragment documentFragment)
Parameters
DocumentFragment documentFragment

The fragment to insert.

Implements
IDocumentEditor.InsertFragment(DocumentFragment)
Exceptions
System.ArgumentNullException

Thrown when documentFragment is null.

InsertFragment(DocumentFragment, DocumentPosition)

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

Declaration
public void InsertFragment(DocumentFragment documentFragment, DocumentPosition documentPosition)
Parameters
DocumentFragment documentFragment

The fragment to insert.

DocumentPosition documentPosition

The document position to insert the fragment at.

Implements
IDocumentEditor.InsertFragment(DocumentFragment, DocumentPosition)
Remarks

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

Exceptions
System.InvalidOperationException

Thrown when there is selection in the document.

System.ArgumentNullException

Thrown when documentFragment or documentPosition is null.

InsertHyperlink(HyperlinkInfo)

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

Declaration
public void InsertHyperlink(HyperlinkInfo hyperlinkInfo)
Parameters
HyperlinkInfo hyperlinkInfo

The hyperlink info.

Implements
IDocumentEditor.InsertHyperlink(HyperlinkInfo)

InsertHyperlink(HyperlinkInfo, IEnumerable<Inline>)

Inserts a hyperlink in the document.

Declaration
public void InsertHyperlink(HyperlinkInfo hyperlinkInfo, IEnumerable<Inline> inlines)
Parameters
HyperlinkInfo hyperlinkInfo

The hyperlink info.

System.Collections.Generic.IEnumerable<Inline> inlines

The inlines in the hyperlink.

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

InsertHyperlink(HyperlinkInfo, String)

Inserts collection of inlines as hyperlink into the document.

Declaration
public void InsertHyperlink(HyperlinkInfo hyperlinkInfo, string hyperlinkText)
Parameters
HyperlinkInfo hyperlinkInfo

The hyperlink info.

System.String hyperlinkText

The hyperlink text.

InsertImage(Stream, String)

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

Declaration
public void InsertImage(Stream imageStream, string extension)
Parameters
System.IO.Stream imageStream

The stream to the image's contents.

System.String extension

The extension specifying the image format.

Implements
IDocumentEditor.InsertImage(Stream, String)

InsertInline(Inline)

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

Declaration
public void InsertInline(Inline inline)
Parameters
Inline inline

The inline element to insert.

Implements
IDocumentEditor.InsertInline(Inline)
Exceptions
System.ArgumentNullException

Thrown when inline is null.

InsertInline(Inline, DocumentPosition)

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

Declaration
public void InsertInline(Inline inline, DocumentPosition documentPosition)
Parameters
Inline inline

The inline element to insert.

DocumentPosition documentPosition

The document position to insert the inline at.

Implements
IDocumentEditor.InsertInline(Inline, DocumentPosition)
Remarks

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

Exceptions
System.InvalidOperationException

Thrown when there is selection in the document.

System.ArgumentNullException

Thrown when inline or documentPosition is null.

InsertLine(String)

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

Declaration
public void InsertLine(string text)
Parameters
System.String text

The text.

Implements
IDocumentEditor.InsertLine(String)

InsertLineBreak()

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

Declaration
public void InsertLineBreak()
Implements
IDocumentEditor.InsertLineBreak()

InsertNonBreakingSpace()

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

Declaration
public void InsertNonBreakingSpace()

InsertPageBreak()

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

Declaration
public void InsertPageBreak()
Implements
IDocumentEditor.InsertPageBreak()

InsertParagraph()

Inserts a new paragraph at the current caret position.

Declaration
public void InsertParagraph()
Implements
IDocumentEditor.InsertParagraph()

InsertPermissionRange(IEnumerable<PermissionRangeInfo>)

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

Declaration
public void InsertPermissionRange(IEnumerable<PermissionRangeInfo> permissionInfos)
Parameters
System.Collections.Generic.IEnumerable<PermissionRangeInfo> permissionInfos

The permissions for the new range.

Implements
IDocumentEditor.InsertPermissionRange(IEnumerable<PermissionRangeInfo>)

InsertReadOnlyRange()

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

Declaration
public void InsertReadOnlyRange()
Implements
IDocumentEditor.InsertReadOnlyRange()

InsertSectionBreak()

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

Declaration
public void InsertSectionBreak()
Implements
IDocumentEditor.InsertSectionBreak()

InsertSectionBreak(SectionBreakType)

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

Declaration
public void InsertSectionBreak(SectionBreakType sectionBreakType)
Parameters
SectionBreakType sectionBreakType

The type of the section break.

Implements
IDocumentEditor.InsertSectionBreak(SectionBreakType)

InsertShape(ShapeType, Size)

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

Declaration
public void InsertShape(ShapeType shapeType, Size size)
Parameters
ShapeType shapeType

The type of shape.

System.Windows.Size size

Shape's initial size.

Implements
IDocumentEditor.InsertShape(ShapeType, Size)

InsertStructuredDocumentTag()

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

Declaration
public void InsertStructuredDocumentTag()

InsertStructuredDocumentTag(SdtProperties)

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

Declaration
public void InsertStructuredDocumentTag(SdtProperties insertProperties)
Parameters
SdtProperties insertProperties

InsertStructuredDocumentTag(SdtType)

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

Declaration
public void InsertStructuredDocumentTag(SdtType insertType)
Parameters
SdtType insertType

InsertTable(Int32, Int32)

Inserts a new table in the document.

Declaration
public void InsertTable(int rows, int columns)
Parameters
System.Int32 rows

Number of the rows in the table.

System.Int32 columns

Number of the columns in the table.

Implements
IDocumentEditor.InsertTable(Int32, Int32)

InsertTable(Int32, Int32, Boolean)

Inserts a new table in the document.

Declaration
public void InsertTable(int rows, int columns, bool shouldInsertParagraphBeforeTable)
Parameters
System.Int32 rows

Number of the rows in the table.

System.Int32 columns

Number of the columns in the table.

System.Boolean shouldInsertParagraphBeforeTable

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

InsertTable(Table)

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.

Declaration
public void InsertTable(Table table)
Parameters
Table table

The table.

Implements
IDocumentEditor.InsertTable(Table)

InsertTable(Table, Boolean)

Inserts the table.

Declaration
public void InsertTable(Table table, bool shouldInsertParagraphBeforeTable)
Parameters
Table table

The table.

System.Boolean shouldInsertParagraphBeforeTable

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.

InsertTableColumn()

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

Declaration
public void InsertTableColumn()
Implements
IDocumentEditor.InsertTableColumn()

InsertTableColumnToTheLeft()

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

Declaration
public void InsertTableColumnToTheLeft()
Implements
IDocumentEditor.InsertTableColumnToTheLeft()

InsertTableColumnToTheRight()

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

Declaration
public void InsertTableColumnToTheRight()
Implements
IDocumentEditor.InsertTableColumnToTheRight()

InsertTableRow()

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

Declaration
public void InsertTableRow()
Implements
IDocumentEditor.InsertTableRow()

InsertTableRowAbove()

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

Declaration
public void InsertTableRowAbove()
Implements
IDocumentEditor.InsertTableRowAbove()

InsertTableRowBelow()

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

Declaration
public void InsertTableRowBelow()
Implements
IDocumentEditor.InsertTableRowBelow()

InsertTextBox()

Inserts a placeholder text box element to the document. It comes with a default shape layout.

Declaration
public void InsertTextBox()
Implements
IDocumentEditor.InsertTextBox()

MailMerge(Boolean)

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

Declaration
public RadDocument MailMerge(bool startEachRecordOnNewPage)
Parameters
System.Boolean startEachRecordOnNewPage

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

Returns
RadDocument

The document containing the result of the operation.

Implements
IDocumentEditor.MailMerge(Boolean)

MailMergeCurrentRecord()

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

Declaration
public RadDocument MailMergeCurrentRecord()
Returns
RadDocument

The document.

Implements
IDocumentEditor.MailMergeCurrentRecord()

MergeTableCells()

Merges the currently selected table cells into one.

Declaration
public void MergeTableCells()
Implements
IDocumentEditor.MergeTableCells()

MoveSelection(DocumentPosition, Boolean)

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

Declaration
public void MoveSelection(DocumentPosition movePosition, bool deleteSelection)
Parameters
DocumentPosition movePosition

The start position where the selection should be moved to.

System.Boolean deleteSelection

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

Implements
IDocumentEditor.MoveSelection(DocumentPosition, Boolean)

Paste()

Pastes the content of the clipboard into the document.

Declaration
public void Paste()
Implements
IDocumentEditor.Paste()

Paste(PasteOption)

Pastes the content of the clipboard into the document.

Declaration
public void Paste(PasteOption pasteOption)
Parameters
PasteOption pasteOption

The paste option that will be used.

Implements
IDocumentEditor.Paste(PasteOption)

PasteFormatting()

Pastes the currently copied formatting on the current selection.

Declaration
public bool PasteFormatting()
Returns
System.Boolean

A value indicating whether the paste was successful.

Implements
IDocumentEditor.PasteFormatting()

PreviewFirstMailMergeDataRecord()

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

Declaration
public bool PreviewFirstMailMergeDataRecord()
Returns
System.Boolean

True, if the operation completed successfully.

Implements
IDocumentEditor.PreviewFirstMailMergeDataRecord()

PreviewLastMailMergeDataRecord()

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

Declaration
public bool PreviewLastMailMergeDataRecord()
Returns
System.Boolean

True, if the operation completed successfully.

Implements
IDocumentEditor.PreviewLastMailMergeDataRecord()

PreviewMailMergeDataRecordAtIndex(Int32)

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

Declaration
public bool PreviewMailMergeDataRecordAtIndex(int index)
Parameters
System.Int32 index

The index of the record to be shown.

Returns
System.Boolean

True, if the operation completed successfully.

Implements
IDocumentEditor.PreviewMailMergeDataRecordAtIndex(Int32)

PreviewNextMailMergeDataRecord()

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

Declaration
public bool PreviewNextMailMergeDataRecord()
Returns
System.Boolean

True, if the operation completed successfully.

Implements
IDocumentEditor.PreviewNextMailMergeDataRecord()

PreviewPreviousMailMergeDataRecord()

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

Declaration
public bool PreviewPreviousMailMergeDataRecord()
Returns
System.Boolean

True, if the operation completed successfully.

Implements
IDocumentEditor.PreviewPreviousMailMergeDataRecord()

Redo()

Re-executes the last undone command group.

Declaration
public void Redo()
Implements
IDocumentEditor.Redo()

RejectAllRevisions()

Rejects all revisions in the document.

Declaration
public void RejectAllRevisions()
Implements
IDocumentEditor.RejectAllRevisions()

RejectRevision(Revision)

Rejects a revision.

Declaration
public void RejectRevision(Revision revision)
Parameters
Revision revision

The revision.

Implements
IDocumentEditor.RejectRevision(Revision)

RemoveTabStop(TabStop)

Removes a tab stop from the selected paragraphs.

Declaration
public void RemoveTabStop(TabStop tabStop)
Parameters
TabStop tabStop

The tab stop.

Implements
IDocumentEditor.RemoveTabStop(TabStop)

RemoveTabStopRange(IEnumerable<TabStop>)

Removes a collection of tab stops in the selected paragraphs.

Declaration
public void RemoveTabStopRange(IEnumerable<TabStop> tabStops)
Parameters
System.Collections.Generic.IEnumerable<TabStop> tabStops

The tab stops.

Implements
IDocumentEditor.RemoveTabStopRange(IEnumerable<TabStop>)

ReplaceTabStop(TabStop, TabStop)

Replaces a tab stop inside the selected paragraphs.

Declaration
public void ReplaceTabStop(TabStop oldTabStop, TabStop newTabStop)
Parameters
TabStop oldTabStop

The old tab stop.

TabStop newTabStop

The new tab stop.

Implements
IDocumentEditor.ReplaceTabStop(TabStop, TabStop)

ResizeTableColumn(Table, Int32, Double)

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, Int32, TableWidthUnit) method.

Declaration
public void ResizeTableColumn(Table table, int columnIndex, double columnWidth)
Parameters
Table table

The table.

System.Int32 columnIndex

The index of the column.

System.Double columnWidth

The new value for the column width.

Implements
IDocumentEditor.ResizeTableColumn(Table, Int32, Double)

RestartListNumbering()

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

Declaration
public bool RestartListNumbering()
Returns
System.Boolean

A boolean value determining whether the operation completed successfully.

Implements
IDocumentEditor.RestartListNumbering()

SetListNumbering(Int32)

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

Declaration
public bool SetListNumbering(int numbersToSkip)
Parameters
System.Int32 numbersToSkip

The numbers to skip.

Returns
System.Boolean

A boolean value indicating whether the operation completed successfully.

Implements
IDocumentEditor.SetListNumbering(Int32)

SetWatermark(DocumentWatermarkSettings)

Sets a watermark to the selected sections.

Declaration
public void SetWatermark(DocumentWatermarkSettings watermarkSettings)
Parameters
DocumentWatermarkSettings watermarkSettings

The watermark settings describing the watermark that will be applied.

Implements
IDocumentEditor.SetWatermark(DocumentWatermarkSettings)

SetWatermark(PredefinedWatermarkType)

Sets a predefined watermark to the selected sections.

Declaration
public void SetWatermark(PredefinedWatermarkType predefinedType)
Parameters
PredefinedWatermarkType predefinedType

Type of the predefined watermark.

Implements
IDocumentEditor.SetWatermark(PredefinedWatermarkType)

SplitAnnotationRange(AnnotationRangeStart)

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

Declaration
public void SplitAnnotationRange(AnnotationRangeStart rangeStart)
Parameters
AnnotationRangeStart rangeStart

The annotation range start to be split.

Implements
IDocumentEditor.SplitAnnotationRange(AnnotationRangeStart)

SplitAnnotationRange(AnnotationRangeStart, DocumentPosition)

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

Declaration
public void SplitAnnotationRange(AnnotationRangeStart rangeStart, DocumentPosition position)
Parameters
AnnotationRangeStart rangeStart

The annotation range start to be split.

DocumentPosition position

The position where the range start should be split.

Implements
IDocumentEditor.SplitAnnotationRange(AnnotationRangeStart, DocumentPosition)

SuppressLineNumberingForCurrentParagraph(IEnumerable<Paragraph>)

Suppress the line numbering for selected paragraphs.

Declaration
public void SuppressLineNumberingForCurrentParagraph(IEnumerable<Paragraph> paragraphs)
Parameters
System.Collections.Generic.IEnumerable<Paragraph> paragraphs

The paragraphs.

Implements
IDocumentEditor.SuppressLineNumberingForCurrentParagraph(IEnumerable<Paragraph>)

ToggleBold()

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

Declaration
public void ToggleBold()
Implements
IDocumentEditor.ToggleBold()

ToggleFieldCodes(FieldRangeStart)

Toggles the display mode of a field.

Declaration
public void ToggleFieldCodes(FieldRangeStart fieldStart)
Parameters
FieldRangeStart fieldStart

The field start.

Implements
IDocumentEditor.ToggleFieldCodes(FieldRangeStart)

ToggleItalic()

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

Declaration
public void ToggleItalic()
Implements
IDocumentEditor.ToggleItalic()

ToggleStrikethrough()

Toggles the strike-through of the selected content.

Declaration
public void ToggleStrikethrough()
Implements
IDocumentEditor.ToggleStrikethrough()

Undo()

Reverts the last executed command group.

Declaration
public void Undo()
Implements
IDocumentEditor.Undo()

UnmergeTableCells()

Splits the currently selected table cell.

Declaration
public void UnmergeTableCells()
Implements
IDocumentEditor.UnmergeTableCells()

UpdateAllCaptions(CaptionDefinition)

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

Declaration
public void UpdateAllCaptions(CaptionDefinition captionDefinition)
Parameters
CaptionDefinition captionDefinition

The caption definition.

Implements
IDocumentEditor.UpdateAllCaptions(CaptionDefinition)

UpdateAllFields()

Updates all fields in the document.

Declaration
public void UpdateAllFields()
Implements
IDocumentEditor.UpdateAllFields()

UpdateAllFields(FieldDisplayMode)

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

Declaration
public void UpdateAllFields(FieldDisplayMode displayMode)
Parameters
FieldDisplayMode displayMode

The display mode which will be used for the fields.

Implements
IDocumentEditor.UpdateAllFields(FieldDisplayMode)

UpdateField(FieldRangeStart)

Updates a field.

Declaration
public void UpdateField(FieldRangeStart fieldStart)
Parameters
FieldRangeStart fieldStart

The field start.

Implements
IDocumentEditor.UpdateField(FieldRangeStart)

UpdatePermissionRanges(IEnumerable<PermissionRangeInfo>, IEnumerable<PermissionRangeInfo>)

Updates the permissions inside the current selection.

Declaration
public void UpdatePermissionRanges(IEnumerable<PermissionRangeInfo> permissionsToAdd, IEnumerable<PermissionRangeInfo> permissionsToRemove)
Parameters
System.Collections.Generic.IEnumerable<PermissionRangeInfo> permissionsToAdd

Permissions to add.

System.Collections.Generic.IEnumerable<PermissionRangeInfo> permissionsToRemove

Permissions to remove.

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

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.