語言

GlyphRun 建構函式

定義

初始化 GlyphRun 類別的新執行個體。

多載

GlyphRun()

警告

Use the PixelsPerDip override

初始化 GlyphRun 類別的新執行個體。

public:
 GlyphRun();
public GlyphRun();
[System.Obsolete("Use the PixelsPerDip override", false)]
public GlyphRun();
Public Sub New ()
屬性

適用於

GlyphRun(Single)

初始化 GlyphRun 類別的新執行個體。

public:
 GlyphRun(float pixelsPerDip);
public GlyphRun(float pixelsPerDip);
new System.Windows.Media.GlyphRun : single -> System.Windows.Media.GlyphRun
Public Sub New (pixelsPerDip As Single)

參數

pixelsPerDip
Single

像素密度與解析度無關值,相當於比例因子。 例如,若螢幕的 DPI 為 120(或 1.25,因為 120/96 = 1.25),則每個與密度無關的像素會繪製 1.25 像素。 DIP 是 WPF 用來獨立於裝置解析度與 DPI 的單位。

適用於

GlyphRun(GlyphTypeface, Int32, Boolean, Double, IList<UInt16>, Point, IList<Double>, IList<Point>, IList<Char>, String, IList<UInt16>, IList<Boolean>, XmlLanguage)

警告

Use the PixelsPerDip override

重要

此 API 不符合 CLS 規範。

透過指定類別的性質來初始化該類別的新實例 GlyphRun 。

public:
 GlyphRun(System::Windows::Media::GlyphTypeface ^ glyphTypeface, int bidiLevel, bool isSideways, double renderingEmSize, System::Collections::Generic::IList<System::UInt16> ^ glyphIndices, System::Windows::Point baselineOrigin, System::Collections::Generic::IList<double> ^ advanceWidths, System::Collections::Generic::IList<System::Windows::Point> ^ glyphOffsets, System::Collections::Generic::IList<char> ^ characters, System::String ^ deviceFontName, System::Collections::Generic::IList<System::UInt16> ^ clusterMap, System::Collections::Generic::IList<bool> ^ caretStops, System::Windows::Markup::XmlLanguage ^ language);
[System.CLSCompliant(false)]
public GlyphRun(System.Windows.Media.GlyphTypeface glyphTypeface, int bidiLevel, bool isSideways, double renderingEmSize, System.Collections.Generic.IList<ushort> glyphIndices, System.Windows.Point baselineOrigin, System.Collections.Generic.IList<double> advanceWidths, System.Collections.Generic.IList<System.Windows.Point> glyphOffsets, System.Collections.Generic.IList<char> characters, string deviceFontName, System.Collections.Generic.IList<ushort> clusterMap, System.Collections.Generic.IList<bool> caretStops, System.Windows.Markup.XmlLanguage language);
[System.CLSCompliant(false)]
[System.Obsolete("Use the PixelsPerDip override", false)]
public GlyphRun(System.Windows.Media.GlyphTypeface glyphTypeface, int bidiLevel, bool isSideways, double renderingEmSize, System.Collections.Generic.IList<ushort> glyphIndices, System.Windows.Point baselineOrigin, System.Collections.Generic.IList<double> advanceWidths, System.Collections.Generic.IList<System.Windows.Point> glyphOffsets, System.Collections.Generic.IList<char> characters, string deviceFontName, System.Collections.Generic.IList<ushort> clusterMap, System.Collections.Generic.IList<bool> caretStops, System.Windows.Markup.XmlLanguage language);
[<System.CLSCompliant(false)>]
new System.Windows.Media.GlyphRun : System.Windows.Media.GlyphTypeface * int * bool * double * System.Collections.Generic.IList<uint16> * System.Windows.Point * System.Collections.Generic.IList<double> * System.Collections.Generic.IList<System.Windows.Point> * System.Collections.Generic.IList<char> * string * System.Collections.Generic.IList<uint16> * System.Collections.Generic.IList<bool> * System.Windows.Markup.XmlLanguage -> System.Windows.Media.GlyphRun
[<System.CLSCompliant(false)>]
[<System.Obsolete("Use the PixelsPerDip override", false)>]
new System.Windows.Media.GlyphRun : System.Windows.Media.GlyphTypeface * int * bool * double * System.Collections.Generic.IList<uint16> * System.Windows.Point * System.Collections.Generic.IList<double> * System.Collections.Generic.IList<System.Windows.Point> * System.Collections.Generic.IList<char> * string * System.Collections.Generic.IList<uint16> * System.Collections.Generic.IList<bool> * System.Windows.Markup.XmlLanguage -> System.Windows.Media.GlyphRun
Public Sub New (glyphTypeface As GlyphTypeface, bidiLevel As Integer, isSideways As Boolean, renderingEmSize As Double, glyphIndices As IList(Of UShort), baselineOrigin As Point, advanceWidths As IList(Of Double), glyphOffsets As IList(Of Point), characters As IList(Of Char), deviceFontName As String, clusterMap As IList(Of UShort), caretStops As IList(Of Boolean), language As XmlLanguage)

