共用方式為


FontsMauiAppBuilderExtensions.ConfigureFonts 方法

定義

多載

ConfigureFonts(MauiAppBuilder)

使用 MauiAppBuilder 字型設定 。

ConfigureFonts(MauiAppBuilder, Action<IFontCollection>)

使用 MauiAppBuilder 指定的委派 configureDelegate 來設定 ,以在應用程式中註冊字型。

ConfigureFonts(MauiAppBuilder)

來源:
FontsMauiAppBuilderExtensions.cs
來源:
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>)

來源:
FontsMauiAppBuilderExtensions.cs
來源:
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的 。

適用於