menu

WPF

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

    Show / Hide Table of Contents

    Class EditFormats

    Inheritance
    System.Object
    EditFormats
    Implements
    IFormat
    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 class EditFormats : IFormat
    Remarks

    Edit Format has formatname, font, fontsize and foreground properties.

    Examples
    // Initializing editformats
    EditFormats EditFormats1 = new EditFormats();
    EditFormats1.FormatName = "KeywordFormat";
    EditFormats1.Font = "Arial";
    EditFormats1.FontSize = 12;

    Constructors

    EditFormats()

    Declaration
    public EditFormats()

    Properties

    FontFamily

    Gets or sets the FontFamily to be applied when this instance of Format is applied.

    Declaration
    public FontFamily FontFamily { get; set; }
    Property Value
    Type
    System.Windows.Media.FontFamily
    Remarks

    Specifies the Font name of the Lexem

    FontSize

    Gets or sets the FontSize to be applied when this instance of Format is applied

    Declaration
    public double FontSize { get; set; }
    Property Value
    Type Description
    System.Double

    Type: System.Double

    Remarks

    Specifies the Font Size of the Lexem

    Foreground

    Gets or sets the Foreground to be applied when this instance of Format is applied

    Declaration
    public Brush Foreground { get; set; }
    Property Value
    Type
    System.Windows.Media.Brush
    Remarks

    Specifies the Foreground color of the Lexem

    FormatName

    Gets or sets name of the Format object. Name property is used to identify the text style in the Language class

    Declaration
    public string FormatName { get; set; }
    Property Value
    Type Description
    System.String

    Type: System.String

    Remarks

    Specifies the FormatName of the Lexem.

    Implements

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