Interface
IDocumentEditor

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

Definition

Namespace:Telerik.Windows.Documents.Model

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public interface IDocumentEditor

Properties

Document

Gets the current document.

Declaration

cs-api-definition
RadDocument Document { get; }

Property Value

RadDocument

Methods

AcceptAllRevisions()

Accepts all revisions in the document.

Declaration

cs-api-definition
void AcceptAllRevisions()

AcceptRevision(Revision)

Accepts a revision.

Declaration

cs-api-definition
void AcceptRevision(Revision revision)

Parameters

revision

Revision

The revision.

AddShapeTextBox(ShapeInline)

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

Declaration

cs-api-definition
void AddShapeTextBox(ShapeInline shape)

Parameters

shape

ShapeInline

The ShapeInline.

AddTabStop(TabStop)

Adds a tab stop to the current paragraph.

Declaration

cs-api-definition
void AddTabStop(TabStop tabStop)

Parameters

tabStop

TabStop

The tab stop.

AddTabStopRange(IEnumerable<TabStop>)

Adds a tab stop range to the current paragraph.

Declaration

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

Parameters

tabStops

IEnumerable<TabStop>

The tab stop collection.

BeginUndoGroup()

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

Declaration

cs-api-definition
void BeginUndoGroup()

CancelUndoGroup()

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

Declaration

cs-api-definition
void CancelUndoGroup()

ChangeAllFieldsDisplayMode(FieldDisplayMode)

Changes the display mode of all fields in the document.

Declaration

cs-api-definition
void ChangeAllFieldsDisplayMode(FieldDisplayMode displayMode)

Parameters

displayMode

FieldDisplayMode

The display mode which will be used for the fields.

ChangeBaselineAlignment(BaselineAlignment)

Changes the baseline alignment of the selected content.

Declaration

cs-api-definition
void ChangeBaselineAlignment(BaselineAlignment baselineAlignment)

Parameters

baselineAlignment

BaselineAlignment

The baseline alignment to be applied.

ChangeBibliographicStyle(BibliographicReferenceStyleBase)

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

Declaration

cs-api-definition
void ChangeBibliographicStyle(BibliographicReferenceStyleBase style)

Parameters

style

BibliographicReferenceStyleBase

The new bibliographic style.

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

ChangeDifferentOddAndEvenPagesHeaderFooter(bool)

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

Declaration

cs-api-definition
void ChangeDifferentOddAndEvenPagesHeaderFooter(bool value)

Parameters

value

bool

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

ChangeDocumentDefaultTabWidth(double)

Changes default tab stop width for the document.

Declaration

cs-api-definition
void ChangeDocumentDefaultTabWidth(double tabWidth)

Parameters

tabWidth

double

Width of the tab.

ChangeDocumentElementTag(DocumentElement, string)

Changes the Tag property of a specified DocumentElement.

Declaration

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

Parameters

element

DocumentElement

The DocumentElement.

tag

string

The new tag value.

ChangeDocumentEndnotesFirstNumber(int)

Changes the first number of the endnotes in the document.

Declaration

cs-api-definition
void ChangeDocumentEndnotesFirstNumber(int firstNumber)

Parameters

firstNumber

int

The first number.

ChangeDocumentEndnotesNumberingFormat(ListNumberingFormat)

Changes the numbering format of the endnotes in the document.

Declaration

cs-api-definition
void ChangeDocumentEndnotesNumberingFormat(ListNumberingFormat numberingFormat)

Parameters

numberingFormat

ListNumberingFormat

The numbering format.

ChangeDocumentEndnotesNumberingRestartType(NumberingRestartType)

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

Declaration

cs-api-definition
void ChangeDocumentEndnotesNumberingRestartType(NumberingRestartType numberingRestartType)

Parameters

numberingRestartType

NumberingRestartType

The type of restart for the numbering.

ChangeDocumentEndnotesPosition(EndnotesPosition)

Changes the position of the endnotes in the document.

Declaration

cs-api-definition
void ChangeDocumentEndnotesPosition(EndnotesPosition endnotesPosition)

Parameters

endnotesPosition

EndnotesPosition

The position.

ChangeDocumentFootnotesFirstNumber(int)

Changes the first number of the footnotes in the document.

Declaration

cs-api-definition
void ChangeDocumentFootnotesFirstNumber(int firstNumber)

Parameters

firstNumber

int

The first number.

ChangeDocumentFootnotesNumberingFormat(ListNumberingFormat)

Changes the numbering format of the footnotes in the document.

Declaration

cs-api-definition
void ChangeDocumentFootnotesNumberingFormat(ListNumberingFormat numberingFormat)

Parameters

numberingFormat

ListNumberingFormat

The numbering format.

ChangeDocumentFootnotesNumberingRestartType(NumberingRestartType)

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

Declaration

cs-api-definition
void ChangeDocumentFootnotesNumberingRestartType(NumberingRestartType numberingRestartType)

Parameters

numberingRestartType

NumberingRestartType

The type of restart for the numbering.

ChangeDocumentFootnotesPosition(FootnotesPosition)

Changes the position of the footnotes in the document.

Declaration

cs-api-definition
void ChangeDocumentFootnotesPosition(FootnotesPosition footnotesPosition)

Parameters

footnotesPosition

FootnotesPosition

The footnotes position.

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
void ChangeDocumentIsStrictLineBreakingRuleEnabled(bool value)

Parameters

value

bool

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

ChangeDocumentLineBreakingRuleLanguage(LineBreakingRuleLanguage)

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

Declaration

cs-api-definition
void ChangeDocumentLineBreakingRuleLanguage(LineBreakingRuleLanguage lineBreakingRuleLanguage)

Parameters

lineBreakingRuleLanguage

