Share via


FontsMauiAppBuilderExtensions.ConfigureFonts Method

Definition

Overloads

ConfigureFonts(MauiAppBuilder)

Configures the MauiAppBuilder with fonts.

ConfigureFonts(MauiAppBuilder, Action<IFontCollection>)

Configures the MauiAppBuilder with a specified delegate configureDelegate to register fonts in the application.

ConfigureFonts(MauiAppBuilder)

Source:
FontsMauiAppBuilderExtensions.cs
Source:
FontsMauiAppBuilderExtensions.cs

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>)

Source:
FontsMauiAppBuilderExtensions.cs
Source:
FontsMauiAppBuilderExtensions.cs

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.

Applies to