.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
A newer version of this page is available. Switch to the current version.

CharacterStyleCollection.Add(CharacterStyle) Method

Add a style to the collection of styles in the current document.

Namespace: DevExpress.XtraRichEdit.API.Native

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


void Add(
    CharacterStyle style


Name Type Description
style CharacterStyle

A CharacterStyle class instance representing a character style.


A collection of styles in the document can be accessed via the Document.CharacterStyles property. To create a new style, use the CharacterStyleCollection.CreateNew method.

See Also