參數

glyphTypeface
GlyphTypeface

型別 GlyphTypeface 的值。

bidiLevel
Int32

型別 Int32 的值。

isSideways
Boolean

型別 Boolean 的值。

renderingEmSize
Double

型別 Double 的值。

glyphIndices
IList<UInt16>

一個類型的 IList<T>陣列。

baselineOrigin
Point

型別 Point 的值。

advanceWidths
IList<Double>

一個類型的 IList<T>陣列。

glyphOffsets
IList<Point>

一個類型的 IList<T>陣列。

characters
IList<Char>

一個類型的 IList<T>陣列。

deviceFontName
String

型別 String 的值。

clusterMap
IList<UInt16>

一個類型的 IList<T>陣列。

caretStops
IList<Boolean>

一個類型的 IList<T>陣列。

language
XmlLanguage

型別 XmlLanguage 的值。

屬性

適用於

GlyphRun(GlyphTypeface, Int32, Boolean, Double, Single, IList<UInt16>, Point, IList<Double>, IList<Point>, IList<Char>, String, IList<UInt16>, IList<Boolean>, XmlLanguage)

重要

此 API 不符合 CLS 規範。

透過指定類別的性質來初始化該類別的新實例 GlyphRun 。

public:
 GlyphRun(System::Windows::Media::GlyphTypeface ^ glyphTypeface, int bidiLevel, bool isSideways, double renderingEmSize, float pixelsPerDip, System::Collections::Generic::IList<System::UInt16> ^ glyphIndices, System::Windows::Point baselineOrigin, System::Collections::Generic::IList<double> ^ advanceWidths, System::Collections::Generic::IList<System::Windows::Point> ^ glyphOffsets, System::Collections::Generic::IList<char> ^ characters, System::String ^ deviceFontName, System::Collections::Generic::IList<System::UInt16> ^ clusterMap, System::Collections::Generic::IList<bool> ^ caretStops, System::Windows::Markup::XmlLanguage ^ language);
[System.CLSCompliant(false)]
public GlyphRun(System.Windows.Media.GlyphTypeface glyphTypeface, int bidiLevel, bool isSideways, double renderingEmSize, float pixelsPerDip, System.Collections.Generic.IList<ushort> glyphIndices, System.Windows.Point baselineOrigin, System.Collections.Generic.IList<double> advanceWidths, System.Collections.Generic.IList<System.Windows.Point> glyphOffsets, System.Collections.Generic.IList<char> characters, string deviceFontName, System.Collections.Generic.IList<ushort> clusterMap, System.Collections.Generic.IList<bool> caretStops, System.Windows.Markup.XmlLanguage language);
[<System.CLSCompliant(false)>]
new System.Windows.Media.GlyphRun : System.Windows.Media.GlyphTypeface * int * bool * double * single * System.Collections.Generic.IList<uint16> * System.Windows.Point * System.Collections.Generic.IList<double> * System.Collections.Generic.IList<System.Windows.Point> * System.Collections.Generic.IList<char> * string * System.Collections.Generic.IList<uint16> * System.Collections.Generic.IList<bool> * System.Windows.Markup.XmlLanguage -> System.Windows.Media.GlyphRun
Public Sub New (glyphTypeface As GlyphTypeface, bidiLevel As Integer, isSideways As Boolean, renderingEmSize As Double, pixelsPerDip As Single, glyphIndices As IList(Of UShort), baselineOrigin As Point, advanceWidths As IList(Of Double), glyphOffsets As IList(Of Point), characters As IList(Of Char), deviceFontName As String, clusterMap As IList(Of UShort), caretStops As IList(Of Boolean), language As XmlLanguage)

參數

glyphTypeface
GlyphTypeface

型別 GlyphTypeface 的值。

bidiLevel
Int32

型別 Int32 的值。

isSideways
Boolean

型別 Boolean 的值。

renderingEmSize
Double

型別 Double 的值。

pixelsPerDip
Single

型別 Double 的值。

glyphIndices
IList<UInt16>

一個類型的 IList<T>陣列。

baselineOrigin
Point

型別 Point 的值。

advanceWidths
IList<Double>

一個類型的 IList<T>陣列。

glyphOffsets
IList<Point>

一個類型的 IList<T>陣列。

characters
IList<Char>

一個類型的 IList<T>陣列。

deviceFontName
String

型別 String 的值。

clusterMap
IList<UInt16>

一個類型的 IList<T>陣列。

caretStops
IList<Boolean>

一個類型的 IList<T>陣列。

language
XmlLanguage

型別 XmlLanguage 的值。

屬性

適用於