FormattedText Constructors

Definitie

Initialiseert een nieuw exemplaar van de FormattedText klasse.

Overloads

Name Description
FormattedText(String, CultureInfo, FlowDirection, Typeface, Double, Brush)
Verouderd.

Initialiseert een nieuw exemplaar van de FormattedText klasse met de opgegeven tekst, cultuur, stroomrichting, lettertype, tekengrootte en kwast.

FormattedText(String, CultureInfo, FlowDirection, Typeface, Double, Brush, Double)

Initialiseert een nieuw exemplaar van de FormattedText klasse met de opgegeven tekst, cultuur, stroomrichting, lettertype, tekengrootte, voorgrondborstel en pixelsPerDip-waarde.

FormattedText(String, CultureInfo, FlowDirection, Typeface, Double, Brush, NumberSubstitution)
Verouderd.

Initialiseert een nieuw exemplaar van de FormattedText klasse met de opgegeven tekst, cultuur, stroomrichting, lettertypegrootte, penseel en nummervervanging.

FormattedText(String, CultureInfo, FlowDirection, Typeface, Double, Brush, NumberSubstitution, Double)

Initialiseert een nieuw exemplaar van de FormattedText klasse met de opgegeven tekst, cultuur, stroomrichting, lettertype, tekengrootte, voorgrondborstel, gedrag voor nummervervanging en pixelsPerDip-waarde.

FormattedText(String, CultureInfo, FlowDirection, Typeface, Double, Brush, NumberSubstitution, TextFormattingMode)
Verouderd.

Initialiseert een nieuw exemplaar van de FormattedText klasse met de opgegeven tekst, cultuur, stroomrichting, lettertype, tekengrootte, penseel, nummervervangingsgedrag en de modus voor tekstopmaak.

FormattedText(String, CultureInfo, FlowDirection, Typeface, Double, Brush, NumberSubstitution, TextFormattingMode, Double)

Initialiseert een nieuw exemplaar van de FormattedText klasse met de opgegeven tekst, cultuur, stroomrichting, lettertype, tekengrootte, voorgrondborstel, gedrag voor nummervervanging en pixelsPerDip-waarde.

FormattedText(String, CultureInfo, FlowDirection, Typeface, Double, Brush)

Let op

Use the PixelsPerDip override

Initialiseert een nieuw exemplaar van de FormattedText klasse met de opgegeven tekst, cultuur, stroomrichting, lettertype, tekengrootte en kwast.

public:
 FormattedText(System::String ^ textToFormat, System::Globalization::CultureInfo ^ culture, System::Windows::FlowDirection flowDirection, System::Windows::Media::Typeface ^ typeface, double emSize, System::Windows::Media::Brush ^ foreground);
public FormattedText(string textToFormat, System.Globalization.CultureInfo culture, System.Windows.FlowDirection flowDirection, System.Windows.Media.Typeface typeface, double emSize, System.Windows.Media.Brush foreground);
[System.Obsolete("Use the PixelsPerDip override", false)]
public FormattedText(string textToFormat, System.Globalization.CultureInfo culture, System.Windows.FlowDirection flowDirection, System.Windows.Media.Typeface typeface, double emSize, System.Windows.Media.Brush foreground);
new System.Windows.Media.FormattedText : string * System.Globalization.CultureInfo * System.Windows.FlowDirection * System.Windows.Media.Typeface * double * System.Windows.Media.Brush -> System.Windows.Media.FormattedText
[<System.Obsolete("Use the PixelsPerDip override", false)>]
new System.Windows.Media.FormattedText : string * System.Globalization.CultureInfo * System.Windows.FlowDirection * System.Windows.Media.Typeface * double * System.Windows.Media.Brush -> System.Windows.Media.FormattedText
Public Sub New (textToFormat As String, culture As CultureInfo, flowDirection As FlowDirection, typeface As Typeface, emSize As Double, foreground As Brush)

Parameters

textToFormat
String

De tekst die moet worden weergegeven.

culture
CultureInfo

De specifieke cultuur van de tekst.

flowDirection
FlowDirection

De richting van de tekst wordt gelezen.

typeface
Typeface

De lettertypefamilie, het gewicht, de stijl en de stretch van de tekst moeten worden opgemaakt met.

emSize
Double

De tekengrootte waar de tekst op moet worden opgemaakt.

foreground
Brush

De kwast die wordt gebruikt om de glyph te schilderen.

Kenmerken

Van toepassing op

FormattedText(String, CultureInfo, FlowDirection, Typeface, Double, Brush, Double)

Initialiseert een nieuw exemplaar van de FormattedText klasse met de opgegeven tekst, cultuur, stroomrichting, lettertype, tekengrootte, voorgrondborstel en pixelsPerDip-waarde.