LineBreakingRuleLanguage

The line breaking rule language.

ChangeDocumentNoLineBreaksAfterRule(LineBreakingRule)

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

Declaration

cs-api-definition
void ChangeDocumentNoLineBreaksAfterRule(LineBreakingRule lineBreakingCharacterRule)

Parameters

lineBreakingCharacterRule

LineBreakingRule

The line breaking character rule.

ChangeDocumentNoLineBreaksBeforeRule(LineBreakingRule)

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

Declaration

cs-api-definition
void ChangeDocumentNoLineBreaksBeforeRule(LineBreakingRule lineBreakingCharacterRule)

Parameters

lineBreakingCharacterRule

LineBreakingRule

The rule.

ChangeFieldDisplayMode(FieldRangeStart, FieldDisplayMode)

Changes the display mode of a field.

Declaration

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

Parameters

fieldStart

FieldRangeStart

The field start.

displayMode

FieldDisplayMode

The new display mode.

ChangeFontFamily(FontFamily)

Changes the font family of the selected content.

Declaration

cs-api-definition
void ChangeFontFamily(FontFamily fontFamily)

Parameters

fontFamily

FontFamily

The font family to be applied.

ChangeFontSize(double)

Changes the size of the font of the selected content.

Declaration

cs-api-definition
void ChangeFontSize(double fontSize)

Parameters

fontSize

double

Size of the font.

ChangeFontStyle(FontStyle)

Changes the font style of the selected content.

Declaration

cs-api-definition
void ChangeFontStyle(FontStyle fontStyle)

Parameters

fontStyle

FontStyle

The font style.

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
void ChangeFontWeight(FontWeight fontWeight)

Parameters

fontWeight

FontWeight

The font weight.

ChangeForeColor(Color)

Changes the fore color of the selected content.

Declaration

cs-api-definition
void ChangeForeColor(Color color)

Parameters

color

Color

The color.

ChangeHighlightColor(Color)

Changes the highlight color of the selected content.

Declaration

cs-api-definition
void ChangeHighlightColor(Color color)

Parameters

color

Color

The color.

ChangeImageRotateAngle(ImageInline, double)

Changes the rotate angle of an image.

Declaration

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

Parameters

image

ImageInline

The ImageInline.

angle

double

The new angle.

ChangeImageSize(ImageInline, Size)

Changes the size of an image.

Declaration

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

Parameters

image

ImageInline

The ImageInline which is modified.

size

Size

The new size.

ChangeLineNumberingRestartType(LineNumberingRestartType)

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

Declaration

cs-api-definition
void ChangeLineNumberingRestartType(LineNumberingRestartType restartType)

Parameters

restartType

LineNumberingRestartType

The line numbering restart type.

ChangeParagraphAutomaticSpacingAfter(bool)

Changes the automatic spacing after of the selected paragraphs.

Declaration

cs-api-definition
void ChangeParagraphAutomaticSpacingAfter(bool value)

Parameters

value

bool

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

ChangeParagraphAutomaticSpacingBefore(bool)

Changes the automatic spacing before of the selected paragraphs.

Declaration

cs-api-definition
void ChangeParagraphAutomaticSpacingBefore(bool value)

Parameters

value

bool

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

ChangeParagraphBackground(Color)

Changes the background of the selected paragraphs.

Declaration

cs-api-definition
void ChangeParagraphBackground(Color color)

Parameters

color

Color

The color.

ChangeParagraphFirstLineIndent(double)

Changes the first line indent of the selected paragraphs.

Declaration

cs-api-definition
void ChangeParagraphFirstLineIndent(double firstLineIndent)

Parameters

firstLineIndent

double

The first line indent.

ChangeParagraphFlowDirection(FlowDirection)

Changes the flow direction of the selected paragraphs.

Declaration

cs-api-definition
void ChangeParagraphFlowDirection(FlowDirection flowDirection)

Parameters

flowDirection

FlowDirection

The flow direction.

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

ChangeParagraphLeftIndent(double)

Changes the left indent of the selected paragraphs.

Declaration

cs-api-definition
void ChangeParagraphLeftIndent(double leftIndent)

Parameters

leftIndent

double

The left indent.

ChangeParagraphLineSpacing(double)

Changes the line spacing of the selected paragraphs.

Declaration

cs-api-definition
void ChangeParagraphLineSpacing(double lineSpacing)

Parameters

lineSpacing

double

The line spacing.

ChangeParagraphLineSpacing(double, LineSpacingType)

Changes the line spacing of the selected paragraphs.

Declaration

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

Parameters

lineSpacing

double

The line spacing.

lineSpacingType

LineSpacingType

Type of the line spacing.

ChangeParagraphLineSpacingType(LineSpacingType)

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

Declaration

cs-api-definition
void ChangeParagraphLineSpacingType(LineSpacingType lineSpacingType)

Parameters

lineSpacingType

LineSpacingType

Type of the line spacing.

ChangeParagraphListLevel(int)

Changes the list level of the selected paragraphs.

Declaration

cs-api-definition
void ChangeParagraphListLevel(int listLevel)

Parameters

listLevel

int

The list level.

ChangeParagraphListStyle(ListStyle)

Changes the paragraph list style of the selected paragraphs.

Declaration

cs-api-definition
void ChangeParagraphListStyle(ListStyle style)

Parameters

style

ListStyle

The style.

ChangeParagraphRightIndent(double)

Changes the right indent of the selected paragraphs.

Declaration

cs-api-definition
void ChangeParagraphRightIndent(double rightIndent)

Parameters

rightIndent

double

The right indent.

ChangeParagraphSpacingAfter(double)

Changes the spacing after of the selected paragraphs.

Declaration

cs-api-definition
void ChangeParagraphSpacingAfter(double spacingAfter)

