C1.Win.C1Editor.4 Assembly > C1.Win.C1Editor Namespace > C1TextRange Class : IsClassApplied Method |
'Declaration Public Function IsClassApplied( _ ByVal className As System.String _ ) As System.Boolean
public System.bool IsClassApplied( System.string className )
function UpdateUI() { if (_editor.Mode == EditorMode.Design) { _button1.Enabled = _editor.Selection.IsClassApplied("topic"); _button2.Enabled = _editor.Selection.IsClassApplied("book"); } }