Class
RadDocumentEditor

Represents a document editor that provides functionality for editing RadDocuments.

Definition

Namespace:Telerik.Windows.Documents.Model

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public class RadDocumentEditor : IDocumentEditor

Inheritance: objectRadDocumentEditor

Implements: IDocumentEditor

Constructors

RadDocumentEditor(RadDocument)

Initializes a new instance of the RadDocumentEditor class.

Declaration

cs-api-definition
public RadDocumentEditor(RadDocument document)

Parameters

document

RadDocument

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

cs-api-definition
public bool AcceptsReturn { get; set; }

Property Value

bool

Document

Gets the document that is to be edited.

Declaration

cs-api-definition
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

cs-api-definition
public bool RespectDocumentProtection { get; set; }

Property Value

bool

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

cs-api-definition
public bool RespectNonDeletableRanges { get; set; }

Property Value

bool

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

cs-api-definition
public bool RespectReadOnlyRanges { get; set; }

Property Value

bool

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

Methods

AcceptAllRevisions()

Accepts all revisions in the document.

Declaration

cs-api-definition
public void AcceptAllRevisions()

Implements IDocumentEditor.AcceptAllRevisions()

AcceptRevision(Revision)

Accepts a revision.

Declaration

cs-api-definition
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

cs-api-definition
public void AddShapeTextBox(ShapeInline shape)

Parameters

shape

ShapeInline

The ShapeInline.

Implements IDocumentEditor.AddShapeTextBox(ShapeInline)

AddTabStop(TabStop)

Adds a tab stop to the current paragraph.

Declaration

cs-api-definition
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

cs-api-definition
public void AddTabStopRange(IEnumerable<TabStop> tabStops)

Parameters

tabStops

IEnumerable<TabStop>

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

cs-api-definition
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 InvalidOperationException is thrown.

Declaration

cs-api-definition
public void CancelUndoGroup()

Implements IDocumentEditor.CancelUndoGroup()

ChangeAllFieldsDisplayMode(FieldDisplayMode)

Changes the display mode of all fields in the document.

Declaration

cs-api-definition
public void ChangeAllFieldsDisplayMode(FieldDisplayMode displayMode)

Parameters

displayMode

FieldDisplayMode

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

cs-api-definition
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

cs-api-definition
public void ChangeBibliographicStyle(BibliographicReferenceStyleBase newBibliographicStyle)

Parameters

newBibliographicStyle

BibliographicReferenceStyleBase

The new bibliographic style.

Implements IDocumentEditor.ChangeBibliographicStyle(BibliographicReferenceStyleBase)

ChangeDifferentFirstPageHeaderFooter(bool)

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

cs-api-definition
public void ChangeDifferentFirstPageHeaderFooter(bool value)

Parameters

value

bool

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)

ChangeDifferentOddAndEvenPagesHeaderFooter(bool)

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

Declaration

cs-api-definition
public void ChangeDifferentOddAndEvenPagesHeaderFooter(bool value)

Parameters

value

bool

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

Implements IDocumentEditor.ChangeDifferentOddAndEvenPagesHeaderFooter(bool)

ChangeDocumentDefaultTabWidth(double)

Changes default tab stop width for the document.

Declaration

cs-api-definition
public void ChangeDocumentDefaultTabWidth(double tabWidth)

Parameters

tabWidth

double

Width of the tab.

Implements IDocumentEditor.ChangeDocumentDefaultTabWidth(double)

ChangeDocumentElementTag(DocumentElement, string)

Changes the Tag property of a specified DocumentElement.

Declaration

cs-api-definition
public void ChangeDocumentElementTag(DocumentElement element, string tag)

Parameters

element

DocumentElement

The DocumentElement.

tag

string

The new tag value.

Implements IDocumentEditor.ChangeDocumentElementTag(DocumentElement, string)

ChangeDocumentEndnotesFirstNumber(int)

Changes the first number of the endnotes in the document.

Declaration

cs-api-definition
public void ChangeDocumentEndnotesFirstNumber(int firstNumber)

Parameters

firstNumber

int

The first number.

Implements IDocumentEditor.ChangeDocumentEndnotesFirstNumber(int)

ChangeDocumentEndnotesNumberingFormat(ListNumberingFormat)

Changes the numbering format of the endnotes in the document.

Declaration

cs-api-definition
public void ChangeDocumentEndnotesNumberingFormat(ListNumberingFormat numberingFormat)

Parameters

numberingFormat

ListNumberingFormat

The numbering format.

Implements IDocumentEditor.ChangeDocumentEndnotesNumberingFormat(ListNumberingFormat)

ChangeDocumentEndnotesNumberingRestartType(NumberingRestartType)

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

Declaration

cs-api-definition
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

cs-api-definition
public void ChangeDocumentEndnotesPosition(EndnotesPosition endnotesPosition)

Parameters

endnotesPosition

EndnotesPosition

The position.

Implements IDocumentEditor.ChangeDocumentEndnotesPosition(EndnotesPosition)

ChangeDocumentFootnotesFirstNumber(int)

Changes the first number of the footnotes in the document.

Declaration

cs-api-definition
public void ChangeDocumentFootnotesFirstNumber(int firstNumber)

Parameters

firstNumber

int

The first number.

Implements IDocumentEditor.ChangeDocumentFootnotesFirstNumber(int)

ChangeDocumentFootnotesNumberingFormat(ListNumberingFormat)

Changes the numbering format of the footnotes in the document.

Declaration

cs-api-definition
public void ChangeDocumentFootnotesNumberingFormat(ListNumberingFormat numberingFormat)

Parameters

numberingFormat

ListNumberingFormat

The numbering format.

Implements IDocumentEditor.ChangeDocumentFootnotesNumberingFormat(ListNumberingFormat)

ChangeDocumentFootnotesNumberingRestartType(NumberingRestartType)

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

Declaration

cs-api-definition
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

cs-api-definition
public void ChangeDocumentFootnotesPosition(FootnotesPosition footnotesPosition)

Parameters

footnotesPosition

FootnotesPosition

The footnotes position.

Implements IDocumentEditor.ChangeDocumentFootnotesPosition(FootnotesPosition)

ChangeDocumentIsStrictLineBreakingRuleEnabled(bool)

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

Declaration

cs-api-definition
public void ChangeDocumentIsStrictLineBreakingRuleEnabled(bool value)

Parameters

value

bool

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

Implements IDocumentEditor.ChangeDocumentIsStrictLineBreakingRuleEnabled(bool)

ChangeDocumentLineBreakingRuleLanguage(LineBreakingRuleLanguage)

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

Declaration

cs-api-definition
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

cs-api-definition
public void ChangeDocumentNoLineBreaksAfterRule(LineBreakingRule lineBreakingCharacterRule)

Parameters

lineBreakingCharacterRule

LineBreakingRule

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

cs-api-definition
public void ChangeDocumentNoLineBreaksBeforeRule(LineBreakingRule lineBreakingCharacterRule)

Parameters

lineBreakingCharacterRule

LineBreakingRule

The rule.

Implements IDocumentEditor.ChangeDocumentNoLineBreaksBeforeRule(LineBreakingRule)

ChangeFieldDisplayMode(FieldRangeStart, FieldDisplayMode)

Changes the display mode of a field.

Declaration

cs-api-definition
public void ChangeFieldDisplayMode(FieldRangeStart fieldRangeStart, FieldDisplayMode displayMode)

Parameters

fieldRangeStart

FieldRangeStart

The field start.

displayMode

FieldDisplayMode

The new display mode.

Implements IDocumentEditor.ChangeFieldDisplayMode(FieldRangeStart, FieldDisplayMode)

ChangeFontFamily(FontFamily)

Changes the font family of the selected content.

Declaration

cs-api-definition
public void ChangeFontFamily(FontFamily fontFamily)

Parameters

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

cs-api-definition
public void ChangeFontSize(double fontSize)

Parameters

fontSize

double

Size of the font.

Implements IDocumentEditor.ChangeFontSize(double)

