Share via


ExportFontAttribute Class

Definition

Registers a font file for use in the application.

public ref class ExportFontAttribute : Attribute
[Microsoft.Maui.Controls.Internals.Preserve(AllMembers=true)]
[System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=true)]
public class ExportFontAttribute : Attribute
[<Microsoft.Maui.Controls.Internals.Preserve(AllMembers=true)>]
[<System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=true)>]
type ExportFontAttribute = class
    inherit Attribute
Public Class ExportFontAttribute
Inherits Attribute
Inheritance
ExportFontAttribute
Attributes

Constructors

Name Description
ExportFontAttribute(String)

Creates a new ExportFontAttribute for the specified font file.

Properties

Name Description
Alias

Gets or sets an optional alias used to reference the font.

FontFileName

Gets the font file name.

Applies to