Parameters

spacingAfter

double

The spacing after.

ChangeParagraphSpacingBefore(double)

Changes the spacing before of the selected paragraphs.

Declaration

cs-api-definition
void ChangeParagraphSpacingBefore(double spacingBefore)

Parameters

spacingBefore

double

The spacing before.

ChangeParagraphStyle(StyleDefinition)

Changes the paragraph style of the selected content.

Declaration

cs-api-definition
void ChangeParagraphStyle(StyleDefinition styleInfo)

Parameters

styleInfo

StyleDefinition

The style information.

ChangeParagraphTextAlignment(RadTextAlignment)

Changes the text alignment of the selected paragraphs.

Declaration

cs-api-definition
void ChangeParagraphTextAlignment(RadTextAlignment alignment)

Parameters

alignment

RadTextAlignment

The alignment.

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
void ChangeRotateTextWithShape(ShapeInline shape, bool shouldRotate)

Parameters

shape

ShapeInline

The ShapeInline.

shouldRotate

bool

The new value that indicates text box element rotation behavior.

ChangeSectionActualPageMargin(Padding)

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

Declaration

cs-api-definition
void ChangeSectionActualPageMargin(Padding sectionMargin)

Parameters

sectionMargin

Padding

The margin.

ChangeSectionColumns(SectionColumnCollection)

Changes the section columns for the selected sections.

Declaration

cs-api-definition
void ChangeSectionColumns(SectionColumnCollection sectionColumns)

Parameters

sectionColumns

SectionColumnCollection

The section columns.

ChangeSectionColumns(SectionColumnsLayout)

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

Declaration

cs-api-definition
void ChangeSectionColumns(SectionColumnsLayout sectionColumnsLayout)

Parameters

sectionColumnsLayout

SectionColumnsLayout

The section columns layout.

ChangeSectionEndnotesFirstNumber(int)

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

Declaration

cs-api-definition
void ChangeSectionEndnotesFirstNumber(int firstNumber)

Parameters

firstNumber

int

The first number.

ChangeSectionEndnotesNumberingFormat(ListNumberingFormat)

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

Declaration

cs-api-definition
void ChangeSectionEndnotesNumberingFormat(ListNumberingFormat numberingFormat)

Parameters

numberingFormat

ListNumberingFormat

The numbering format.

ChangeSectionEndnotesNumberingRestartType(NumberingRestartType)

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

Declaration

cs-api-definition
void ChangeSectionEndnotesNumberingRestartType(NumberingRestartType numberingRestartType)

Parameters

numberingRestartType

NumberingRestartType

The type of restart for the numbering.

ChangeSectionFirstPageNumber(int?)

Changes the first page number of the selected sections.

Declaration

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

Parameters

firstPageNumber

int?

The first page number.

Changes the section footer.

Declaration

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

Parameters

section

Section

The section.

footerType

HeaderFooterType

Type of the footer.

footer

Footer

The footer.

ChangeSectionFooterBottomMargin(int)

Changes the footer bottom margin of the selected sections.

Declaration

cs-api-definition
void ChangeSectionFooterBottomMargin(int sectionFooterBottomMargin)

Parameters

sectionFooterBottomMargin

int

The section footer bottom margin.

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

ChangeSectionFootnotesFirstNumber(int)

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

Declaration

cs-api-definition
void ChangeSectionFootnotesFirstNumber(int firstNumber)

Parameters

firstNumber

int

The first number.

ChangeSectionFootnotesNumberingFormat(ListNumberingFormat)

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

Declaration

cs-api-definition
void ChangeSectionFootnotesNumberingFormat(ListNumberingFormat numberingFormat)

Parameters

numberingFormat

ListNumberingFormat

The numbering format.

ChangeSectionFootnotesNumberingRestartType(NumberingRestartType)

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

Declaration

cs-api-definition
void ChangeSectionFootnotesNumberingRestartType(NumberingRestartType numberingRestartType)

Parameters

numberingRestartType

NumberingRestartType

The type of restart for the numbering.

ChangeSectionHeader(Section, HeaderFooterType, Header)

Changes the section header.

Declaration

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

Parameters

section

Section

The section.

headerType

HeaderFooterType

Type of the header.

header

Header

The 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
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.

ChangeSectionHeaderTopMargin(int)

Changes the header top margin of the selected sections.

Declaration

cs-api-definition
void ChangeSectionHeaderTopMargin(int sectionHeaderTopMargin)

Parameters

sectionHeaderTopMargin

int

The section header top margin.

ChangeSectionLineNumbering(LineNumbering)

Changes the line numbering for the selected sections.

Declaration

cs-api-definition
void ChangeSectionLineNumbering(LineNumbering lineNumbering)

Parameters

lineNumbering

LineNumbering

The line numbering.

ChangeSectionPageMargin(Padding)

Changes the page margin of the selected sections.

Declaration

cs-api-definition
void ChangeSectionPageMargin(Padding sectionMargin)

Parameters

sectionMargin

Padding

The margin.

ChangeSectionPageOrientation(PageOrientation)

Changes the page orientation of the selected sections.

Declaration

cs-api-definition
void ChangeSectionPageOrientation(PageOrientation sectionPageOrientation)

Parameters

sectionPageOrientation

PageOrientation

The page orientation.

ChangeSectionPageSize(Size)

Changes the page size of the selected sections.

Declaration

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

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
void ChangeShapeAutoFitToText(ShapeInline shape, bool shouldAutoFit)

Parameters

shape

ShapeInline

The ShapeInline.

shouldAutoFit

bool

The new value that indicates text box element wrap behavior.

ChangeShapeFill(ShapeInline, IShapeFill)

Changes the fill of a shape.

Declaration

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

