[]
        
(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)
Public Sub ApplyClass(className As String)
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)
Public Sub ApplyClass(className As String, type As C1StyleType)
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);