[]
        
(Showing Draft Content)

C1.Win.C1Editor.C1TextRange.ApplyTag

ApplyTag Method

ApplyTag(string)

Applies specified tag to the text range.

Declaration
public void ApplyTag(string tagName)
Parameters
Type Name Description
string tagName

XHTML tag to apply to the current text range.

Examples

This sample applies the "strong", or bold, style to the selected text.

C1TextRange range = c1Editor1.Selection;
range.ApplyTag("strong");