Parameters

shape

ShapeInline

The ShapeInline.

fill

IShapeFill

The new fill.

ChangeShapeOutlineDash(ShapeInline, LineDashType)

Changes the width of a shape outline.

Declaration

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

Parameters

shape

ShapeInline

The ShapeInline which is modified.

dash

LineDashType

The new dashing pattern.

ChangeShapeOutlineFill(ShapeInline, IShapeOutlineFill)

Changes the fill of a shape outline.

Declaration

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

Parameters

shape

ShapeInline

The ShapeInline.

fill

IShapeOutlineFill

The new fill.

ChangeShapeOutlineWidth(ShapeInline, double)

Changes the width of a shape outline.

Declaration

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

Parameters

shape

ShapeInline

The ShapeInline which is modified.

width

double

The new width value.

ChangeShapeRotateAngle(ShapeInline, double)

Changes the rotate angle of a shape.

Declaration

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

Parameters

shape

ShapeInline

The ShapeInline.

angle

double

The new angle.

ChangeShapeSize(ShapeInline, Size)

Changes the size of a shape.

Declaration

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

Parameters

shape

ShapeInline

The ShapeInline whose size should be changed.

size

Size

The new size.

ChangeShapeTextBottomMargin(ShapeInline, double)

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

Declaration

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

Parameters

shape

ShapeInline

The ShapeInline.

margin

double

The new bottom margin.

ChangeShapeTextFill(ShapeInline, IShapeFill)

Changes the fill of a shape's text.

Declaration

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

Parameters

shape

ShapeInline

The ShapeInline.

fill

IShapeFill

The new fill.

ChangeShapeTextLeftMargin(ShapeInline, double)

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

Declaration

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

Parameters

shape

ShapeInline

The ShapeInline.

margin

double

The new left margin.

ChangeShapeTextOutlineDash(ShapeInline, LineDashType)

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

Declaration

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

Parameters

shape

ShapeInline

The ShapeInline which is modified.

dash

LineDashType

The new dashing pattern.

ChangeShapeTextOutlineFill(ShapeInline, IShapeOutlineFill)

Changes the fill of a shape's text outline.

Declaration

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

Parameters

shape

ShapeInline

The ShapeInline.

fill

IShapeOutlineFill

The new fill.

ChangeShapeTextOutlineWidth(ShapeInline, double)

Changes the width of a shape's outline width.

Declaration

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

Parameters

shape

ShapeInline

The ShapeInline which is modified.

width

double

The new width value.

ChangeShapeTextRightMargin(ShapeInline, double)

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

Declaration

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

Parameters

shape

ShapeInline

The ShapeInline.

margin

double

The new right margin.

ChangeShapeTextRotation(ShapeInline, TextRotation)

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

Declaration

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

Parameters

shape

ShapeInline

The ShapeInline.

rotation

TextRotation

The new rotation angle (in degrees).

ChangeShapeTextTopMargin(ShapeInline, double)

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

Declaration

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

Parameters

shape

ShapeInline

The ShapeInline.

margin

double

The new top margin.

ChangeShapeTextVerticalAlignment(ShapeInline, RadVerticalAlignment)

Changes the vertical alignment of the shape's text box element.

Declaration

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

Parameters

shape

ShapeInline

The ShapeInline.

alignment

RadVerticalAlignment

The new vertical alignment.

ChangeShapeTextWrap(ShapeInline, bool)

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

Declaration

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

Parameters

shape

ShapeInline

The ShapeInline.

shouldWrap

bool

The new value that indicates text box element wrap behavior.

ChangeSpanStyle(StyleDefinition)

Changes the span style of the selected content.

Declaration

cs-api-definition
void ChangeSpanStyle(StyleDefinition styleInfo)

Parameters

styleInfo

StyleDefinition

The style information.

ChangeStrikethrough(bool)

Changes the strike-through of the selected content.

Declaration

cs-api-definition
void ChangeStrikethrough(bool isStrikethrough)

Parameters

isStrikethrough

bool

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

ChangeStyleName(string)

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

Declaration

cs-api-definition
void ChangeStyleName(string styleName)

Parameters

styleName

string

Name of the style to be applied.

ChangeStyleName(string, bool)

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

Declaration

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

ChangeTableBorders(TableBorders)

Changes the borders of the selected tables.

Declaration

cs-api-definition
void ChangeTableBorders(TableBorders tableBorders)

Parameters

tableBorders

TableBorders

The table borders.

ChangeTableCellBackground(Color)

Changes the background of the selected table cells.

Declaration

cs-api-definition
void ChangeTableCellBackground(Color color)

Parameters

color

Color

The color.

ChangeTableCellBorders(Border)

Changes the borders of the selected table cells.

Declaration

cs-api-definition
void ChangeTableCellBorders(Border border)

Parameters

border

Border

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

ChangeTableCellBorders(TableCellBorders)

Changes the borders of the selected table cells.

Declaration

cs-api-definition
void ChangeTableCellBorders(TableCellBorders tableCellBorders)

Parameters

tableCellBorders

TableCellBorders

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

ChangeTableCellContentAlignment(RadTextAlignment, RadVerticalAlignment)

Changes the content alignment of the selected table cells.

Declaration

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

Parameters

textAlignment

RadTextAlignment

The text alignment.

verticalAlignment

RadVerticalAlignment

The vertical alignment.

ChangeTableCellHorizontalContentAlignment(RadTextAlignment)

Changes the horizontal content alignment of the selected table cells.

Declaration

cs-api-definition
void ChangeTableCellHorizontalContentAlignment(RadTextAlignment textAlignment)

Parameters

textAlignment

RadTextAlignment

The alignment.

ChangeTableCellPadding(Padding)

Changes the padding of the selected table cells.