ChangeFontStyle(FontStyle)

Changes the font style of the selected content.

Declaration

cs-api-definition
public void ChangeFontStyle(FontStyle fontStyle)

Parameters

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

cs-api-definition
public void ChangeFontWeight(FontWeight fontWeight)

Parameters

fontWeight

FontWeight

The font weight.

Implements IDocumentEditor.ChangeFontWeight(FontWeight)

ChangeForeColor(Color)

Changes the fore color of the selected content.

Declaration

cs-api-definition
public void ChangeForeColor(Color color)

Parameters

color

Color

The color.

Implements IDocumentEditor.ChangeForeColor(Color)

ChangeHighlightColor(Color)

Changes the highlight color of the selected content.

Declaration

cs-api-definition
public void ChangeHighlightColor(Color color)

Parameters

color

Color

The color.

Implements IDocumentEditor.ChangeHighlightColor(Color)

ChangeImageRotateAngle(ImageInline, double)

Changes the rotate angle of an image.

Declaration

cs-api-definition
public void ChangeImageRotateAngle(ImageInline image, double angle)

Parameters

image

ImageInline

The ImageInline.

angle

double

The new angle.

Implements IDocumentEditor.ChangeImageRotateAngle(ImageInline, double)

ChangeImageSize(ImageInline, Size)

Changes the size of an image.

Declaration

cs-api-definition
public void ChangeImageSize(ImageInline image, Size size)

Parameters

image

ImageInline

The ImageInline whose size should be changed.

size

Size

The new size.

Implements IDocumentEditor.ChangeImageSize(ImageInline, Size)

ChangeLineNumberingRestartType(LineNumberingRestartType)

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

Declaration

cs-api-definition
public void ChangeLineNumberingRestartType(LineNumberingRestartType restartType)

Parameters

restartType

LineNumberingRestartType

The line numbering restart type.

Implements IDocumentEditor.ChangeLineNumberingRestartType(LineNumberingRestartType)

ChangeParagraphAutomaticSpacingAfter(bool)

Changes the automatic spacing after of the selected paragraphs.

Declaration

cs-api-definition
public void ChangeParagraphAutomaticSpacingAfter(bool value)

Parameters

value

bool

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

Implements IDocumentEditor.ChangeParagraphAutomaticSpacingAfter(bool)

ChangeParagraphAutomaticSpacingBefore(bool)

Changes the automatic spacing before of the selected paragraphs.

Declaration

cs-api-definition
public void ChangeParagraphAutomaticSpacingBefore(bool value)

Parameters

value

bool

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

Implements IDocumentEditor.ChangeParagraphAutomaticSpacingBefore(bool)

ChangeParagraphBackground(Color)

Changes the background of the selected paragraphs.

Declaration

cs-api-definition
public void ChangeParagraphBackground(Color color)

Parameters

color

Color

The color.

Implements IDocumentEditor.ChangeParagraphBackground(Color)

ChangeParagraphFirstLineIndent(double)

Changes the first line indent of the selected paragraphs.

Declaration

cs-api-definition
public void ChangeParagraphFirstLineIndent(double firstLineIndent)

Parameters

firstLineIndent

double

The first line indent.

Implements IDocumentEditor.ChangeParagraphFirstLineIndent(double)

ChangeParagraphFlowDirection(FlowDirection)

Changes the flow direction of the selected paragraphs.

Declaration

cs-api-definition
public void ChangeParagraphFlowDirection(FlowDirection flowDirection)

Parameters

flowDirection

FlowDirection

The flow direction.

Implements IDocumentEditor.ChangeParagraphFlowDirection(FlowDirection)

ChangeParagraphIsLineBreakingRuleEnabled(bool)

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

cs-api-definition
public void ChangeParagraphIsLineBreakingRuleEnabled(bool value)

Parameters

value

bool

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)

ChangeParagraphLeftIndent(double)

Changes the left indent of the selected paragraphs.

Declaration

cs-api-definition
public void ChangeParagraphLeftIndent(double leftIndent)

Parameters

leftIndent

double

The left indent.

Implements IDocumentEditor.ChangeParagraphLeftIndent(double)

ChangeParagraphLineSpacing(double)

Changes the line spacing of the selected paragraphs.

Declaration

cs-api-definition
public void ChangeParagraphLineSpacing(double lineSpacing)

Parameters

lineSpacing

double

The line spacing.

Implements IDocumentEditor.ChangeParagraphLineSpacing(double)

ChangeParagraphLineSpacing(double, LineSpacingType)

Changes the line spacing of the selected paragraphs.

Declaration

cs-api-definition
public void ChangeParagraphLineSpacing(double lineSpacing, LineSpacingType lineSpacingType)

Parameters

lineSpacing

double

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

cs-api-definition
public void ChangeParagraphLineSpacingType(LineSpacingType lineSpacingType)

Parameters

lineSpacingType

LineSpacingType

Type of the line spacing.

Implements IDocumentEditor.ChangeParagraphLineSpacingType(LineSpacingType)

ChangeParagraphListLevel(int)

Changes the list level of the selected paragraphs.

Declaration

cs-api-definition
public void ChangeParagraphListLevel(int listLevel)

Parameters

listLevel

int

The list level.

Implements IDocumentEditor.ChangeParagraphListLevel(int)

ChangeParagraphListStyle(ListStyle)

Changes the paragraph list style of the selected paragraphs.

Declaration

cs-api-definition
public void ChangeParagraphListStyle(ListStyle style)

Parameters

style

ListStyle

The style.

Implements IDocumentEditor.ChangeParagraphListStyle(ListStyle)

ChangeParagraphListStyle(ListStyle, IEnumerable<Paragraph>)

Changes the list style of the specified paragraphs.

Declaration

cs-api-definition
public void ChangeParagraphListStyle(ListStyle style, IEnumerable<Paragraph> paragraphs)

Parameters

style

ListStyle

The style.

paragraphs

IEnumerable<Paragraph>

The paragraphs.

ChangeParagraphRightIndent(double)

Changes the right indent of the selected paragraphs.

Declaration

cs-api-definition
public void ChangeParagraphRightIndent(double rightIndent)

Parameters

rightIndent

double

The right indent.

Implements IDocumentEditor.ChangeParagraphRightIndent(double)

ChangeParagraphSpacingAfter(double)

Changes the spacing after of the selected paragraphs.

Declaration

cs-api-definition
public void ChangeParagraphSpacingAfter(double spacingAfter)

Parameters

spacingAfter

double

The spacing after.

Implements IDocumentEditor.ChangeParagraphSpacingAfter(double)

ChangeParagraphSpacingBefore(double)

Changes the spacing before of the selected paragraphs.

Declaration

cs-api-definition
public void ChangeParagraphSpacingBefore(double spacingBefore)

Parameters

spacingBefore

double

The spacing before.

Implements IDocumentEditor.ChangeParagraphSpacingBefore(double)

ChangeParagraphStyle(StyleDefinition)

Changes the paragraph style of the selected content.

Declaration

cs-api-definition
public void ChangeParagraphStyle(StyleDefinition styleInfo)

Parameters

styleInfo

StyleDefinition

The style information.

Implements IDocumentEditor.ChangeParagraphStyle(StyleDefinition)

ChangeParagraphTextAlignment(RadTextAlignment)

Changes the text alignment of the selected paragraphs.

Declaration

cs-api-definition
public void ChangeParagraphTextAlignment(RadTextAlignment alignment)

Parameters

alignment

RadTextAlignment

The alignment.

Implements IDocumentEditor.ChangeParagraphTextAlignment(RadTextAlignment)

ChangeRotateTextWithShape(ShapeInline, bool)

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

Declaration

cs-api-definition
public void ChangeRotateTextWithShape(ShapeInline shape, bool shouldRotate)

Parameters

shape

ShapeInline

The ShapeInline.

shouldRotate

bool

The new value that indicates text box element rotation behavior.

Implements IDocumentEditor.ChangeRotateTextWithShape(ShapeInline, bool)

ChangeSectionActualPageMargin(Padding)

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

