Class Utils
Inheritance
System.Object
Utils
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.Windows.Edit
Assembly: Syncfusion.Edit.Wpf.dll
Syntax
public static class Utils
Methods
GetFormattedText(String, FontFamily, Double, Brush)
Declaration
public static FormattedText GetFormattedText(string text, FontFamily fontFamily, double fontSize, Brush foreground)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | |
System.Windows.Media.FontFamily | fontFamily | |
System.Double | fontSize | |
System.Windows.Media.Brush | foreground |
Returns
Type | Description |
---|---|
System.Windows.Media.FormattedText | Returns the formatted text. |
GetFormattedTextDecoration(String, FontFamily, Double, Brush, ISnippetFormat)
Declaration
public static FormattedText GetFormattedTextDecoration(string text, FontFamily fontFamily, double fontSize, Brush foreground, ISnippetFormat format)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | |
System.Windows.Media.FontFamily | fontFamily | |
System.Double | fontSize | |
System.Windows.Media.Brush | foreground | |
ISnippetFormat | format |
Returns
Type | Description |
---|---|
System.Windows.Media.FormattedText | Returns the formatted and decorated text |
GetHeight(String, FontFamily, Double, Brush)
Declaration
public static double GetHeight(string text, FontFamily fontFamily, double fontSize, Brush foreground)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | |
System.Windows.Media.FontFamily | fontFamily | |
System.Double | fontSize | |
System.Windows.Media.Brush | foreground |
Returns
Type | Description |
---|---|
System.Double | Returns the formatted text width. |
GetWidth(String, FontFamily, Double, Brush)
Declaration
public static double GetWidth(string text, FontFamily fontFamily, double fontSize, Brush foreground)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | |
System.Windows.Media.FontFamily | fontFamily | |
System.Double | fontSize | |
System.Windows.Media.Brush | foreground |
Returns
Type | Description |
---|---|
System.Double | Returns the formatted text width. |