Declaration

cs-api-definition
void ChangeTableCellPadding(Padding padding)

Parameters

padding

Padding

The padding.

ChangeTableCellSpacing(double)

Changes the cell spacing of the selected tables.

Declaration

cs-api-definition
void ChangeTableCellSpacing(double cellSpacing)

Parameters

cellSpacing

double

The cell spacing.

ChangeTableCellVerticalContentAlignment(RadVerticalAlignment)

Changes the vertical content alignment of the selected table cells.

Declaration

cs-api-definition
void ChangeTableCellVerticalContentAlignment(RadVerticalAlignment verticalAlignment)

Parameters

verticalAlignment

RadVerticalAlignment

The alignment.

ChangeTableDefaultCellPadding(Padding)

Changes the default cell padding of the selected tables.

Declaration

cs-api-definition
void ChangeTableDefaultCellPadding(Padding padding)

Parameters

padding

Padding

The padding which will be used as a default value.

ChangeTableFlowDirection(FlowDirection)

Changes the flow direction of the selected tables.

Declaration

cs-api-definition
void ChangeTableFlowDirection(FlowDirection flowDirection)

Parameters

flowDirection

FlowDirection

The flow direction.

ChangeTableGridColumnWidth(Table, int, TableWidthUnit)

Changes the width of a table column.

Declaration

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

ChangeTableHorizontalAlignment(RadHorizontalAlignment)

Changes the horizontal alignment of the selected tables.

Declaration

cs-api-definition
void ChangeTableHorizontalAlignment(RadHorizontalAlignment alignment)

Parameters

alignment

RadHorizontalAlignment

The alignment.

ChangeTableIndent(double)

Changes the indent of the selected tables.

Declaration

cs-api-definition
void ChangeTableIndent(double indent)

Parameters

indent

double

The indent.

ChangeTableLayoutMode(Table, TableLayoutMode)

Changes the layout mode of the selected tables.

Declaration

cs-api-definition
void ChangeTableLayoutMode(Table table, TableLayoutMode tableLayoutMode)

Parameters

table

Table

The table.

tableLayoutMode

TableLayoutMode

The table layout mode.

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
void ChangeTableLook(TableLook tableLook)

Parameters

tableLook

TableLook

The table look.

ChangeTablePreferredWidth(TableWidthUnit)

Changes the preferred width of the selected tables.

Declaration

cs-api-definition
void ChangeTablePreferredWidth(TableWidthUnit tableWidth)

Parameters

tableWidth

TableWidthUnit

Width of the table.

ChangeTableRowHeight(TableRow, double)

Changes the height of a table row.

Declaration

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

Parameters

tableRow

TableRow

The table row.

rowHeight

double

The height.

ChangeTableRowRepeatOnEveryPage(TableRow)

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

Declaration

cs-api-definition
void ChangeTableRowRepeatOnEveryPage(TableRow tableRow)

Parameters

tableRow

TableRow

The table row.

ChangeUnderlineColor(Color)

Changes the underline color of the selected content.

Declaration

cs-api-definition
void ChangeUnderlineColor(Color color)

Parameters

color

Color

The color.

ChangeUnderlineDecoration(IUnderlineUIDecorationProvider)

Changes the underline decoration of the selected content.

Declaration

cs-api-definition
void ChangeUnderlineDecoration(IUnderlineUIDecorationProvider decoration)

Parameters

decoration

IUnderlineUIDecorationProvider

The value.

ClearAllFormatting()

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

Declaration

cs-api-definition
void ClearAllFormatting()

ClearFormatting()

Clears the character formatting of the selected content.

Declaration

cs-api-definition
void ClearFormatting()

ClearTabStops()

Clears the tab stops inside the selected paragraphs.

Declaration

cs-api-definition
void 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
bool ContinueListNumbering()

Returns

bool

A boolean value indicating whether the operation completed successfully.

Copy()

Copies the currently selected document elements into the clipboard.

Declaration

cs-api-definition
void Copy()

CopyFormatting()

Copies the formatting of the current selection.

Declaration

cs-api-definition
bool CopyFormatting()

Returns

bool

A value indicating whether the copy was successful.

Cut()

Cuts the currently selected document elements into the clipboard.

Declaration

cs-api-definition
void Cut()

DecrementFontSize()

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

Declaration

cs-api-definition
void DecrementFontSize()

DecrementParagraphLeftIndent()

Decrements the left indent of the selected paragraphs.

Declaration

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

DeleteAllComments()

Deletes all comments in the document.

Declaration

cs-api-definition
void DeleteAllComments()

DeleteAnnotationRange(AnnotationRangeStart)

Deletes an annotation range.

Declaration

cs-api-definition
void DeleteAnnotationRange(AnnotationRangeStart rangeStart)

Parameters

rangeStart

AnnotationRangeStart

The start of the range that will be deleted.

DeleteBookmark(BookmarkRangeStart)

Deletes a bookmark.

Declaration

cs-api-definition
void DeleteBookmark(BookmarkRangeStart bookmarkRangeStart)

Parameters

bookmarkRangeStart

BookmarkRangeStart

The bookmark range start.

DeleteBookmark(string)

Deletes a bookmark.

Declaration

cs-api-definition
void DeleteBookmark(string bookmarkName)

Parameters

bookmarkName

string

Name of the bookmark.

DeleteCodeBlock(CodeAnnotationRangeStart)

Deletes a code block.

Declaration

cs-api-definition
void DeleteCodeBlock(CodeAnnotationRangeStart rangeStart)

Parameters

rangeStart

CodeAnnotationRangeStart

The CodeAnnotationRangeStart of the block to delete.

DeleteComment()

Deletes the current comment.

Declaration

cs-api-definition
void DeleteComment()