Declaration

cs-api-definition
public void ChangeSectionActualPageMargin(Padding sectionMargin)

Parameters

sectionMargin

Padding

The margin.

Implements IDocumentEditor.ChangeSectionActualPageMargin(Padding)

ChangeSectionColumns(SectionColumnCollection)

Changes the section columns for the selected sections.

Declaration

cs-api-definition
public void ChangeSectionColumns(SectionColumnCollection sectionColumns)

Parameters

sectionColumns

SectionColumnCollection

The section columns.

Implements IDocumentEditor.ChangeSectionColumns(SectionColumnCollection)

ChangeSectionColumns(SectionColumnsLayout)

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

Declaration

cs-api-definition
public void ChangeSectionColumns(SectionColumnsLayout sectionColumnsLayout)

Parameters

sectionColumnsLayout

SectionColumnsLayout

The section columns layout.

Implements IDocumentEditor.ChangeSectionColumns(SectionColumnsLayout)

ChangeSectionEndnotesFirstNumber(int)

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

Declaration

cs-api-definition
public void ChangeSectionEndnotesFirstNumber(int firstNumber)

Parameters

firstNumber

int

The first number.

Implements IDocumentEditor.ChangeSectionEndnotesFirstNumber(int)

ChangeSectionEndnotesNumberingFormat(ListNumberingFormat)

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

Declaration

cs-api-definition
public void ChangeSectionEndnotesNumberingFormat(ListNumberingFormat numberingFormat)

Parameters

numberingFormat

ListNumberingFormat

The numbering format.

Implements IDocumentEditor.ChangeSectionEndnotesNumberingFormat(ListNumberingFormat)

ChangeSectionEndnotesNumberingRestartType(NumberingRestartType)

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

Declaration

cs-api-definition
public void ChangeSectionEndnotesNumberingRestartType(NumberingRestartType numberingRestartType)

Parameters

numberingRestartType

NumberingRestartType

The type of restart for the numbering.

Implements IDocumentEditor.ChangeSectionEndnotesNumberingRestartType(NumberingRestartType)

ChangeSectionFirstPageNumber(int?)

Changes the first page number of the selected sections.

Declaration

cs-api-definition
public void ChangeSectionFirstPageNumber(int? firstPageNumber)

Parameters

firstPageNumber

int?

The first page number.

Implements IDocumentEditor.ChangeSectionFirstPageNumber(int?)

Changes the section footer.

Declaration

cs-api-definition
public void ChangeSectionFooter(Section section, HeaderFooterType footerType, Footer footer)

Parameters

section

Section

The section.

footerType

HeaderFooterType

Type of the footer.

footer

Footer

The footer.

Implements IDocumentEditor.ChangeSectionFooter(Section, HeaderFooterType, Footer)

ChangeSectionFooterBottomMargin(int)

Changes the footer bottom margin of the selected sections.

Declaration

cs-api-definition
public void ChangeSectionFooterBottomMargin(int sectionFooterBottomMargin)

Parameters

sectionFooterBottomMargin

int

The section footer bottom margin.

Implements IDocumentEditor.ChangeSectionFooterBottomMargin(int)

ChangeSectionFooterLinkToPrevious(Section, HeaderFooterType, bool)

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

Declaration

cs-api-definition
public void ChangeSectionFooterLinkToPrevious(Section section, HeaderFooterType footerType, bool value)

Parameters

section

Section

The section.

footerType

HeaderFooterType

Type of the footer.

value

bool

true if the footer should be linked.

Implements IDocumentEditor.ChangeSectionFooterLinkToPrevious(Section, HeaderFooterType, bool)

ChangeSectionFootnotesFirstNumber(int)

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

Declaration

cs-api-definition
public void ChangeSectionFootnotesFirstNumber(int firstNumber)

Parameters

firstNumber

int

The first number.

Implements IDocumentEditor.ChangeSectionFootnotesFirstNumber(int)

ChangeSectionFootnotesNumberingFormat(ListNumberingFormat)

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

Declaration

cs-api-definition
public void ChangeSectionFootnotesNumberingFormat(ListNumberingFormat numberingFormat)

Parameters

numberingFormat

ListNumberingFormat

The numbering format.

Implements IDocumentEditor.ChangeSectionFootnotesNumberingFormat(ListNumberingFormat)

ChangeSectionFootnotesNumberingRestartType(NumberingRestartType)

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

Declaration

cs-api-definition
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

cs-api-definition
public void ChangeSectionHeader(Section section, HeaderFooterType headerType, Header header)

Parameters

section

Section

The section.

headerType

HeaderFooterType

Type of the header.

header

Header

The header.

Implements IDocumentEditor.ChangeSectionHeader(Section, HeaderFooterType, Header)

ChangeSectionHeaderLinkToPrevious(Section, HeaderFooterType, bool)

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

Declaration

cs-api-definition
public void ChangeSectionHeaderLinkToPrevious(Section section, HeaderFooterType headerType, bool value)

Parameters

section

Section

The section.

headerType

HeaderFooterType

Type of the header.

value

bool

true if the header should be linked.

Implements IDocumentEditor.ChangeSectionHeaderLinkToPrevious(Section, HeaderFooterType, bool)

ChangeSectionHeaderTopMargin(int)

Changes the header top margin of the selected sections.

Declaration

cs-api-definition
public void ChangeSectionHeaderTopMargin(int sectionHeaderTopMargin)

Parameters

sectionHeaderTopMargin

int

The section header top margin.

Implements IDocumentEditor.ChangeSectionHeaderTopMargin(int)

ChangeSectionLineNumbering(LineNumbering)

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

Declaration

cs-api-definition
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

cs-api-definition
public void ChangeSectionPageMargin(Padding sectionMargin)

Parameters

sectionMargin

Padding

The margin.

Implements IDocumentEditor.ChangeSectionPageMargin(Padding)

ChangeSectionPageOrientation(PageOrientation)

Changes the page orientation of the selected sections.

Declaration

cs-api-definition
public void ChangeSectionPageOrientation(PageOrientation sectionPageOrientation)

Parameters

sectionPageOrientation

PageOrientation

The page orientation.

Implements IDocumentEditor.ChangeSectionPageOrientation(PageOrientation)

ChangeSectionPageSize(Size)

Changes the page size of the selected sections.

Declaration

cs-api-definition
public void ChangeSectionPageSize(Size newSize)

Parameters

newSize

Size

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

Implements IDocumentEditor.ChangeSectionPageSize(Size)

ChangeShapeAutoFitToText(ShapeInline, bool)

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

Declaration

cs-api-definition
public void ChangeShapeAutoFitToText(ShapeInline shape, bool shouldAutoFit)

Parameters

shape

ShapeInline

The ShapeInline.

shouldAutoFit

bool

The new value that indicates text box element wrap behavior.

Implements IDocumentEditor.ChangeShapeAutoFitToText(ShapeInline, bool)

ChangeShapeFill(ShapeInline, IShapeFill)

Changes the fill of a shape.

Declaration

cs-api-definition
public void ChangeShapeFill(ShapeInline shape, IShapeFill fill)

Parameters

shape

ShapeInline

The ShapeInline.

fill

IShapeFill

The new fill.

Implements IDocumentEditor.ChangeShapeFill(ShapeInline, IShapeFill)

ChangeShapeOutlineDash(ShapeInline, LineDashType)

Changes the dashing pattern of a shape outline.

Declaration

cs-api-definition
public void ChangeShapeOutlineDash(ShapeInline shape, LineDashType dashType)

Parameters

shape

ShapeInline

The ShapeInline.

dashType

LineDashType

The new dashing pattern.

Implements IDocumentEditor.ChangeShapeOutlineDash(ShapeInline, LineDashType)

ChangeShapeOutlineFill(ShapeInline, IShapeOutlineFill)

Changes the fill of a shape outline.

Declaration

cs-api-definition
public void ChangeShapeOutlineFill(ShapeInline shape, IShapeOutlineFill lineFill)

Parameters

shape

ShapeInline

