[]
        
(Showing Draft Content)

C1.Win.C1Editor.C1TextRange.RemoveClass

RemoveClass Method

RemoveClass(string)

Removes specified CSS class from the range.

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

Class to remove.

Examples

This example, if the value is True, marks the selected text as topic, using a "topic" CSS class, or, if the value is False, removes the "topic" class from the selected text.

function SetTopic(bool value)
{
if (value)
_editor.Selection.ApplyClass("topic");
else
_editor.Selection.RemoveClass("topic");
}