DeleteComment(CommentRangeStart)

Deletes a comment.

Declaration

cs-api-definition
void DeleteComment(CommentRangeStart commentRangeStart)

Parameters

commentRangeStart

CommentRangeStart

The comment range start.

Deletes the current hyperlink.

Declaration

cs-api-definition
void DeleteHyperlink()

Deletes a hyperlink.

Declaration

cs-api-definition
void DeleteHyperlink(HyperlinkRangeStart hyperlinkRangeStart)

Parameters

hyperlinkRangeStart

HyperlinkRangeStart

The hyperlink range start.

DeletePermissionRange(PermissionRangeStart)

Deletes a permission range.

Declaration

cs-api-definition
void DeletePermissionRange(PermissionRangeStart rangeStart)

Parameters

rangeStart

PermissionRangeStart

The permission range start.

DeleteReadOnlyRange()

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

Declaration

cs-api-definition
void DeleteReadOnlyRange()

DeleteReadOnlyRange(ReadOnlyRangeStart)

Deletes read only range.

Declaration

cs-api-definition
void DeleteReadOnlyRange(ReadOnlyRangeStart readOnlyRangeStart)

Parameters

readOnlyRangeStart

ReadOnlyRangeStart

The read only range that is to be deleted.

DeleteTable()

Deletes the table the current caret position is in.

Declaration

cs-api-definition
void DeleteTable()

DeleteTable(Table)

Deletes a table.

Declaration

cs-api-definition
void DeleteTable(Table table)

Parameters

table

Table

The Table to delete.

DeleteTableColumn()

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

Declaration

cs-api-definition
void DeleteTableColumn()

DeleteTableRow()

Deletes the table row under the caret position.

Declaration

cs-api-definition
void DeleteTableRow()

DeleteTableRow(TableRow)

Deletes a table row.

Declaration

cs-api-definition
void DeleteTableRow(TableRow row)

Parameters

row

TableRow

The TableRow to delete.

EditShapeTextBox(ShapeInline)

Initiates editing of a shape's text box element.

Declaration

cs-api-definition
void EditShapeTextBox(ShapeInline shape)

Parameters

shape

ShapeInline

The ShapeInline.

EndUndoGroup()

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

Declaration

cs-api-definition
void EndUndoGroup()

EndUndoGroup(string)

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

Declaration

cs-api-definition
void EndUndoGroup(string groupDisplayText)

Parameters

groupDisplayText

string

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

HasEditPermissions()

Return value that indicates if one can edit the document in the current position.

Declaration

cs-api-definition
bool HasEditPermissions()

Returns

bool

Return value that indicates if one can edit the document in the current position.

IncrementFontSize()

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

Declaration

cs-api-definition
void IncrementFontSize()

IncrementParagraphLeftIndent()

Increments the left indent of the selected paragraphs.

Declaration

cs-api-definition
void IncrementParagraphLeftIndent()

Insert(string)

Inserts text into the document at the current caret position.

Declaration

cs-api-definition
bool Insert(string text)

Parameters

text

string

The text to insert.

Returns

bool

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
void InsertAnnotationRange(AnnotationRangeStart rangeStart, AnnotationRangeEnd rangeEnd)

Parameters

rangeStart

AnnotationRangeStart

The annotation range start.

rangeEnd

AnnotationRangeEnd

The annotation range end.

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
void InsertBookmark(string bookmarkName)

Parameters

bookmarkName

string

Name of the bookmark.

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
void InsertCaption(CaptionDefinition definition, string caption, bool includeLabel, bool insertBelow)

Parameters

definition

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.

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

InsertColumnBreak()

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

Declaration

cs-api-definition
void 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
void InsertComment(Comment comment)

Parameters

comment

Comment

The comment.

InsertCrossReferenceToBookmark(string, ReferenceContentType, bool)

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

Declaration

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

InsertCrossReferenceToCaption(Paragraph, ReferenceContentType, bool)

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

Declaration

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

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

InsertEndnote()

Inserts endnote at the current position.

Declaration

cs-api-definition
void InsertEndnote()

InsertEndnote(Note)

Inserts the endnote at the current position.

Declaration

cs-api-definition
void InsertEndnote(Note endnote)

Parameters

endnote

Note

The endnote.

InsertField(Field)

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

Declaration

cs-api-definition
bool InsertField(Field field)

Parameters

field

Field

The field.

Returns

bool

True, if the operation completed successfully.

InsertField(Field, FieldDisplayMode)

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

Declaration

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

Parameters

field

Field

The field.

displayMode

FieldDisplayMode

The display mode.

Returns

bool

True, if the operation completed successfully.

InsertFootnote()

Inserts footnote at the current position.

Declaration

cs-api-definition
void InsertFootnote()

InsertFootnote(Note)

Inserts the footnote at the current position.

Declaration

cs-api-definition
void InsertFootnote(Note footnote)

Parameters

footnote

Note

The footnote.

InsertFragment(DocumentFragment)

Inserts a fragment at the current caret position.

Declaration

cs-api-definition
void InsertFragment(DocumentFragment documentFragment)

Parameters

documentFragment

DocumentFragment

The fragment to insert.

InsertFragment(DocumentFragment, DocumentPosition)

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

Declaration

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

Parameters

documentFragment

DocumentFragment

The fragment to insert.

documentPosition

DocumentPosition

The document position to insert the fragment at.

Inserts a hyperlink in the document.

Declaration

cs-api-definition
void InsertHyperlink(HyperlinkInfo hyperlinkInfo)

Parameters

hyperlinkInfo

HyperlinkInfo

The hyperlink info.

Inserts collection of inlines as hyperlink into the document.

Declaration

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

Parameters

hyperlinkInfo

HyperlinkInfo