The ShapeInline.

lineFill

IShapeOutlineFill

The new fill.

Implements IDocumentEditor.ChangeShapeOutlineFill(ShapeInline, IShapeOutlineFill)

ChangeShapeOutlineWidth(ShapeInline, double)

Changes the width a shape outline.

Declaration

cs-api-definition
public void ChangeShapeOutlineWidth(ShapeInline shape, double width)

Parameters

shape

ShapeInline

The ShapeInline.

width

double

The new width.

Implements IDocumentEditor.ChangeShapeOutlineWidth(ShapeInline, double)

ChangeShapeRotateAngle(ShapeInline, double)

Changes the rotate angle of a shape.

Declaration

cs-api-definition
public void ChangeShapeRotateAngle(ShapeInline shape, double angle)

Parameters

shape

ShapeInline

The ShapeInline.

angle

double

The new angle.

Implements IDocumentEditor.ChangeShapeRotateAngle(ShapeInline, double)

ChangeShapeSize(ShapeInline, Size)

Changes the size of a shape.

Declaration

cs-api-definition
public void ChangeShapeSize(ShapeInline shape, Size size)

Parameters

shape

ShapeInline

The ShapeInline whose size should be changed.

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

cs-api-definition
public void ChangeShapeTextBottomMargin(ShapeInline shape, double margin)

Parameters

shape

ShapeInline

The ShapeInline.

margin

double

The new bottom margin.

Implements IDocumentEditor.ChangeShapeTextBottomMargin(ShapeInline, double)

ChangeShapeTextFill(ShapeInline, IShapeFill)

Changes the fill of a shape's text.

Declaration

cs-api-definition
public void ChangeShapeTextFill(ShapeInline shape, IShapeFill fill)

Parameters

shape

ShapeInline

The ShapeInline.

fill

IShapeFill

The new fill.

Implements IDocumentEditor.ChangeShapeTextFill(ShapeInline, IShapeFill)

ChangeShapeTextLeftMargin(ShapeInline, double)

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

Declaration

cs-api-definition
public void ChangeShapeTextLeftMargin(ShapeInline shape, double margin)

Parameters

shape

ShapeInline

The ShapeInline.

margin

double

The new left margin.

Implements IDocumentEditor.ChangeShapeTextLeftMargin(ShapeInline, double)

ChangeShapeTextOutlineDash(ShapeInline, LineDashType)

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

Declaration

cs-api-definition
public void ChangeShapeTextOutlineDash(ShapeInline shape, LineDashType dash)

Parameters

shape

ShapeInline

The ShapeInline which is modified.

dash

LineDashType

The new dashing pattern.

Implements IDocumentEditor.ChangeShapeTextOutlineDash(ShapeInline, LineDashType)

ChangeShapeTextOutlineFill(ShapeInline, IShapeOutlineFill)

Changes the fill of a shape's text outline.

Declaration

cs-api-definition
public void ChangeShapeTextOutlineFill(ShapeInline shape, IShapeOutlineFill fill)

Parameters

shape

ShapeInline

The ShapeInline.

fill

IShapeOutlineFill

The new fill.

Implements IDocumentEditor.ChangeShapeTextOutlineFill(ShapeInline, IShapeOutlineFill)

ChangeShapeTextOutlineWidth(ShapeInline, double)

Changes the width of a shape's outline width.

Declaration

cs-api-definition
public void ChangeShapeTextOutlineWidth(ShapeInline shape, double width)

Parameters

shape

ShapeInline

The ShapeInline which is modified.

width

double

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

cs-api-definition
public void ChangeShapeTextRightMargin(ShapeInline shape, double margin)

Parameters

shape

ShapeInline

The ShapeInline.

margin

double

The new right margin.

Implements IDocumentEditor.ChangeShapeTextRightMargin(ShapeInline, double)

ChangeShapeTextRotation(ShapeInline, TextRotation)

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

Declaration

cs-api-definition
public void ChangeShapeTextRotation(ShapeInline shape, TextRotation rotation)

Parameters

shape

ShapeInline

The ShapeInline.

rotation

TextRotation

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

cs-api-definition
public void ChangeShapeTextTopMargin(ShapeInline shape, double margin)

Parameters

shape

ShapeInline

The ShapeInline.

margin

double

The new top margin.

Implements IDocumentEditor.ChangeShapeTextTopMargin(ShapeInline, double)

ChangeShapeTextVerticalAlignment(ShapeInline, RadVerticalAlignment)

Changes the vertical alignment of a shape text box element.

Declaration

cs-api-definition
public void ChangeShapeTextVerticalAlignment(ShapeInline shape, RadVerticalAlignment alignment)

Parameters

shape

ShapeInline

The ShapeInline.

alignment

RadVerticalAlignment

The new vertical alignment.

Implements IDocumentEditor.ChangeShapeTextVerticalAlignment(ShapeInline, RadVerticalAlignment)

ChangeShapeTextWrap(ShapeInline, bool)

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

Declaration

cs-api-definition
public void ChangeShapeTextWrap(ShapeInline shape, bool shouldWrap)

Parameters

shape

ShapeInline

The ShapeInline.

shouldWrap

bool

The new value that indicates text box element wrap behavior.

Implements IDocumentEditor.ChangeShapeTextWrap(ShapeInline, bool)

ChangeSpanStyle(StyleDefinition)

Changes the span style of the selected content.

Declaration

cs-api-definition
public void ChangeSpanStyle(StyleDefinition styleInfo)

Parameters

styleInfo

StyleDefinition

The style information.

Implements IDocumentEditor.ChangeSpanStyle(StyleDefinition)

ChangeStrikethrough(bool)

Changes the strike-through of the selected content.

Declaration

cs-api-definition
public void ChangeStrikethrough(bool isStriketrough)

Parameters

isStriketrough

bool

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

Implements IDocumentEditor.ChangeStrikethrough(bool)

ChangeStyleName(string)

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

Declaration

cs-api-definition
public void ChangeStyleName(string styleName)

Parameters

styleName

string

Name of the style to be applied.

Implements IDocumentEditor.ChangeStyleName(string)

ChangeStyleName(string, bool)

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

Declaration

cs-api-definition
public void ChangeStyleName(string styleName, bool useLinkedStyle)

Parameters

styleName

string

Name of the style.

useLinkedStyle

bool

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

Implements IDocumentEditor.ChangeStyleName(string, bool)

ChangeTableBorders(TableBorders)

Changes the borders of the selected tables.

Declaration

cs-api-definition
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

cs-api-definition
public void ChangeTableCellBackground(Color color)

Parameters

color

Color

The color.

Implements IDocumentEditor.ChangeTableCellBackground(Color)

ChangeTableCellBorders(Border)

Changes the borders of the selected table cells.

Declaration

cs-api-definition
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

cs-api-definition
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

cs-api-definition
public void ChangeTableCellContentAlignment(RadTextAlignment textAlignment, RadVerticalAlignment verticalAlignment)

Parameters

textAlignment

RadTextAlignment

The text alignment.

verticalAlignment

RadVerticalAlignment

The vertical alignment.

Implements IDocumentEditor.ChangeTableCellContentAlignment(RadTextAlignment, RadVerticalAlignment)

ChangeTableCellHorizontalContentAlignment(RadTextAlignment)

Changes the horizontal content alignment of the selected table cells.

Declaration

cs-api-definition
public void ChangeTableCellHorizontalContentAlignment(RadTextAlignment textAlignment)

Parameters

textAlignment

RadTextAlignment

The alignment.

Implements IDocumentEditor.ChangeTableCellHorizontalContentAlignment(RadTextAlignment)

ChangeTableCellPadding(Padding)

Changes the padding of the selected table cells.

Declaration

cs-api-definition
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

cs-api-definition
public void ChangeTableCellSpacing(double cellSpacing)

Parameters

cellSpacing

double

The cell spacing.

Implements IDocumentEditor.ChangeTableCellSpacing(double)

ChangeTableCellVerticalContentAlignment(RadVerticalAlignment)

