GlyphTypeface コンストラクター

定義

GlyphTypeface クラスの新しいインスタンスを初期化します。

オーバーロード

GlyphTypeface()

GlyphTypeface クラスの新しいインスタンスを初期化します。

GlyphTypeface(Uri)

指定したフォント ファイルの場所を使用して、GlyphTypeface クラスの新しいインスタンスを初期化します。

GlyphTypeface(Uri, StyleSimulations)

指定したフォント ファイルの場所と GlyphTypeface 値を使用して、StyleSimulations クラスの新しいインスタンスを初期化します。

GlyphTypeface()

GlyphTypeface クラスの新しいインスタンスを初期化します。

public:
 GlyphTypeface();
public GlyphTypeface ();
Public Sub New ()

適用対象

GlyphTypeface(Uri)

指定したフォント ファイルの場所を使用して、GlyphTypeface クラスの新しいインスタンスを初期化します。

public:
 GlyphTypeface(Uri ^ typefaceSource);
public GlyphTypeface (Uri typefaceSource);
new System.Windows.Media.GlyphTypeface : Uri -> System.Windows.Media.GlyphTypeface
Public Sub New (typefaceSource As Uri)

パラメーター

typefaceSource
Uri

フォント ファイルの場所を指定する URI。

次の例は、フォント ファイルの場所を指定して、クラスの GlyphTypeface 新しいインスタンスを作成する方法を示しています。

// Create a glyph typeface by referencing the Kootenay OpenType font.
GlyphTypeface glyphTypeface = new GlyphTypeface(new Uri("file:///C:\\WINDOWS\\Fonts\\Kooten.ttf"));
' Create a glyph typeface by referencing the Kootenay OpenType font.
Dim glyphTypeface As New GlyphTypeface(New Uri("file:///C:\WINDOWS\Fonts\Kooten.ttf"))

注釈

このコンストラクターは、で指定された OpenType フォントフェイスから新しい GlyphTypeface オブジェクトを typefaceSource作成します。 構築された GlyphTypeface オブジェクトでは、スタイル シミュレーションは使用されません。

適用対象

GlyphTypeface(Uri, StyleSimulations)

指定したフォント ファイルの場所と GlyphTypeface 値を使用して、StyleSimulations クラスの新しいインスタンスを初期化します。

public:
 GlyphTypeface(Uri ^ typefaceSource, System::Windows::Media::StyleSimulations styleSimulations);
[System.Security.SecurityCritical]
public GlyphTypeface (Uri typefaceSource, System.Windows.Media.StyleSimulations styleSimulations);
public GlyphTypeface (Uri typefaceSource, System.Windows.Media.StyleSimulations styleSimulations);
[<System.Security.SecurityCritical>]
new System.Windows.Media.GlyphTypeface : Uri * System.Windows.Media.StyleSimulations -> System.Windows.Media.GlyphTypeface
new System.Windows.Media.GlyphTypeface : Uri * System.Windows.Media.StyleSimulations -> System.Windows.Media.GlyphTypeface
Public Sub New (typefaceSource As Uri, styleSimulations As StyleSimulations)

パラメーター

typefaceSource
Uri

フォント ファイルの場所を指定する URI。

styleSimulations
StyleSimulations

StyleSimulations 値のいずれか 1 つ。

属性

注釈

このコンストラクターは、And で指定された OpenType フォントフェイスから新しいGlyphTypefaceオブジェクトをtypefaceSource``styleSimulations作成します。

適用対象