[]
Applies specified CSS class to the text range.
public void ApplyClass(string className)
Type | Name | Description |
---|---|---|
string | className | The name of a CSS class to apply to the current text range. |
Applies specified CSS class to the text range.
public void ApplyClass(string className, C1StyleType type)
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. |
This code applies a "main_topic" class to the paragraph.
range.ApplyClass("main_topic", C1StyleType.Paragraph);