共用方式為


IEmbeddedFontLoader.LoadFont(EmbeddedFont) 方法

定義

從內嵌資源載入字型。

public:
 System::String ^ LoadFont(Microsoft::Maui::EmbeddedFont ^ font);
public string? LoadFont (Microsoft.Maui.EmbeddedFont font);
abstract member LoadFont : Microsoft.Maui.EmbeddedFont -> string
Public Function LoadFont (font As EmbeddedFont) As String

參數

font
EmbeddedFont

EmbeddedFont物件,包含要載入之字型的資訊。

傳回

如果字型已正確載入,則為字型名稱,否則 null 為 。

適用於