Changes the vertical content alignment of the selected table cells.

Declaration

cs-api-definition
public void ChangeTableCellVerticalContentAlignment(RadVerticalAlignment verticalAlignment)

Parameters

verticalAlignment

RadVerticalAlignment

The alignment.

Implements IDocumentEditor.ChangeTableCellVerticalContentAlignment(RadVerticalAlignment)

ChangeTableDefaultCellPadding(Padding)

Changes the default cell padding of the selected tables.

Declaration

cs-api-definition
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

cs-api-definition
public void ChangeTableFlowDirection(FlowDirection flowDirection)

Parameters

flowDirection

FlowDirection

The flow direction.

Implements IDocumentEditor.ChangeTableFlowDirection(FlowDirection)

ChangeTableGridColumnWidth(Table, int, TableWidthUnit)

Changes the width of a table column.

Declaration

cs-api-definition
public void ChangeTableGridColumnWidth(Table table, int columnIndex, TableWidthUnit width)

Parameters

table

Table

The table.

columnIndex

int

The index of the column.

width

TableWidthUnit

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)

ChangeTableHorizontalAlignment(RadHorizontalAlignment)

Changes the horizontal alignment of the selected tables.

Declaration

cs-api-definition
public void ChangeTableHorizontalAlignment(RadHorizontalAlignment alignment)

Parameters

alignment

RadHorizontalAlignment

The alignment.

Implements IDocumentEditor.ChangeTableHorizontalAlignment(RadHorizontalAlignment)

ChangeTableIndent(double)

Changes the indent of the selected tables.

Declaration

cs-api-definition
public void ChangeTableIndent(double indent)

Parameters

indent

double

The indent.

Implements IDocumentEditor.ChangeTableIndent(double)

ChangeTableLayoutMode(Table, TableLayoutMode)

Changes the layout mode of the selected tables.

Declaration

cs-api-definition
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

cs-api-definition
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

cs-api-definition
public void ChangeTablePreferredWidth(TableWidthUnit tableWidth)

Parameters

tableWidth

TableWidthUnit

Width of the table.

Implements IDocumentEditor.ChangeTablePreferredWidth(TableWidthUnit)

ChangeTableRowHeight(TableRow, double)

Changes the height of a table row.

Declaration

cs-api-definition
public void ChangeTableRowHeight(TableRow tableRow, double height)

Parameters

tableRow

TableRow

The table row.

height

double

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

cs-api-definition
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

cs-api-definition
public void ChangeUnderlineColor(Color color)

Parameters

color

Color

The color.

Implements IDocumentEditor.ChangeUnderlineColor(Color)

ChangeUnderlineDecoration(IUnderlineUIDecorationProvider)

Changes the underline decoration of the selected content.

Declaration

cs-api-definition
public void ChangeUnderlineDecoration(IUnderlineUIDecorationProvider decoration)

Parameters

decoration

IUnderlineUIDecorationProvider

The value.

Implements IDocumentEditor.ChangeUnderlineDecoration(IUnderlineUIDecorationProvider)

ClearAllFormatting()

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

Declaration

cs-api-definition
public void ClearAllFormatting()

Implements IDocumentEditor.ClearAllFormatting()

ClearFormatting()

Clears the character formatting of the selected content.

Declaration

cs-api-definition
public void ClearFormatting()

Implements IDocumentEditor.ClearFormatting()

ClearParagraphFormatting()

Clears the paragraph formatting of the selected content.

Declaration

cs-api-definition
public void ClearParagraphFormatting()

ClearTabStops()

Clears the tab stops inside the selected paragraphs.

Declaration

cs-api-definition
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

cs-api-definition
public bool ContinueListNumbering()

Returns

bool

A boolean value indicating whether the operation completed successfully.

Implements IDocumentEditor.ContinueListNumbering()

Copy()

Copies the currently selected document elements into the clipboard.

Declaration

cs-api-definition
public void Copy()

Implements IDocumentEditor.Copy()

CopyFormatting()

Copies the formatting of the current selection.

Declaration

cs-api-definition
public bool CopyFormatting()

Returns

bool

A value indicating whether the copy was successful.

Implements IDocumentEditor.CopyFormatting()

Cut()

Cuts the currently selected document elements into the clipboard.

Declaration

cs-api-definition
public void Cut()

Implements IDocumentEditor.Cut()

DecreaseLeftIndent()

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

Declaration

cs-api-definition
public void DecreaseLeftIndent()

DecrementFontSize()

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

Declaration

cs-api-definition
public void DecrementFontSize()

Implements IDocumentEditor.DecrementFontSize()

DecrementParagraphLeftIndent()

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

Declaration

cs-api-definition
public void DecrementParagraphLeftIndent()

Implements IDocumentEditor.DecrementParagraphLeftIndent()

Delete(bool)

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

Declaration

cs-api-definition
public bool Delete(bool deletePrevious)

Parameters

deletePrevious

bool

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

Returns

bool

Implements IDocumentEditor.Delete(bool)

DeleteAllComments()

Deletes all comments in the document.

Declaration

cs-api-definition
public void DeleteAllComments()

Implements IDocumentEditor.DeleteAllComments()

DeleteAnnotationRange(AnnotationRangeStart)

Deletes an annotation range.

Declaration

cs-api-definition
public void DeleteAnnotationRange(AnnotationRangeStart rangeStart)

Parameters

rangeStart

AnnotationRangeStart

The start of the range that will be deleted.

Implements IDocumentEditor.DeleteAnnotationRange(AnnotationRangeStart)

DeleteBookmark(BookmarkRangeStart)

Deletes a bookmark.

Declaration

cs-api-definition
public void DeleteBookmark(BookmarkRangeStart bookmarkRangeStart)

Parameters

bookmarkRangeStart

BookmarkRangeStart

The bookmark range start.

Implements IDocumentEditor.DeleteBookmark(BookmarkRangeStart)

DeleteBookmark(string)

Deletes a bookmark.

Declaration

cs-api-definition
public void DeleteBookmark(string bookmarkName)

Parameters

bookmarkName

string

Name of the bookmark.

Implements IDocumentEditor.DeleteBookmark(string)

DeleteCodeBlock(CodeAnnotationRangeStart)

Deletes a code block.

Declaration

cs-api-definition
public void DeleteCodeBlock(CodeAnnotationRangeStart rangeStart)

Parameters

rangeStart

CodeAnnotationRangeStart

The CodeAnnotationRangeStart of the block to delete.

Implements IDocumentEditor.DeleteCodeBlock(CodeAnnotationRangeStart)

DeleteComment()

Deletes the current comment.

Declaration

cs-api-definition
public void DeleteComment()

Implements IDocumentEditor.DeleteComment()

DeleteComment(CommentRangeStart)

Deletes a comment.

Declaration

cs-api-definition
public void DeleteComment(CommentRangeStart commentRangeStart)

Parameters

commentRangeStart

CommentRangeStart

The comment range start.

Implements IDocumentEditor.DeleteComment(CommentRangeStart)

Deletes the current hyperlink.

Declaration

cs-api-definition
public void DeleteHyperlink()

Implements IDocumentEditor.DeleteHyperlink()

Deletes a hyperlink.

Declaration

cs-api-definition
public void DeleteHyperlink(HyperlinkRangeStart hyperlinkRangeStart)

Parameters

hyperlinkRangeStart

HyperlinkRangeStart

The hyperlink range start.

Implements IDocumentEditor.DeleteHyperlink(HyperlinkRangeStart)

DeletePermissionRange(PermissionRangeStart)

Deletes a permission range.

Declaration

cs-api-definition
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

cs-api-definition
public void DeleteReadOnlyRange()

Implements IDocumentEditor.DeleteReadOnlyRange()

DeleteReadOnlyRange(ReadOnlyRangeStart)

Deletes read only range.

Declaration

cs-api-definition
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

cs-api-definition
public void DeleteTable()

Implements IDocumentEditor.DeleteTable()

DeleteTable(Table)

Deletes a table.

Declaration

cs-api-definition
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

