GlyphRun 构造函数

定义

初始化 GlyphRun 类的新实例。

重载

GlyphRun()
已过时.

初始化 GlyphRun 类的新实例。

GlyphRun(Single)

初始化 GlyphRun 类的新实例。

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

通过指定类的属性,初始化 GlyphRun 类的一个新实例。

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

通过指定类的属性,初始化 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。 DPI 是 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 类型的值。

属性

适用于