C1.Win.C1Editor.4 Assembly > C1.Win.C1Editor Namespace > C1TextRange Class : RemoveStyle Method |
'Declaration Public Sub RemoveStyle( _ ByVal propertyName As System.String, _ ByVal propertyValue As System.String _ )
public void RemoveStyle( System.string propertyName, System.string propertyValue )
function SetColor(Color value) { if (value.IsEmpty) _editor.Selection.RemoveStyle("color", null); else { string foreColor = System.Drawing.ColorTranslator.ToHtml(value); _editor.Selection.ApplyStyle("color", foreColor, C1StyleType.Character); } }