Back to Devexpress

ParagraphPropertiesBase.Assign(ParagraphPropertiesBase) Method

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-paragraphpropertiesbase-dot-assign-x28-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-paragraphpropertiesbase-x29.md

latest3.8 KB
Original Source

ParagraphPropertiesBase.Assign(ParagraphPropertiesBase) Method

Copies all settings from the object passed as the parameter to the current object.

Namespace : DevExpress.XtraRichEdit.API.Native

Assembly : DevExpress.RichEdit.v25.2.Core.dll

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
void Assign(
    ParagraphPropertiesBase source
)
vb
Sub Assign(
    source As ParagraphPropertiesBase
)

Parameters

NameTypeDescription
sourceParagraphPropertiesBase

A ParagraphPropertiesBase object whose settings are assigned to the current object.

|

Remarks

The Assign method copies settings of the specified ParagraphPropertiesBase object to the current ParagraphPropertiesBase object.

Note

The Assign method copies only properties defined in the ParagraphPropertiesBase interface. Other properties of classes which implement the ParagraphPropertiesBase interface are not copied.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Assign(ParagraphPropertiesBase) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-rich-edit-implement-ms-office-word-format-painter/CS/DXApplication9/Form1.cs#L117

csharp
DevExpress.XtraRichEdit.API.Native.ParagraphProperties sourceParagraphProperties = subDocument.BeginUpdateParagraphs(sourceSelectedRange);
targetParagraphProperties.Assign(sourceParagraphProperties);
subDocument.EndUpdateParagraphs(sourceParagraphProperties);

winforms-rich-edit-implement-ms-office-word-format-painter/VB/DXApplication9/Form1.vb#L106

vb
Dim sourceParagraphProperties As DevExpress.XtraRichEdit.API.Native.ParagraphProperties = subDocument.BeginUpdateParagraphs(sourceSelectedRange)
targetParagraphProperties.Assign(sourceParagraphProperties)
subDocument.EndUpdateParagraphs(sourceParagraphProperties)

See Also

ParagraphPropertiesBase Interface

ParagraphPropertiesBase Members

DevExpress.XtraRichEdit.API.Native Namespace