Editor for WinForms | ComponentOne
C1.Win.C1Editor.4.5.2 Assembly / C1.Win.C1Editor Namespace / C1TextRange Class / RemoveTag Method
Tag to remove from the C1TextRange.
Example

In This Topic
    RemoveTag Method
    In This Topic
    Removes specified tag from the C1TextRange.
    Syntax
    'Declaration
     
    Public Sub RemoveTag( _
       ByVal tagName As System.String _
    ) 
    public void RemoveTag( 
       System.string tagName
    )

    Parameters

    tagName
    Tag to remove from the C1TextRange.
    Example
    This example makes the selected text bold, if the value is True, or regular, if the value is False.
    function SetStrong(bool value)
    {
      if (value)
               _editor.Selection.ApplyTag("strong");
      else
               _editor.Selection.RemoveTag("strong");
    }
    See Also