cs-api-definition
public void DeleteTableColumn()

Implements IDocumentEditor.DeleteTableColumn()

DeleteTableRow()

Deletes the table row under the caret position.

Declaration

cs-api-definition
public void DeleteTableRow()

Implements IDocumentEditor.DeleteTableRow()

DeleteTableRow(TableRow)

Deletes a table row.

Declaration

cs-api-definition
public void DeleteTableRow(TableRow row)

Parameters

row

TableRow

The TableRow to delete.

Implements IDocumentEditor.DeleteTableRow(TableRow)

EditShapeTextBox(ShapeInline)

Initiates editing of a shape's text box element.

Declaration

cs-api-definition
public void EditShapeTextBox(ShapeInline shape)

Parameters

shape

ShapeInline

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

cs-api-definition
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

cs-api-definition
public void EndUndoGroup(string groupDisplayText)

Parameters

groupDisplayText

string

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

Implements IDocumentEditor.EndUndoGroup(string)

HasEditPermissions()

Determines whether the current RadDocumentEditor instance has edit permissions for the document being edited.

Declaration

cs-api-definition
public bool HasEditPermissions()

Returns

bool

True if the document has edit permissions; otherwise, false.

Implements IDocumentEditor.HasEditPermissions()

IncreaseLeftIndent()

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

Declaration

cs-api-definition
public void IncreaseLeftIndent()

IncrementFontSize()

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

Declaration

cs-api-definition
public void IncrementFontSize()

Implements IDocumentEditor.IncrementFontSize()

IncrementParagraphLeftIndent()

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

Declaration

cs-api-definition
public void IncrementParagraphLeftIndent()

Implements IDocumentEditor.IncrementParagraphLeftIndent()

IncrementParagraphListLevel(int)

Increments the paragraph list level of the selected paragraphs.

Declaration

cs-api-definition
public void IncrementParagraphListLevel(int value)

Parameters

value

int

A value determining how much the level should be increased.

Insert(string)

Inserts text into the document at the current caret position.

Declaration

cs-api-definition
public bool Insert(string text)

Parameters

text

string

The text to insert.

Returns

bool

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

cs-api-definition
public void InsertAnnotationRange(AnnotationRangeStart rangeStart, AnnotationRangeEnd rangeEnd)

Parameters

rangeStart

AnnotationRangeStart

The annotation range start.

rangeEnd

AnnotationRangeEnd

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

cs-api-definition
public void InsertBookmark(string bookmarkName)

Parameters

bookmarkName

string

Name of the bookmark.

Implements IDocumentEditor.InsertBookmark(string)

InsertCaption(CaptionDefinition, string, bool, bool)

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

Declaration

cs-api-definition
public void InsertCaption(CaptionDefinition captionDefinition, string caption, bool includeLabel, bool insertBelow)

Parameters

captionDefinition

CaptionDefinition

The definition of the caption.

caption

string

The caption text to be used.

includeLabel

bool

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

insertBelow

bool

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

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

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

cs-api-definition
public void InsertCodeBlock(string code, CodeFormattingSettings settings)

Parameters

code

string

The code to insert.

settings

CodeFormattingSettings

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

cs-api-definition
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

cs-api-definition
public void InsertComment(Comment comment)

Parameters

comment

Comment

The comment.

Implements IDocumentEditor.InsertComment(Comment)

InsertCrossReferenceToBookmark(string, ReferenceContentType, bool)

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

Declaration

cs-api-definition
public void InsertCrossReferenceToBookmark(string bookmarkName, ReferenceContentType contentType, bool insertAsHyperlink)

Parameters

bookmarkName

string

Name of the bookmark.

contentType

ReferenceContentType

Type of the content.

insertAsHyperlink

bool

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

Implements IDocumentEditor.InsertCrossReferenceToBookmark(string, ReferenceContentType, bool)

InsertCrossReferenceToCaption(Paragraph, ReferenceContentType, bool)

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

Declaration

cs-api-definition
public void InsertCrossReferenceToCaption(Paragraph captionParagraph, ReferenceContentType contentType, bool insertAsHyperlink)

Parameters

captionParagraph

Paragraph

The paragraph containing the caption sequence field.

contentType

ReferenceContentType

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

insertAsHyperlink

bool

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

Implements IDocumentEditor.InsertCrossReferenceToCaption(Paragraph, ReferenceContentType, bool)

InsertCrossReferenceToHeading(Paragraph, ReferenceContentType, bool)

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

Declaration

cs-api-definition
public void InsertCrossReferenceToHeading(Paragraph headingParagraph, ReferenceContentType contentType, bool insertAsHyperlink)

Parameters

headingParagraph

Paragraph

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

contentType

ReferenceContentType

Type of the content.

insertAsHyperlink

bool

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

Implements IDocumentEditor.InsertCrossReferenceToHeading(Paragraph, ReferenceContentType, bool)

InsertEndnote()

Inserts endnote at the current position.

Declaration

cs-api-definition
public void InsertEndnote()

Implements IDocumentEditor.InsertEndnote()

InsertEndnote(Note)

Inserts the endnote at the current position.

Declaration

cs-api-definition
public void InsertEndnote(Note endnote)

Parameters

endnote

Note

The endnote.

Implements IDocumentEditor.InsertEndnote(Note)

InsertField(Field)

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

Declaration

cs-api-definition
public bool InsertField(Field field)

Parameters

field

Field

The field.

Returns

bool

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

cs-api-definition
public bool InsertField(Field field, FieldDisplayMode displayMode)

Parameters

field

Field

The field.

displayMode

FieldDisplayMode

The display mode.

Returns

bool

True, if the operation completed successfully.

Implements IDocumentEditor.InsertField(Field, FieldDisplayMode)

InsertFootnote()

Inserts footnote at the current position.

Declaration

cs-api-definition
public void InsertFootnote()

Implements IDocumentEditor.InsertFootnote()

InsertFootnote(Note)

Inserts the footnote at the current position.

Declaration

cs-api-definition
public void InsertFootnote(Note footnote)

Parameters

footnote

Note

The footnote.

Implements IDocumentEditor.InsertFootnote(Note)

InsertFragment(DocumentFragment)

Inserts a fragment at the current caret position.

Declaration

cs-api-definition
public void InsertFragment(DocumentFragment documentFragment)

Parameters

documentFragment

DocumentFragment

The fragment to insert.

Exceptions

ArgumentNullException

Thrown when documentFragment is null.

Implements IDocumentEditor.InsertFragment(DocumentFragment)

InsertFragment(DocumentFragment, DocumentPosition)

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

Declaration

cs-api-definition
public void InsertFragment(DocumentFragment documentFragment, DocumentPosition documentPosition)

Parameters

documentFragment

DocumentFragment

The fragment to insert.

documentPosition

DocumentPosition

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 hyperlink in the document. The hyperlink will be created around the current selection.

Declaration

cs-api-definition
public void InsertHyperlink(HyperlinkInfo hyperlinkInfo)

Parameters

hyperlinkInfo

HyperlinkInfo

The hyperlink info.

Implements IDocumentEditor.InsertHyperlink(HyperlinkInfo)

Inserts a hyperlink in the document.

Declaration

cs-api-definition
public void InsertHyperlink(HyperlinkInfo hyperlinkInfo, IEnumerable<Inline> inlines)

Parameters

hyperlinkInfo

HyperlinkInfo

The hyperlink info.

inlines

IEnumerable<Inline>

The inlines in the hyperlink.

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

Inserts collection of inlines as hyperlink into the document.

Declaration

cs-api-definition
public void InsertHyperlink(HyperlinkInfo hyperlinkInfo, string hyperlinkText)

Parameters

hyperlinkInfo

HyperlinkInfo

The hyperlink info.

hyperlinkText

string

The hyperlink text.

InsertImage(Stream, string)

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

Declaration

cs-api-definition
public void InsertImage(Stream imageStream, string extension)

Parameters

imageStream

Stream

The stream to the image's contents.

extension

string

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

