Editor for WinForms | ComponentOne
C1.Win.C1Editor.4.8 Assembly / C1.Win.C1Editor Namespace / C1TextRange Class / ApplyTag Method
XHTML tag to apply to the current text range.
Example

In This Topic
    ApplyTag Method
    In This Topic
    Applies specified tag to the text range.
    Syntax
    'Declaration
     
    Public Sub ApplyTag( _
       ByVal tagName As System.String _
    ) 
    public void ApplyTag( 
       System.string tagName
    )

    Parameters

    tagName
    XHTML tag to apply to the current text range.
    Example
    This sample applies the "strong", or bold, style to the selected text.
    C1TextRange range = c1Editor1.Selection;
    range.ApplyTag("strong");
    See Also