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。