Språk

GlyphTypeface Konstruktorer

Definition

Initierar en ny instans av GlyphTypeface klassen.

Överlagringar

Name Description
GlyphTypeface()

Initierar en ny instans av GlyphTypeface klassen.

GlyphTypeface(Uri)

Initierar en ny instans av GlyphTypeface klassen med den angivna teckenfilsplatsen.

GlyphTypeface(Uri, StyleSimulations)

Initierar en ny instans av GlyphTypeface klassen med den angivna teckenfilens plats och StyleSimulations värde.

GlyphTypeface()

Initierar en ny instans av GlyphTypeface klassen.

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

Gäller för

GlyphTypeface(Uri)

Initierar en ny instans av GlyphTypeface klassen med den angivna teckenfilsplatsen.

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

Parametrar

typefaceSource
Uri

Den URI som anger platsen för teckensnittsfilen.

Exempel

I följande exempel visas hur du skapar en ny instans av GlyphTypeface klassen genom att ange en plats för teckensnittsfilen.

// 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"))

Kommentarer

Den här konstruktorn skapar ett nytt GlyphTypeface objekt från ett OpenType-teckensnitt som anges av typefaceSource. Det konstruerade GlyphTypeface objektet använder inte formatsimuleringar.

Gäller för

GlyphTypeface(Uri, StyleSimulations)

Initierar en ny instans av GlyphTypeface klassen med den angivna teckenfilens plats och StyleSimulations värde.

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)

Parametrar

typefaceSource
Uri

Den URI som anger platsen för teckensnittsfilen.

styleSimulations
StyleSimulations

Ett av StyleSimulations värdena.

Attribut

Kommentarer

Den här konstruktorn skapar ett nytt GlyphTypeface objekt från ett OpenType-teckensnitt som anges av typefaceSource och styleSimulations.

Gäller för