menu

WPF

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

    Show / Hide Table of Contents

    Class FontCollection

    Collection of System.Windows.Media.FontFamily objects.

    Inheritance
    System.Object
    FontCollection
    Namespace: Syncfusion.Windows.Tools.Controls
    Assembly: Syncfusion.Tools.Wpf.dll
    Syntax
    public class FontCollection : ObservableCollection<FontFamily>

    Constructors

    FontCollection()

    Declaration
    public FontCollection()

    Methods

    ContainsName(FontFamily)

    Indicates whether the collection contains a specific System.Windows.Media.FontFamily entry.

    Declaration
    public bool ContainsName(FontFamily fontFamily)
    Parameters
    Type Name Description
    System.Windows.Media.FontFamily fontFamily

    The System.Windows.Media.FontFamily entry to locate in the collection.

    Returns
    Type Description
    System.Boolean

    True if contains, otherwise false.

    InsertItem(Int32, FontFamily)

    Inserts an System.Windows.Media.FontFamily element into the collection at the specified index.

    Declaration
    protected override void InsertItem(int index, FontFamily item)
    Parameters
    Type Name Description
    System.Int32 index

    The zero-based index at which element should be inserted.

    System.Windows.Media.FontFamily item

    The System.Windows.Media.FontFamily element to insert.

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