The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

SubDocument.EndUpdateCharacters(CharacterProperties) Method

Finalizes the modification of character formatting after calling the SubDocument.BeginUpdateCharacters method.

Namespace: DevExpress.XtraRichEdit.API.Native

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

Declaration

void EndUpdateCharacters(
    CharacterProperties properties
)
Sub EndUpdateCharacters(
    properties As CharacterProperties
)
void EndUpdateCharacters(
    CharacterProperties properties
)
Sub EndUpdateCharacters(
    properties As CharacterProperties
)
void EndUpdateCharacters(
    CharacterProperties properties
)
Sub EndUpdateCharacters(
    properties As CharacterProperties
)

Parameters

Name Type Description
properties CharacterProperties

A CharacterProperties object containing character properties.

Parameters

Name Type Description
properties CharacterProperties

A CharacterProperties object containing character properties.

Parameters

Name Type Description
properties CharacterProperties

A CharacterProperties object containing character properties.

Remarks

Document document = server.Document;
document.BeginUpdate();
document.AppendText("Normal\nFormatted\nNormal");
document.EndUpdate();
DocumentRange range = document.Paragraphs[1].Range;
CharacterProperties cp = document.BeginUpdateCharacters(range);
cp.FontName = "Comic Sans MS";
cp.FontSize = 18;
cp.ForeColor = Color.Blue;
cp.BackColor = Color.Snow;
cp.Underline = UnderlineType.DoubleWave;
cp.UnderlineColor = Color.Red;
document.EndUpdateCharacters(cp);
See Also