public:
 FormattedText(System::String ^ textToFormat, System::Globalization::CultureInfo ^ culture, System::Windows::FlowDirection flowDirection, System::Windows::Media::Typeface ^ typeface, double emSize, System::Windows::Media::Brush ^ foreground, double pixelsPerDip);
public FormattedText(string textToFormat, System.Globalization.CultureInfo culture, System.Windows.FlowDirection flowDirection, System.Windows.Media.Typeface typeface, double emSize, System.Windows.Media.Brush foreground, double pixelsPerDip);
new System.Windows.Media.FormattedText : string * System.Globalization.CultureInfo * System.Windows.FlowDirection * System.Windows.Media.Typeface * double * System.Windows.Media.Brush * double -> System.Windows.Media.FormattedText
Public Sub New (textToFormat As String, culture As CultureInfo, flowDirection As FlowDirection, typeface As Typeface, emSize As Double, foreground As Brush, pixelsPerDip As Double)

Parameters

textToFormat
String

De tekst die moet worden weergegeven.

culture
CultureInfo

De specifieke cultuur van de tekst.

flowDirection
FlowDirection

De richting van de tekst wordt gelezen.

typeface
Typeface

De lettertypefamilie, het gewicht, de stijl en de stretch van de tekst moeten worden opgemaakt met.

emSize
Double

De tekengrootte voor de em-meting van de tekst, geleverd in apparaatonafhankelijke eenheden (1/96e inch per eenheid).

foreground
Brush

De kwast die wordt gebruikt om de glyph te schilderen.

pixelsPerDip
Double

De onafhankelijke pixelwaarde pixels per dichtheid, wat het equivalent is van de schaalfactor. Als de DPI van een scherm bijvoorbeeld 120 is (of 1,25 omdat 120/96 = 1,25) , 1,25 pixel per dichtheid onafhankelijke pixel wordt getekend. DIP is de maateenheid die door WPF wordt gebruikt om onafhankelijk te zijn van apparaatresolutie en DPO's.

Van toepassing op

FormattedText(String, CultureInfo, FlowDirection, Typeface, Double, Brush, NumberSubstitution)

Let op

Use the PixelsPerDip override

Initialiseert een nieuw exemplaar van de FormattedText klasse met de opgegeven tekst, cultuur, stroomrichting, lettertypegrootte, penseel en nummervervanging.

public:
 FormattedText(System::String ^ textToFormat, System::Globalization::CultureInfo ^ culture, System::Windows::FlowDirection flowDirection, System::Windows::Media::Typeface ^ typeface, double emSize, System::Windows::Media::Brush ^ foreground, System::Windows::Media::NumberSubstitution ^ numberSubstitution);
public FormattedText(string textToFormat, System.Globalization.CultureInfo culture, System.Windows.FlowDirection flowDirection, System.Windows.Media.Typeface typeface, double emSize, System.Windows.Media.Brush foreground, System.Windows.Media.NumberSubstitution numberSubstitution);
[System.Obsolete("Use the PixelsPerDip override", false)]
public FormattedText(string textToFormat, System.Globalization.CultureInfo culture, System.Windows.FlowDirection flowDirection, System.Windows.Media.Typeface typeface, double emSize, System.Windows.Media.Brush foreground, System.Windows.Media.NumberSubstitution numberSubstitution);
new System.Windows.Media.FormattedText : string * System.Globalization.CultureInfo * System.Windows.FlowDirection * System.Windows.Media.Typeface * double * System.Windows.Media.Brush * System.Windows.Media.NumberSubstitution -> System.Windows.Media.FormattedText
[<System.Obsolete("Use the PixelsPerDip override", false)>]
new System.Windows.Media.FormattedText : string * System.Globalization.CultureInfo * System.Windows.FlowDirection * System.Windows.Media.Typeface * double * System.Windows.Media.Brush * System.Windows.Media.NumberSubstitution -> System.Windows.Media.FormattedText
Public Sub New (textToFormat As String, culture As CultureInfo, flowDirection As FlowDirection, typeface As Typeface, emSize As Double, foreground As Brush, numberSubstitution As NumberSubstitution)

Parameters

textToFormat
String

De tekst die moet worden weergegeven.

culture
CultureInfo

De specifieke cultuur van de tekst.

flowDirection
FlowDirection

De richting van de tekst wordt gelezen.

typeface
Typeface

De lettertypefamilie, het gewicht, de stijl en de stretch van de tekst moeten worden opgemaakt met.

emSize
Double

De tekengrootte voor de em-meting van de tekst, geleverd in apparaatonafhankelijke eenheden (1/96e inch per eenheid).

foreground
Brush

De kwast die wordt gebruikt om de glyph te schilderen.

