C1.Win.C1Editor.4 Assembly > C1.Win.C1Editor Namespace > C1TextRange Class : IsStyleApplied Method |
'Declaration Public Function IsStyleApplied( _ ByVal propertyName As System.String _ ) As System.Boolean
public System.bool IsStyleApplied( System.string propertyName )
function IsUnderline() { if (_editor.Mode == EditorMode.Design) { bool res = false; if (_editor.Selection.IsStyleApplied("text-decoration")) res = string.Compare(_editor.Selection.GetStyleValue("text-decoration", C1StyleType.Character), "underline", true) == 0; return res; } else return false; }