FontsMauiAppBuilderExtensions.ConfigureFonts 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
ConfigureFonts(MauiAppBuilder) |
使用 MauiAppBuilder 字型設定 。 |
ConfigureFonts(MauiAppBuilder, Action<IFontCollection>) |
使用 MauiAppBuilder 指定的委派 |
ConfigureFonts(MauiAppBuilder)
使用 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>)
使用 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的 。