FontsMauiAppBuilderExtensions.ConfigureFonts Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ConfigureFonts(MauiAppBuilder) |
Configures the MauiAppBuilder with fonts. |
ConfigureFonts(MauiAppBuilder, Action<IFontCollection>) |
Configures the MauiAppBuilder with a specified delegate |
ConfigureFonts(MauiAppBuilder)
Configures the MauiAppBuilder with fonts.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Maui::Hosting::MauiAppBuilder ^ ConfigureFonts(Microsoft::Maui::Hosting::MauiAppBuilder ^ builder);
public static Microsoft.Maui.Hosting.MauiAppBuilder ConfigureFonts (this Microsoft.Maui.Hosting.MauiAppBuilder builder);
static member ConfigureFonts : Microsoft.Maui.Hosting.MauiAppBuilder -> Microsoft.Maui.Hosting.MauiAppBuilder
<Extension()>
Public Function ConfigureFonts (builder As MauiAppBuilder) As MauiAppBuilder
Parameters
- builder
- MauiAppBuilder
The MauiAppBuilder to configure.
Returns
The configured MauiAppBuilder.
Applies to
ConfigureFonts(MauiAppBuilder, Action<IFontCollection>)
Configures the MauiAppBuilder with a specified delegate configureDelegate
to register fonts in the application.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Maui::Hosting::MauiAppBuilder ^ ConfigureFonts(Microsoft::Maui::Hosting::MauiAppBuilder ^ builder, Action<Microsoft::Maui::Hosting::IFontCollection ^> ^ configureDelegate);
public static Microsoft.Maui.Hosting.MauiAppBuilder ConfigureFonts (this Microsoft.Maui.Hosting.MauiAppBuilder builder, Action<Microsoft.Maui.Hosting.IFontCollection>? configureDelegate);
static member ConfigureFonts : Microsoft.Maui.Hosting.MauiAppBuilder * Action<Microsoft.Maui.Hosting.IFontCollection> -> Microsoft.Maui.Hosting.MauiAppBuilder
<Extension()>
Public Function ConfigureFonts (builder As MauiAppBuilder, configureDelegate As Action(Of IFontCollection)) As MauiAppBuilder
Parameters
- builder
- MauiAppBuilder
The MauiAppBuilder to configure.
- configureDelegate
- Action<IFontCollection>
A configuration delegate that can register fonts in the provided IFontCollection.
Returns
The configured MauiAppBuilder.