cs-api-definition
public void InsertInline(Inline inline)

Parameters

inline

Inline

The inline element to insert.

Exceptions

ArgumentNullException

Thrown when inline is null.

Implements IDocumentEditor.InsertInline(Inline)

InsertInline(Inline, DocumentPosition)

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

Declaration

cs-api-definition
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.

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.

InsertLine(string)

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

Declaration

cs-api-definition
public void InsertLine(string text)

Parameters

text

string

The text.

Implements IDocumentEditor.InsertLine(string)

InsertLineBreak()

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

Declaration

cs-api-definition
public void InsertLineBreak()

Implements IDocumentEditor.InsertLineBreak()

InsertNonBreakingSpace()

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

Declaration

cs-api-definition
public void InsertNonBreakingSpace()

InsertPageBreak()

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

Declaration

cs-api-definition
public void InsertPageBreak()

Implements IDocumentEditor.InsertPageBreak()

InsertParagraph()

Inserts a new paragraph at the current caret position.

Declaration

cs-api-definition
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

cs-api-definition
public void InsertPermissionRange(IEnumerable<PermissionRangeInfo> permissionInfos)

Parameters

permissionInfos

IEnumerable<PermissionRangeInfo>

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

cs-api-definition
public void InsertReadOnlyRange()

Implements IDocumentEditor.InsertReadOnlyRange()

InsertSectionBreak()

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

Declaration

cs-api-definition
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

cs-api-definition
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

cs-api-definition
public void InsertShape(ShapeType shapeType, Size size)

Parameters

shapeType

ShapeType

The type of shape.

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

cs-api-definition
public void InsertStructuredDocumentTag()

InsertStructuredDocumentTag(SdtProperties)

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

Declaration

cs-api-definition
public void InsertStructuredDocumentTag(SdtProperties insertProperties)

Parameters

insertProperties

SdtProperties

InsertStructuredDocumentTag(SdtType)

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

Declaration

cs-api-definition
public void InsertStructuredDocumentTag(SdtType insertType)

Parameters

insertType

SdtType

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

cs-api-definition
public void InsertTable(Table table)

Parameters

table

Table

The table.

Implements IDocumentEditor.InsertTable(Table)

InsertTable(Table, bool)

Inserts the table.

Declaration

cs-api-definition
public void InsertTable(Table table, bool shouldInsertParagraphBeforeTable)

Parameters

table

Table

The table.

shouldInsertParagraphBeforeTable

bool

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.

InsertTable(int, int)

Inserts a new table in the document.

Declaration

cs-api-definition
public void InsertTable(int rows, int columns)

Parameters

rows

int

Number of the rows in the table.

columns

int

Number of the columns in the table.

Implements IDocumentEditor.InsertTable(int, int)

InsertTable(int, int, bool)

Inserts a new table in the document.

Declaration

cs-api-definition
public void InsertTable(int rows, int columns, bool shouldInsertParagraphBeforeTable)

Parameters

rows

int

Number of the rows in the table.

columns

int

Number of the columns in the table.

shouldInsertParagraphBeforeTable

bool

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

InsertTableColumn()

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

Declaration

cs-api-definition
public void InsertTableColumn()

Implements IDocumentEditor.InsertTableColumn()

InsertTableColumnToTheLeft()

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

Declaration

cs-api-definition
public void InsertTableColumnToTheLeft()

Implements IDocumentEditor.InsertTableColumnToTheLeft()

InsertTableColumnToTheRight()

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

Declaration

cs-api-definition
public void InsertTableColumnToTheRight()

Implements IDocumentEditor.InsertTableColumnToTheRight()

InsertTableRow()

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

Declaration

cs-api-definition
public void InsertTableRow()

Implements IDocumentEditor.InsertTableRow()

InsertTableRowAbove()

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

Declaration

cs-api-definition
public void InsertTableRowAbove()

Implements IDocumentEditor.InsertTableRowAbove()

InsertTableRowBelow()

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

Declaration

cs-api-definition
public void InsertTableRowBelow()

Implements IDocumentEditor.InsertTableRowBelow()

InsertTextBox()

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

Declaration

cs-api-definition
public void InsertTextBox()

Implements IDocumentEditor.InsertTextBox()

MailMerge(bool)

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

Declaration

cs-api-definition
public RadDocument MailMerge(bool startEachRecordOnNewPage)

Parameters

startEachRecordOnNewPage

bool

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

Returns

RadDocument

The document containing the result of the operation.

Implements IDocumentEditor.MailMerge(bool)

MailMergeCurrentRecord()

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

Declaration

cs-api-definition
public RadDocument MailMergeCurrentRecord()

Returns

RadDocument

The document.

Implements IDocumentEditor.MailMergeCurrentRecord()

MergeTableCells()

Merges the currently selected table cells into one.

Declaration

cs-api-definition
public void MergeTableCells()

Implements IDocumentEditor.MergeTableCells()

MoveSelection(DocumentPosition, bool)

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

Declaration

cs-api-definition
public void MoveSelection(DocumentPosition movePosition, bool deleteSelection)

Parameters

movePosition

DocumentPosition

The start position where the selection should be moved to.

deleteSelection

bool

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

Implements IDocumentEditor.MoveSelection(DocumentPosition, bool)

Paste()

Pastes the content of the clipboard into the document.

Declaration

cs-api-definition
public void Paste()

Implements IDocumentEditor.Paste()

Paste(PasteOption)

Pastes the content of the clipboard into the document.

Declaration

cs-api-definition
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

cs-api-definition
public bool PasteFormatting()

Returns

bool

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

cs-api-definition
public bool PreviewFirstMailMergeDataRecord()

Returns

bool

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

cs-api-definition
public bool PreviewLastMailMergeDataRecord()

Returns

bool

True, if the operation completed successfully.

Implements IDocumentEditor.PreviewLastMailMergeDataRecord()

PreviewMailMergeDataRecordAtIndex(int)

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

Declaration

cs-api-definition
public bool PreviewMailMergeDataRecordAtIndex(int index)

Parameters

index

int

The index of the record to be shown.

Returns

bool

True, if the operation completed successfully.

Implements IDocumentEditor.PreviewMailMergeDataRecordAtIndex(int)

PreviewNextMailMergeDataRecord()

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

Declaration

cs-api-definition
public bool PreviewNextMailMergeDataRecord()

Returns

bool

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

cs-api-definition
public bool PreviewPreviousMailMergeDataRecord()

Returns

bool

True, if the operation completed successfully.

Implements IDocumentEditor.PreviewPreviousMailMergeDataRecord()

Redo()

Re-executes the last undone command group.

Declaration

cs-api-definition
public void Redo()

Implements IDocumentEditor.Redo()

RejectAllRevisions()

Rejects all revisions in the document.

Declaration

cs-api-definition
public void RejectAllRevisions()

Implements IDocumentEditor.RejectAllRevisions()

RejectRevision(Revision)

Rejects a revision.

Declaration

cs-api-definition
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

cs-api-definition
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

cs-api-definition
public void RemoveTabStopRange(IEnumerable<TabStop> tabStops)

Parameters

tabStops

IEnumerable<TabStop>

The tab stops.

Implements IDocumentEditor.RemoveTabStopRange(IEnumerable<TabStop>)

ReplaceTabStop(TabStop, TabStop)

Replaces a tab stop inside the selected paragraphs.

Declaration

cs-api-definition
public void ReplaceTabStop(TabStop oldTabStop, TabStop newTabStop)

Parameters

oldTabStop

TabStop

The old tab stop.

newTabStop

TabStop

The new tab stop.

Implements IDocumentEditor.ReplaceTabStop(TabStop, TabStop)

ResizeTableColumn(Table, int, 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, int, TableWidthUnit) method.

Declaration

cs-api-definition
public void ResizeTableColumn(Table table, int columnIndex, double columnWidth)

Parameters

table

Table

The table.

columnIndex

int

The index of the column.

columnWidth

double

The new value for the column width.

Implements IDocumentEditor.ResizeTableColumn(Table, int, double)

