Udostępnij przez


FontManager(IFontRegistrar, IServiceProvider) Konstruktor

Definicja

Tworzy nowe wystąpienie klasy EmbeddedFontLoader.

public FontManager (Microsoft.Maui.IFontRegistrar fontRegistrar, IServiceProvider? serviceProvider = default);
new Microsoft.Maui.FontManager : Microsoft.Maui.IFontRegistrar * IServiceProvider -> Microsoft.Maui.FontManager
Public Sub New (fontRegistrar As IFontRegistrar, Optional serviceProvider As IServiceProvider = Nothing)

Parametry

fontRegistrar
IFontRegistrar

Wystąpienie do pobierania IFontRegistrar szczegółów z informacji o zarejestrowanych czcionkach.

serviceProvider
IServiceProvider

Aplikacje IServiceProvider. Zazwyczaj jest to dostarczane za pośrednictwem wstrzykiwania zależności.

Dotyczy