numberSubstitution
NumberSubstitution

Het gedrag voor het vervangen van getallen dat moet worden toegepast op de tekst.

Kenmerken

Van toepassing op

FormattedText(String, CultureInfo, FlowDirection, Typeface, Double, Brush, NumberSubstitution, Double)

Initialiseert een nieuw exemplaar van de FormattedText klasse met de opgegeven tekst, cultuur, stroomrichting, lettertype, tekengrootte, voorgrondborstel, gedrag voor nummervervanging en pixelsPerDip-waarde.

public:
 FormattedText(System::String ^ textToFormat, System::Globalization::CultureInfo ^ culture, System::Windows::FlowDirection flowDirection, System::Windows::Media::Typeface ^ typeface, double emSize, System::Windows::Media::Brush ^ foreground, System::Windows::Media::NumberSubstitution ^ numberSubstitution, double pixelsPerDip);
public FormattedText(string textToFormat, System.Globalization.CultureInfo culture, System.Windows.FlowDirection flowDirection, System.Windows.Media.Typeface typeface, double emSize, System.Windows.Media.Brush foreground, System.Windows.Media.NumberSubstitution numberSubstitution, double pixelsPerDip);
new System.Windows.Media.FormattedText : string * System.Globalization.CultureInfo * System.Windows.FlowDirection * System.Windows.Media.Typeface * double * System.Windows.Media.Brush * System.Windows.Media.NumberSubstitution * double -> System.Windows.Media.FormattedText
Public Sub New (textToFormat As String, culture As CultureInfo, flowDirection As FlowDirection, typeface As Typeface, emSize As Double, foreground As Brush, numberSubstitution As NumberSubstitution, pixelsPerDip As Double)

Parameters

textToFormat
String

De weer te geven tekst.

culture
CultureInfo

De specifieke cultuur van de tekst.

flowDirection
FlowDirection

De richting van de tekst wordt gelezen.

typeface
Typeface

De lettertypefamilie, het gewicht, de stijl en de stretch van de tekst moeten worden opgemaakt met.

emSize
Double

De tekengrootte voor de em-meting van de tekst, geleverd in apparaatonafhankelijke eenheden (1/96e inch per eenheid).

foreground
Brush

De kwast die wordt gebruikt om de glyph te schilderen.

numberSubstitution
NumberSubstitution

Hiermee geeft u op hoe getallen in tekst worden weergegeven, op NumberSubstitutionbasis van . Deze waarde kan zijn null.

pixelsPerDip
Double

De onafhankelijke pixelwaarde pixels per dichtheid, wat het equivalent is van de schaalfactor. Als de DPI van een scherm bijvoorbeeld 120 is (of 1,25 omdat 120/96 = 1,25) , 1,25 pixel per dichtheid onafhankelijke pixel wordt getekend. DIP is de maateenheid die door WPF wordt gebruikt om onafhankelijk te zijn van apparaatresolutie en DPO's.

Van toepassing op

FormattedText(String, CultureInfo, FlowDirection, Typeface, Double, Brush, NumberSubstitution, TextFormattingMode)

Let op

Use the PixelsPerDip override

Initialiseert een nieuw exemplaar van de FormattedText klasse met de opgegeven tekst, cultuur, stroomrichting, lettertype, tekengrootte, penseel, nummervervangingsgedrag en de modus voor tekstopmaak.

public:
 FormattedText(System::String ^ textToFormat, System::Globalization::CultureInfo ^ culture, System::Windows::FlowDirection flowDirection, System::Windows::Media::Typeface ^ typeface, double emSize, System::Windows::Media::Brush ^ foreground, System::Windows::Media::NumberSubstitution ^ numberSubstitution, System::Windows::Media::TextFormattingMode textFormattingMode);
public FormattedText(string textToFormat, System.Globalization.CultureInfo culture, System.Windows.FlowDirection flowDirection, System.Windows.Media.Typeface typeface, double emSize, System.Windows.Media.Brush foreground, System.Windows.Media.NumberSubstitution numberSubstitution, System.Windows.Media.TextFormattingMode textFormattingMode);
[System.Obsolete("Use the PixelsPerDip override", false)]
public FormattedText(string textToFormat, System.Globalization.CultureInfo culture, System.Windows.FlowDirection flowDirection, System.Windows.Media.Typeface typeface, double emSize, System.Windows.Media.Brush foreground, System.Windows.Media.NumberSubstitution numberSubstitution, System.Windows.Media.TextFormattingMode textFormattingMode);
new System.Windows.Media.FormattedText : string * System.Globalization.CultureInfo * System.Windows.FlowDirection * System.Windows.Media.Typeface * double * System.Windows.Media.Brush * System.Windows.Media.NumberSubstitution * System.Windows.Media.TextFormattingMode -> System.Windows.Media.FormattedText
[<System.Obsolete("Use the PixelsPerDip override", false)>]
new System.Windows.Media.FormattedText : string * System.Globalization.CultureInfo * System.Windows.FlowDirection * System.Windows.Media.Typeface * double * System.Windows.Media.Brush * System.Windows.Media.NumberSubstitution * System.Windows.Media.TextFormattingMode -> System.Windows.Media.FormattedText
Public Sub New (textToFormat As String, culture As CultureInfo, flowDirection As FlowDirection, typeface As Typeface, emSize As Double, foreground As Brush, numberSubstitution As NumberSubstitution, textFormattingMode As TextFormattingMode)

Parameters

textToFormat
String

De tekst die moet worden weergegeven.

culture
CultureInfo

De specifieke cultuur van de tekst.

flowDirection
FlowDirection

De richting van de tekst wordt gelezen.

typeface
Typeface

De lettertypefamilie, het gewicht, de stijl en de stretch van de tekst moeten worden opgemaakt met.

emSize
Double

De tekengrootte voor de em-meting van de tekst, geleverd in apparaatonafhankelijke eenheden (1/96e inch per eenheid).

foreground
Brush

De kwast die wordt gebruikt om de glyph te schilderen.

numberSubstitution
NumberSubstitution

Het gedrag voor het vervangen van getallen dat moet worden toegepast op de tekst.

textFormattingMode
TextFormattingMode

De TextFormattingMode toe te passen op de tekst.

Kenmerken

Van toepassing op

FormattedText(String, CultureInfo, FlowDirection, Typeface, Double, Brush, NumberSubstitution, TextFormattingMode, Double)

Initialiseert een nieuw exemplaar van de FormattedText klasse met de opgegeven tekst, cultuur, stroomrichting, lettertype, tekengrootte, voorgrondborstel, gedrag voor nummervervanging en pixelsPerDip-waarde.

public:
 FormattedText(System::String ^ textToFormat, System::Globalization::CultureInfo ^ culture, System::Windows::FlowDirection flowDirection, System::Windows::Media::Typeface ^ typeface, double emSize, System::Windows::Media::Brush ^ foreground, System::Windows::Media::NumberSubstitution ^ numberSubstitution, System::Windows::Media::TextFormattingMode textFormattingMode, double pixelsPerDip);
public FormattedText(string textToFormat, System.Globalization.CultureInfo culture, System.Windows.FlowDirection flowDirection, System.Windows.Media.Typeface typeface, double emSize, System.Windows.Media.Brush foreground, System.Windows.Media.NumberSubstitution numberSubstitution, System.Windows.Media.TextFormattingMode textFormattingMode, double pixelsPerDip);
new System.Windows.Media.FormattedText : string * System.Globalization.CultureInfo * System.Windows.FlowDirection * System.Windows.Media.Typeface * double * System.Windows.Media.Brush * System.Windows.Media.NumberSubstitution * System.Windows.Media.TextFormattingMode * double -> System.Windows.Media.FormattedText
Public Sub New (textToFormat As String, culture As CultureInfo, flowDirection As FlowDirection, typeface As Typeface, emSize As Double, foreground As Brush, numberSubstitution As NumberSubstitution, textFormattingMode As TextFormattingMode, pixelsPerDip As Double)

Parameters

textToFormat
String

De weer te geven tekst.

culture
CultureInfo

De specifieke cultuur van de tekst.

flowDirection
FlowDirection

De richting van de tekst wordt gelezen.

typeface
Typeface

De lettertypefamilie, het gewicht, de stijl en de stretch van de tekst moeten worden opgemaakt met.

emSize
Double

De tekengrootte voor de em-meting van de tekst, geleverd in apparaatonafhankelijke eenheden (1/96e inch per eenheid).

foreground
Brush

Hij schilderde vroeger de glyph.

numberSubstitution
NumberSubstitution

Hiermee geeft u op hoe getallen in tekst worden weergegeven, op NumberSubstitutionbasis van . Deze waarde kan zijn null.

textFormattingMode
TextFormattingMode

De opmaakmodus die van invloed is op de manier waarop WPF tekst weergeeft.

pixelsPerDip
Double

De onafhankelijke pixelwaarde pixels per dichtheid, wat het equivalent is van de schaalfactor. Als de DPI van een scherm bijvoorbeeld 120 is (of 1,25 omdat 120/96 = 1,25) , 1,25 pixel per dichtheid onafhankelijke pixel wordt getekend. DIP is de maateenheid die door WPF wordt gebruikt om onafhankelijk te zijn van apparaatresolutie en DPO's.

Van toepassing op