WindowTabIcon.CreateFromFontGlyph 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
CreateFromFontGlyph(String, String) |
從提供的字元和字型系列建立圖示。 |
CreateFromFontGlyph(String, String, Uri) |
從提供的字元、字型系列和字型 URI 建立圖示。 |
CreateFromFontGlyph(String, String)
從提供的字元和字型系列建立圖示。
public:
static WindowTabIcon ^ CreateFromFontGlyph(Platform::String ^ glyph, Platform::String ^ fontFamily);
/// [Windows.Foundation.Metadata.Overload("CreateFromFontGlyph")]
static WindowTabIcon CreateFromFontGlyph(winrt::hstring const& glyph, winrt::hstring const& fontFamily);
[Windows.Foundation.Metadata.Overload("CreateFromFontGlyph")]
public static WindowTabIcon CreateFromFontGlyph(string glyph, string fontFamily);
function createFromFontGlyph(glyph, fontFamily)
Public Shared Function CreateFromFontGlyph (glyph As String, fontFamily As String) As WindowTabIcon
參數
- glyph
-
String
Platform::String
winrt::hstring
識別圖示字元的字元碼。
- fontFamily
-
String
Platform::String
winrt::hstring
用來顯示圖示圖像的字型。
傳回
從字型圖像建立的圖示。
- 屬性
備註
重要
此 API 僅適用于 Win32 傳統型應用程式。 不支援 UWP 和其他應用程式類型。
適用於
CreateFromFontGlyph(String, String, Uri)
從提供的字元、字型系列和字型 URI 建立圖示。
public:
static WindowTabIcon ^ CreateFromFontGlyph(Platform::String ^ glyph, Platform::String ^ fontFamily, Uri ^ fontUri);
/// [Windows.Foundation.Metadata.Overload("CreateFromFontGlyphWithUri")]
static WindowTabIcon CreateFromFontGlyph(winrt::hstring const& glyph, winrt::hstring const& fontFamily, Uri const& fontUri);
[Windows.Foundation.Metadata.Overload("CreateFromFontGlyphWithUri")]
public static WindowTabIcon CreateFromFontGlyph(string glyph, string fontFamily, System.Uri fontUri);
function createFromFontGlyph(glyph, fontFamily, fontUri)
Public Shared Function CreateFromFontGlyph (glyph As String, fontFamily As String, fontUri As Uri) As WindowTabIcon
參數
- glyph
-
String
Platform::String
winrt::hstring
識別圖示字元的字元碼。
- fontFamily
-
String
Platform::String
winrt::hstring
用來顯示圖示圖像的字型。
傳回
從字型圖像建立的圖示。
- 屬性
備註
重要
此 API 僅適用于 Win32 傳統型應用程式。 不支援 UWP 和其他應用程式類型。