FileSystemEmbeddedFontLoader.LoadFont(EmbeddedFont) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
從內嵌資源載入字型。
public:
virtual System::String ^ LoadFont(Microsoft::Maui::EmbeddedFont ^ font);
public string? LoadFont (Microsoft.Maui.EmbeddedFont font);
abstract member LoadFont : Microsoft.Maui.EmbeddedFont -> string
override this.LoadFont : Microsoft.Maui.EmbeddedFont -> string
Public Function LoadFont (font As EmbeddedFont) As String
參數
- font
- EmbeddedFont
EmbeddedFont物件,包含要載入之字型的資訊。
傳回
如果字型已正確載入,則為字型名稱,否則 null 為 。