[]
        
(Showing Draft Content)

C1.Win.C1Editor.C1TextRange.ApplyClass

ApplyClass Method

ApplyClass(string)

Applies specified CSS class to the text range.

Declaration
public void ApplyClass(string className)
Parameters
Type Name Description
string className

The name of a CSS class to apply to the current text range.

ApplyClass(string, C1StyleType)

Applies specified CSS class to the text range.

Declaration
public void ApplyClass(string className, C1StyleType type)
Parameters
Type Name Description
string className

The name of a CSS class to apply to the current text range.

C1StyleType type

Defines type of content to which the inline style must be applied.

Examples

This code applies a "main_topic" class to the paragraph.

range.ApplyClass("main_topic", C1StyleType.Paragraph);