Returns a value indicating whether the specified tag is applied to the
C1TextRange.
'Declaration
Public Function IsTagApplied( _
ByVal As System.String _
) As System.Boolean
public System.bool IsTagApplied(
System.string
)
Parameters
- tagName
- The tag name.
Return Value
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");