menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class Utils - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    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, Int32)

    Declaration
    public static FormattedText GetFormattedText(string text, FontFamily fontFamily, double fontSize, Brush foreground, int tabspaces)
    Parameters
    Type Name Description
    System.String text
    System.Windows.Media.FontFamily fontFamily
    System.Double fontSize
    System.Windows.Media.Brush foreground
    System.Int32 tabspaces
    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, Int32)

    Declaration
    public static double GetHeight(string text, FontFamily fontFamily, double fontSize, Brush foreground, int tabspaces)
    Parameters
    Type Name Description
    System.String text
    System.Windows.Media.FontFamily fontFamily
    System.Double fontSize
    System.Windows.Media.Brush foreground
    System.Int32 tabspaces
    Returns
    Type Description
    System.Double

    Returns the formatted text width.

    GetWidth(String, FontFamily, Double, Brush, Int32)

    Declaration
    public static double GetWidth(string text, FontFamily fontFamily, double fontSize, Brush foreground, int tabspaces)
    Parameters
    Type Name Description
    System.String text
    System.Windows.Media.FontFamily fontFamily
    System.Double fontSize
    System.Windows.Media.Brush foreground
    System.Int32 tabspaces
    Returns
    Type Description
    System.Double

    Returns the formatted text width.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved