Lire en anglais Modifier

Partager via


GlyphRun Constructors

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Initializes a new instance of the GlyphRun class.

Overloads

GlyphRun()
Obsolete.

Initializes a new instance of the GlyphRun class.

GlyphRun(Single)

Initializes a new instance of the GlyphRun class.

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

Initializes a new instance of the GlyphRun class by specifying properties of the class.

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

Initializes a new instance of the GlyphRun class by specifying properties of the class.

GlyphRun()

Caution

Use the PixelsPerDip override

Initializes a new instance of the GlyphRun class.

C#
public GlyphRun();
C#
[System.Obsolete("Use the PixelsPerDip override", false)]
public GlyphRun();
Attributes

Applies to

.NET Framework 4.8.1 et autres versions
Produit Versions (Obsolète)
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1 (4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1)
Windows Desktop (3.0, 3.1, 5, 6, 7, 8, 9, 10)

GlyphRun(Single)

Initializes a new instance of the GlyphRun class.

C#
public GlyphRun(float pixelsPerDip);

Parameters

pixelsPerDip
Single

The Pixels Per Density Independent Pixel value, which is the equivalent of the scale factor. For example, if the DPI of a screen is 120 (or 1.25 because 120/96 = 1.25) , 1.25 pixel per density independent pixel is drawn. DIP is the unit of measurement used by WPF to be independent of device resolution and DPIs.

Applies to

.NET Framework 4.8.1 et autres versions
Produit Versions
.NET Framework 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

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

Caution

Use the PixelsPerDip override

Important

This API is not CLS-compliant.

Initializes a new instance of the GlyphRun class by specifying properties of the class.

C#
[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);
C#
[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);

Parameters

glyphTypeface
GlyphTypeface

A value of type GlyphTypeface.

bidiLevel
Int32

A value of type Int32.

isSideways
Boolean

A value of type Boolean.

renderingEmSize
Double

A value of type Double.

glyphIndices
IList<UInt16>

An array of type IList<T>.

baselineOrigin
Point

A value of type Point.

advanceWidths
IList<Double>

An array of type IList<T>.

glyphOffsets
IList<Point>

An array of type IList<T>.

characters
IList<Char>

An array of type IList<T>.

deviceFontName
String

A value of type String.

clusterMap
IList<UInt16>

An array of type IList<T>.

caretStops
IList<Boolean>

An array of type IList<T>.

language
XmlLanguage

A value of type XmlLanguage.

Attributes

Applies to

.NET Framework 4.8.1 et autres versions
Produit Versions (Obsolète)
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1 (4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1)
Windows Desktop (3.0, 3.1, 5, 6, 7, 8, 9, 10)

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

Important

This API is not CLS-compliant.

Initializes a new instance of the GlyphRun class by specifying properties of the class.

C#
[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);

Parameters

glyphTypeface
GlyphTypeface

A value of type GlyphTypeface.

bidiLevel
Int32

A value of type Int32.

isSideways
Boolean

A value of type Boolean.

renderingEmSize
Double

A value of type Double.

pixelsPerDip
Single

A value of type Double.

glyphIndices
IList<UInt16>

An array of type IList<T>.

baselineOrigin
Point

A value of type Point.

advanceWidths
IList<Double>

An array of type IList<T>.

glyphOffsets
IList<Point>

An array of type IList<T>.

characters
IList<Char>

An array of type IList<T>.

deviceFontName
String

A value of type String.

clusterMap
IList<UInt16>

An array of type IList<T>.

caretStops
IList<Boolean>

An array of type IList<T>.

language
XmlLanguage

A value of type XmlLanguage.

Attributes

Applies to

.NET Framework 4.8.1 et autres versions
Produit Versions
.NET Framework 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10