Editor for WinForms | ComponentOne
C1.Win.C1Editor.4.8 Assembly / C1.Win.C1Editor Namespace / C1TextRange Class / RemoveClass Method
Class to remove.
Example

In This Topic
    RemoveClass Method
    In This Topic
    Removes specified CSS class from the range.
    Syntax
    'Declaration
     
    Public Sub RemoveClass( _
       ByVal className As System.String _
    ) 
    public void RemoveClass( 
       System.string className
    )

    Parameters

    className
    Class to remove.
    Example
    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");
    }
    See Also