The hyperlink info.

inlines

IEnumerable<Inline>

The inlines in the hyperlink.

InsertImage(Stream, string)

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

Declaration

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

Parameters

imageStream

Stream

The stream to the image's contents.

extension

string

The extension specifying the image format.

InsertInline(Inline)

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

Declaration

cs-api-definition
void InsertInline(Inline inline)

Parameters

inline

Inline

The inline element to insert.

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
void InsertInline(Inline inline, DocumentPosition documentPosition)

Parameters

inline

Inline

The inline element to insert.

documentPosition

DocumentPosition

The document position to insert the inline at.

InsertLine(string)

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

Declaration

cs-api-definition
void InsertLine(string text)

Parameters

text

string

The text.

InsertLineBreak()

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

Declaration

cs-api-definition
void InsertLineBreak()

InsertPageBreak()

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

Declaration

cs-api-definition
void InsertPageBreak()

InsertParagraph()

Inserts a new paragraph at the current caret position.

Declaration

cs-api-definition
void 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
void InsertPermissionRange(IEnumerable<PermissionRangeInfo> permissionInfos)

Parameters

permissionInfos

IEnumerable<PermissionRangeInfo>

The permissions for the new range.

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
void InsertReadOnlyRange()

InsertSectionBreak()

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

Declaration

cs-api-definition
void InsertSectionBreak()

InsertSectionBreak(SectionBreakType)

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

Declaration

cs-api-definition
void InsertSectionBreak(SectionBreakType type)

Parameters

type

SectionBreakType

The type of the section break.

InsertShape(ShapeType, Size)

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

Declaration

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

Parameters

shapeType

ShapeType

The type of shape.

size

Size

Shape's initial size.

InsertTable(Table)

Inserts a table in the document.

Declaration

cs-api-definition
void InsertTable(Table table)

Parameters

table

Table

The table.

InsertTable(int, int)

Inserts a new table in the document.

Declaration

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

InsertTableColumn()

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

Declaration

cs-api-definition
void InsertTableColumn()

InsertTableColumnToTheLeft()

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

Declaration

cs-api-definition
void InsertTableColumnToTheLeft()

InsertTableColumnToTheRight()

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

Declaration

cs-api-definition
void InsertTableColumnToTheRight()

InsertTableRow()

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

Declaration

cs-api-definition
void InsertTableRow()

InsertTableRowAbove()

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

Declaration

cs-api-definition
void InsertTableRowAbove()

InsertTableRowBelow()

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

Declaration

cs-api-definition
void InsertTableRowBelow()

InsertTextBox()

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

Declaration

cs-api-definition
void InsertTextBox()

MailMerge(bool)

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

Declaration

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

MailMergeCurrentRecord()

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

Declaration

cs-api-definition
RadDocument MailMergeCurrentRecord()

Returns

RadDocument

The document.

MergeTableCells()

Merges the currently selected table cells into one.

Declaration

cs-api-definition
void MergeTableCells()

MoveSelection(DocumentPosition, bool)

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

Declaration

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

Parameters

position

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.

Paste()

Pastes the content of the clipboard into the document.

Declaration

cs-api-definition
void Paste()

Paste(PasteOption)

Pastes the content of the clipboard into the document.

Declaration

cs-api-definition
void Paste(PasteOption pasteOptions)

Parameters

pasteOptions

PasteOption

PasteFormatting()

Pastes the currently copied formatting on the current selection.

Declaration

cs-api-definition
bool PasteFormatting()

Returns

bool

A value indicating whether the paste was successful.

PreviewFirstMailMergeDataRecord()

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

Declaration

cs-api-definition
bool PreviewFirstMailMergeDataRecord()

Returns

bool

True, if the operation completed successfully.

PreviewLastMailMergeDataRecord()

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

Declaration

cs-api-definition
bool PreviewLastMailMergeDataRecord()

Returns

bool

True, if the operation completed successfully.

PreviewMailMergeDataRecordAtIndex(int)

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

Declaration

cs-api-definition
bool PreviewMailMergeDataRecordAtIndex(int index)

Parameters

index

int

The index of the record to be shown.

Returns

bool

True, if the operation completed successfully.

PreviewNextMailMergeDataRecord()

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

Declaration

cs-api-definition
bool PreviewNextMailMergeDataRecord()

Returns

bool

True, if the operation completed successfully.

PreviewPreviousMailMergeDataRecord()

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

Declaration

cs-api-definition
bool PreviewPreviousMailMergeDataRecord()

Returns

bool

True, if the operation completed successfully.

Redo()

Re-executes the last undone command group.

Declaration

cs-api-definition
void Redo()

RejectAllRevisions()

Rejects all revisions in the document.

Declaration

cs-api-definition
void RejectAllRevisions()

RejectRevision(Revision)

Rejects a revision.

Declaration

cs-api-definition
void RejectRevision(Revision revision)

Parameters

revision

Revision

The revision.

RemoveTabStop(TabStop)

Removes a tab stop from the selected paragraphs.

Declaration

cs-api-definition
void RemoveTabStop(TabStop tabStop)

Parameters

tabStop

TabStop

The tab stop.

RemoveTabStopRange(IEnumerable<TabStop>)

Removes a collection of tab stops in the selected paragraphs.

Declaration

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

Parameters

tabStops

IEnumerable<TabStop>

The tab stops.

ReplaceTabStop(TabStop, TabStop)

Replaces a tab stop inside the selected paragraphs.

Declaration

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

Parameters

oldTabStop

TabStop

The old tab stop.

newTabStop

TabStop

The new tab stop.

ResizeTableColumn(Table, int, double)

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

Declaration

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

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
bool RestartListNumbering()

Returns

bool

A boolean value determining whether the operation completed successfully.

