GlyphTypeface Konstruktory
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Inicjuje nowe wystąpienie klasy GlyphTypeface.
Przeciążenia
| GlyphTypeface() |
Inicjuje nowe wystąpienie klasy GlyphTypeface. |
| GlyphTypeface(Uri) |
Inicjuje GlyphTypeface nowe wystąpienie klasy przy użyciu określonej lokalizacji pliku czcionki. |
| GlyphTypeface(Uri, StyleSimulations) |
Inicjuje GlyphTypeface nowe wystąpienie klasy przy użyciu określonej lokalizacji i StyleSimulations wartości pliku czcionki. |
GlyphTypeface()
Inicjuje nowe wystąpienie klasy GlyphTypeface.
public:
GlyphTypeface();
public GlyphTypeface ();
Public Sub New ()
Dotyczy
GlyphTypeface(Uri)
Inicjuje GlyphTypeface nowe wystąpienie klasy przy użyciu określonej lokalizacji pliku czcionki.
public:
GlyphTypeface(Uri ^ typefaceSource);
public GlyphTypeface (Uri typefaceSource);
new System.Windows.Media.GlyphTypeface : Uri -> System.Windows.Media.GlyphTypeface
Public Sub New (typefaceSource As Uri)
Parametry
- typefaceSource
- Uri
Identyfikator URI określający lokalizację pliku czcionki.
Przykłady
W poniższym przykładzie pokazano, jak utworzyć nowe wystąpienie GlyphTypeface klasy, określając lokalizację pliku czcionki.
// 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"))
Uwagi
Ten konstruktor tworzy nowy GlyphTypeface obiekt na podstawie twarzy czcionki OpenType określonej przez typefaceSource. Skonstruowany GlyphTypeface obiekt nie używa symulacji stylu.
Dotyczy
GlyphTypeface(Uri, StyleSimulations)
Inicjuje GlyphTypeface nowe wystąpienie klasy przy użyciu określonej lokalizacji i StyleSimulations wartości pliku czcionki.
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)
Parametry
- typefaceSource
- Uri
Identyfikator URI określający lokalizację pliku czcionki.
- styleSimulations
- StyleSimulations
Jedna z StyleSimulations wartości.
- Atrybuty
Uwagi
Ten konstruktor tworzy nowy GlyphTypeface obiekt na podstawie twarzy czcionki OpenType określonej przez typefaceSource i styleSimulations.