RestartListNumbering()

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

Declaration

cs-api-definition
public bool RestartListNumbering()

Returns

bool

A boolean value determining whether the operation completed successfully.

Implements IDocumentEditor.RestartListNumbering()

SetListNumbering(int)

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

Declaration

cs-api-definition
public bool SetListNumbering(int numbersToSkip)

Parameters

numbersToSkip

int

The numbers to skip.

Returns

bool

A boolean value indicating whether the operation completed successfully.

Implements IDocumentEditor.SetListNumbering(int)

SetWatermark(DocumentWatermarkSettings)

Sets a watermark to the selected sections.

Declaration

cs-api-definition
public void SetWatermark(DocumentWatermarkSettings watermarkSettings)

Parameters

watermarkSettings

DocumentWatermarkSettings

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

cs-api-definition
public void SetWatermark(PredefinedWatermarkType predefinedType)

Parameters

predefinedType

PredefinedWatermarkType

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

cs-api-definition
public void SplitAnnotationRange(AnnotationRangeStart rangeStart)

Parameters

rangeStart

AnnotationRangeStart

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

cs-api-definition
public void SplitAnnotationRange(AnnotationRangeStart rangeStart, DocumentPosition position)

Parameters

rangeStart

AnnotationRangeStart

The annotation range start to be split.

position

DocumentPosition

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

cs-api-definition
public void SuppressLineNumberingForCurrentParagraph(IEnumerable<Paragraph> paragraphs)

Parameters

paragraphs

IEnumerable<Paragraph>

The paragraphs.

Implements IDocumentEditor.SuppressLineNumberingForCurrentParagraph(IEnumerable<Paragraph>)

ToggleBold()

Toggles the font weight of the selected content between and .

Declaration

cs-api-definition
public void ToggleBold()

Implements IDocumentEditor.ToggleBold()

ToggleFieldCodes(FieldRangeStart)

Toggles the display mode of a field.

Declaration

cs-api-definition
public void ToggleFieldCodes(FieldRangeStart fieldStart)

Parameters

fieldStart

FieldRangeStart

The field start.

Implements IDocumentEditor.ToggleFieldCodes(FieldRangeStart)

ToggleItalic()

Toggles the font style of the selected content between and .

Declaration

cs-api-definition
public void ToggleItalic()

Implements IDocumentEditor.ToggleItalic()

ToggleStrikethrough()

Toggles the strike-through of the selected content.

Declaration

cs-api-definition
public void ToggleStrikethrough()

Implements IDocumentEditor.ToggleStrikethrough()

Undo()

Reverts the last executed command group.

Declaration

cs-api-definition
public void Undo()

Implements IDocumentEditor.Undo()

UnmergeTableCells()

Splits the currently selected table cell.

Declaration

cs-api-definition
public void UnmergeTableCells()

Implements IDocumentEditor.UnmergeTableCells()

UpdateAllCaptions(CaptionDefinition)

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

Declaration

cs-api-definition
public void UpdateAllCaptions(CaptionDefinition captionDefinition)

Parameters

captionDefinition

CaptionDefinition

The caption definition.

Implements IDocumentEditor.UpdateAllCaptions(CaptionDefinition)

UpdateAllFields()

Updates all fields in the document.

Declaration

cs-api-definition
public void UpdateAllFields()

Implements IDocumentEditor.UpdateAllFields()

UpdateAllFields(FieldDisplayMode)

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

Declaration

cs-api-definition
public void UpdateAllFields(FieldDisplayMode displayMode)

Parameters

displayMode

FieldDisplayMode

The display mode which will be used for the fields.

Implements IDocumentEditor.UpdateAllFields(FieldDisplayMode)

UpdateField(FieldRangeStart)

Updates a field.

Declaration

cs-api-definition
public void UpdateField(FieldRangeStart fieldStart)

Parameters

fieldStart

FieldRangeStart

The field start.

Implements IDocumentEditor.UpdateField(FieldRangeStart)

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

Updates the permissions inside the current selection.

Declaration

cs-api-definition
public void UpdatePermissionRanges(IEnumerable<PermissionRangeInfo> permissionsToAdd, IEnumerable<PermissionRangeInfo> permissionsToRemove)

Parameters

permissionsToAdd

IEnumerable<PermissionRangeInfo>

Permissions to add.

permissionsToRemove

IEnumerable<PermissionRangeInfo>

Permissions to remove.

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

In this article
DefinitionConstructorsRadDocumentEditor(RadDocument)PropertiesAcceptsReturnDocumentRespectDocumentProtectionRespectNonDeletableRangesRespectReadOnlyRangesMethodsAcceptAllRevisions()AcceptRevision(Revision)AddShapeTextBox(ShapeInline)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)ChangeParagraphLineSpacing(double, LineSpacingType)ChangeParagraphLineSpacingType(LineSpacingType)ChangeParagraphListLevel(int)ChangeParagraphListStyle(ListStyle)ChangeParagraphListStyle(ListStyle, IEnumerable<Paragraph>)ChangeParagraphRightIndent(double)ChangeParagraphSpacingAfter(double)ChangeParagraphSpacingBefore(double)ChangeParagraphStyle(StyleDefinition)ChangeParagraphTextAlignment(RadTextAlignment)ChangeRotateTextWithShape(ShapeInline, bool)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)ChangeShapeAutoFitToText(ShapeInline, bool)ChangeShapeFill(ShapeInline, IShapeFill)ChangeShapeOutlineDash(ShapeInline, LineDashType)ChangeShapeOutlineFill(ShapeInline, IShapeOutlineFill)ChangeShapeOutlineWidth(ShapeInline, double)ChangeShapeRotateAngle(ShapeInline, double)ChangeShapeSize(ShapeInline, Size)ChangeShapeTextBottomMargin(ShapeInline, double)ChangeShapeTextFill(ShapeInline, IShapeFill)ChangeShapeTextLeftMargin(ShapeInline, double)ChangeShapeTextOutlineDash(ShapeInline, LineDashType)ChangeShapeTextOutlineFill(ShapeInline, IShapeOutlineFill)ChangeShapeTextOutlineWidth(ShapeInline, double)ChangeShapeTextRightMargin(ShapeInline, double)ChangeShapeTextRotation(ShapeInline, TextRotation)ChangeShapeTextTopMargin(ShapeInline, double)ChangeShapeTextVerticalAlignment(ShapeInline, RadVerticalAlignment)ChangeShapeTextWrap(ShapeInline, bool)ChangeSpanStyle(StyleDefinition)ChangeStrikethrough(bool)ChangeStyleName(string)ChangeStyleName(string, bool)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)EditShapeTextBox(ShapeInline)EndUndoGroup()EndUndoGroup(string)HasEditPermissions()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)InsertField(Field, FieldDisplayMode)InsertFootnote()InsertFootnote(Note)InsertFragment(DocumentFragment)InsertFragment(DocumentFragment, DocumentPosition)InsertHyperlink(HyperlinkInfo)InsertHyperlink(HyperlinkInfo, IEnumerable<Inline>)InsertHyperlink(HyperlinkInfo, string)InsertImage(Stream, string)InsertInline(Inline)InsertInline(Inline, DocumentPosition)InsertLine(string)InsertLineBreak()InsertNonBreakingSpace()InsertPageBreak()InsertParagraph()InsertPermissionRange(IEnumerable<PermissionRangeInfo>)InsertReadOnlyRange()InsertSectionBreak()InsertSectionBreak(SectionBreakType)InsertShape(ShapeType, Size)InsertStructuredDocumentTag()InsertStructuredDocumentTag(SdtProperties)InsertStructuredDocumentTag(SdtType)InsertTable(Table)InsertTable(Table, bool)InsertTable(int, int)InsertTable(int, int, bool)InsertTableColumn()InsertTableColumnToTheLeft()InsertTableColumnToTheRight()InsertTableRow()InsertTableRowAbove()InsertTableRowBelow()InsertTextBox()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)SplitAnnotationRange(AnnotationRangeStart, DocumentPosition)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