FontsMauiAppBuilderExtensions.ConfigureFonts 方法

定义

重载

ConfigureFonts(MauiAppBuilder)

配置 MauiAppBuilder 字体。

ConfigureFonts(MauiAppBuilder, Action<IFontCollection>)

使用 MauiAppBuilder 指定的委托 configureDelegate 配置以在应用程序中注册字体。

ConfigureFonts(MauiAppBuilder)

Source:
FontsMauiAppBuilderExtensions.cs
Source:
FontsMauiAppBuilderExtensions.cs

配置 MauiAppBuilder 字体。

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

参数

builder
MauiAppBuilder

要配置的 MauiAppBuilder

返回

已配置的 MauiAppBuilder

适用于

ConfigureFonts(MauiAppBuilder, Action<IFontCollection>)

Source:
FontsMauiAppBuilderExtensions.cs
Source:
FontsMauiAppBuilderExtensions.cs

使用 MauiAppBuilder 指定的委托 configureDelegate 配置以在应用程序中注册字体。

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

参数

builder
MauiAppBuilder

要配置的 MauiAppBuilder

configureDelegate
Action<IFontCollection>

可在提供的 IFontCollection字体中注册字体的配置委托。

返回

已配置的 MauiAppBuilder

适用于