SetListNumbering(int)

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

Declaration

cs-api-definition
bool SetListNumbering(int numbersToSkip)

Parameters

numbersToSkip

int

The numbers to skip.

Returns

bool

A boolean value indicating whether the operation completed successfully.

SetWatermark(DocumentWatermarkSettings)

Sets a watermark to the selected sections.

Declaration

cs-api-definition
void SetWatermark(DocumentWatermarkSettings watermarkSettings)

Parameters

watermarkSettings

DocumentWatermarkSettings

The watermark settings describing the watermark that will be applied.

SetWatermark(PredefinedWatermarkType)

Sets a predefined watermark to the selected sections.

Declaration

cs-api-definition
void SetWatermark(PredefinedWatermarkType predefinedType)

Parameters

predefinedType

PredefinedWatermarkType

Type of the predefined watermark.

SplitAnnotationRange(AnnotationRangeStart)

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

Declaration

cs-api-definition
void SplitAnnotationRange(AnnotationRangeStart rangeStart)

Parameters

rangeStart

AnnotationRangeStart

The annotation range start to be split.

SplitAnnotationRange(AnnotationRangeStart, DocumentPosition)

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

Declaration

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

SuppressLineNumberingForCurrentParagraph(IEnumerable<Paragraph>)

Suppress the line numbering for selected paragraphs.

Declaration

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

Parameters

paragraphs

IEnumerable<Paragraph>

The paragraphs.

ToggleBold()

Toggles the font weight of the selected content.

Declaration

cs-api-definition
void ToggleBold()

ToggleFieldCodes(FieldRangeStart)

Toggles the display mode of a field.

Declaration

cs-api-definition
void ToggleFieldCodes(FieldRangeStart fieldStart)

Parameters

fieldStart

FieldRangeStart

The field start.

ToggleItalic()

Toggles the font style of the selected content between and .

Declaration

cs-api-definition
void ToggleItalic()

ToggleStrikethrough()

Toggles the strike-through of the selected content.

Declaration

cs-api-definition
void ToggleStrikethrough()

Undo()

Reverts the last executed command group.

Declaration

cs-api-definition
void Undo()

UnmergeTableCells()

Splits the currently selected table cell.

Declaration

cs-api-definition
void UnmergeTableCells()

UpdateAllCaptions(CaptionDefinition)

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

Declaration

cs-api-definition
void UpdateAllCaptions(CaptionDefinition captionDefinition)

Parameters

captionDefinition

CaptionDefinition

The caption definition.

UpdateAllFields()

Updates all fields in the document.

Declaration

cs-api-definition
void UpdateAllFields()

UpdateAllFields(FieldDisplayMode)

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

Declaration

cs-api-definition
void UpdateAllFields(FieldDisplayMode displayMode)

Parameters

displayMode

FieldDisplayMode

The display mode which will be used for the fields.

UpdateField(FieldRangeStart)

Updates a field.

Declaration

cs-api-definition
void UpdateField(FieldRangeStart fieldStart)

Parameters

fieldStart

FieldRangeStart

The field start.

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

Updates the permissions inside the current selection.

Declaration

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

Parameters

permissionsToAdd

IEnumerable<PermissionRangeInfo>

Permissions to add.

permissionsToRemove

IEnumerable<PermissionRangeInfo>

Permissions to remove.

In this article
DefinitionPropertiesDocumentMethodsAcceptAllRevisions()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)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()ClearTabStops()ContinueListNumbering()Copy()CopyFormatting()Cut()DecrementFontSize()DecrementParagraphLeftIndent()Delete(bool)DeleteAllComments()DeleteAnnotationRange(AnnotationRangeStart)DeleteBookmark(BookmarkRangeStart)DeleteBookmark(string)DeleteCodeBlock(CodeAnnotationRangeStart)DeleteComment()DeleteComment(CommentRangeStart)DeleteHyperlink()DeleteHyperlink(HyperlinkRangeStart)DeletePermissionRange(PermissionRangeStart)DeleteReadOnlyRange()DeleteReadOnlyRange(ReadOnlyRangeStart)DeleteTable()DeleteTable(Table)DeleteTableColumn()DeleteTableRow()DeleteTableRow(TableRow)EditShapeTextBox(ShapeInline)EndUndoGroup()EndUndoGroup(string)HasEditPermissions()IncrementFontSize()IncrementParagraphLeftIndent()Insert(string)InsertAnnotationRange(AnnotationRangeStart, AnnotationRangeEnd)InsertBookmark(string)InsertCaption(CaptionDefinition, string, bool, bool)InsertCodeBlock(string, CodeFormattingSettings)InsertColumnBreak()InsertComment(Comment)InsertCrossReferenceToBookmark(string, ReferenceContentType, bool)InsertCrossReferenceToCaption(Paragraph, ReferenceContentType, bool)InsertCrossReferenceToHeading(Paragraph, ReferenceContentType, bool)InsertEndnote()InsertEndnote(Note)InsertField(Field)InsertField(Field, FieldDisplayMode)InsertFootnote()InsertFootnote(Note)InsertFragment(DocumentFragment)InsertFragment(DocumentFragment, DocumentPosition)InsertHyperlink(HyperlinkInfo)InsertHyperlink(HyperlinkInfo, IEnumerable<Inline>)InsertImage(Stream, string)InsertInline(Inline)InsertInline(Inline, DocumentPosition)InsertLine(string)InsertLineBreak()InsertPageBreak()InsertParagraph()InsertPermissionRange(IEnumerable<PermissionRangeInfo>)InsertReadOnlyRange()InsertSectionBreak()InsertSectionBreak(SectionBreakType)InsertShape(ShapeType, Size)InsertTable(Table)InsertTable(int, int)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