C1.Win.C1Editor.4 Assembly > C1.Win.C1Editor Namespace > C1TextRange Class > GetStyleValue Method : GetStyleValue(String) Method |
'Declaration Public Overloads Function GetStyleValue( _ ByVal propertyName As System.String _ ) As System.String
public System.string GetStyleValue( System.string propertyName )
string GetSelectionFontSize() { if (_editor.Mode == EditorMode.Design) { string size = _editor.Selection.GetStyleValue("font-size") ?? string.Empty; return size.EndsWith("pt") ? size.Substring(0, size.Length - 2) : size; } else return string.Empty; }