[]
Returns a value indicating whether the specified tag is applied to the C1TextRange.
public bool IsTagApplied(string tagName)
Type | Name | Description |
---|---|---|
string | tagName | The tag name. |
Type | Description |
---|---|
bool | True, if the specified tag is applied to the current range; otherwise, False. |
The code updates an application UI. It marks an "Ordered list" button as checked if an ordered list is selected. It marks an "Unordered list" button as checked if an unordered list is selected.
btnOrderedList.Checked = _editor.Selection.IsTagApplied("ol");
btnUnorderedList.Checked = _editor.Selection.IsTagApplied("ul");