FormattedText Konstruktoren
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Initialisiert eine neue Instanz der FormattedText-Klasse.
Überlädt
| Name | Beschreibung |
|---|---|
| FormattedText(String, CultureInfo, FlowDirection, Typeface, Double, Brush) |
Veraltet.
Initialisiert eine neue Instanz der FormattedText Klasse mit dem angegebenen Text, der Kultur, der Flussrichtung, der Schriftart, dem Schriftgrad und dem Pinsel. |
| FormattedText(String, CultureInfo, FlowDirection, Typeface, Double, Brush, Double) |
Initialisiert eine neue Instanz der FormattedText Klasse mit dem angegebenen Text-, Kultur-, Flussrichtung, Schriftart, Schriftgrad, Vordergrundpinsel und PixelsPerDip-Wert. |
| FormattedText(String, CultureInfo, FlowDirection, Typeface, Double, Brush, NumberSubstitution) |
Veraltet.
Initialisiert eine neue Instanz der FormattedText Klasse mit dem angegebenen Text, der Kultur, der Flussrichtung, der Schriftart, dem Schriftgrad, dem Pinsel und dem Nummernersetzungsverhalten. |
| FormattedText(String, CultureInfo, FlowDirection, Typeface, Double, Brush, NumberSubstitution, Double) |
Initialisiert eine neue Instanz der FormattedText Klasse mit dem angegebenen Text, der Kultur, der Flussrichtung, der Schriftart, dem Schriftgrad, dem Vordergrundpinsel, dem Nummernersetzungsverhalten und dem PixelsPerDip-Wert. |
| FormattedText(String, CultureInfo, FlowDirection, Typeface, Double, Brush, NumberSubstitution, TextFormattingMode) |
Veraltet.
Initialisiert eine neue Instanz der FormattedText Klasse mit dem angegebenen Text, kultur, Flussrichtung, Schriftart, Schriftgrad, Pinsel, Zahlenersetzungsverhalten und Textformatierungsmodus. |
| FormattedText(String, CultureInfo, FlowDirection, Typeface, Double, Brush, NumberSubstitution, TextFormattingMode, Double) |
Initialisiert eine neue Instanz der FormattedText Klasse mit dem angegebenen Text, der Kultur, der Flussrichtung, der Schriftart, dem Schriftgrad, dem Vordergrundpinsel, dem Nummernersetzungsverhalten und dem PixelsPerDip-Wert. |
FormattedText(String, CultureInfo, FlowDirection, Typeface, Double, Brush)
Achtung
Use the PixelsPerDip override
Initialisiert eine neue Instanz der FormattedText Klasse mit dem angegebenen Text, der Kultur, der Flussrichtung, der Schriftart, dem Schriftgrad und dem Pinsel.
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)
Parameter
- textToFormat
- String
Der anzuzeigende Text.
- culture
- CultureInfo
Die spezifische Kultur des Texts.
- flowDirection
- FlowDirection
Die Richtung, in der der Text gelesen wird.
- typeface
- Typeface
Die Schriftfamilie, Stärke, Formatvorlage und Dehnen des Texts sollte formatiert werden.
- emSize
- Double
Der Schriftgrad, an dem der Text formatiert werden soll.
- foreground
- Brush
Der Pinsel, der zum Zeichnen der einzelnen Glyphen verwendet wird.
- Attribute
Gilt für:
FormattedText(String, CultureInfo, FlowDirection, Typeface, Double, Brush, Double)
Initialisiert eine neue Instanz der FormattedText Klasse mit dem angegebenen Text-, Kultur-, Flussrichtung, Schriftart, Schriftgrad, Vordergrundpinsel und PixelsPerDip-Wert.
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)
Parameter
- textToFormat
- String
Der anzuzeigende Text.
- culture
- CultureInfo
Die spezifische Kultur des Texts.
- flowDirection
- FlowDirection
Die Richtung, in der der Text gelesen wird.
- typeface
- Typeface
Die Schriftfamilie, Stärke, Formatvorlage und Dehnen des Texts sollte formatiert werden.
- emSize
- Double
Der Schriftgrad für das Em-Maß des Texts, bereitgestellt in geräteunabhängigen Einheiten (1/96. Zoll pro Einheit).
- foreground
- Brush
Der Pinsel, der zum Zeichnen der einzelnen Glyphen verwendet wird.
- pixelsPerDip
- Double
Der Pixel pro Dichte unabhängige Pixelwert, der dem Skalierungsfaktor entspricht. Wenn beispielsweise der DPI-Wert eines Bildschirms 120 (oder 1,25 ist, da 120/96 = 1,25) gezeichnet wird, wird 1,25 Pixel pro dichteunabhängiges Pixel gezeichnet. DIP ist die Maßeinheit, die von WPF verwendet wird, um von der Geräteauflösung und DPIs unabhängig zu sein.
Gilt für:
FormattedText(String, CultureInfo, FlowDirection, Typeface, Double, Brush, NumberSubstitution)
Achtung
Use the PixelsPerDip override
Initialisiert eine neue Instanz der FormattedText Klasse mit dem angegebenen Text, der Kultur, der Flussrichtung, der Schriftart, dem Schriftgrad, dem Pinsel und dem Nummernersetzungsverhalten.
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)
Parameter
- textToFormat
- String
Der anzuzeigende Text.
- culture
- CultureInfo
Die spezifische Kultur des Texts.
- flowDirection
- FlowDirection
Die Richtung, in der der Text gelesen wird.
- typeface
- Typeface
Die Schriftfamilie, Stärke, Formatvorlage und Dehnen des Texts sollte formatiert werden.
- emSize
- Double
Der Schriftgrad für das Em-Maß des Texts, bereitgestellt in geräteunabhängigen Einheiten (1/96. Zoll pro Einheit).
- foreground
- Brush
Der Pinsel, der zum Zeichnen der einzelnen Glyphen verwendet wird.
- numberSubstitution
- NumberSubstitution
Das Zahlenersetzungsverhalten, das auf den Text angewendet werden soll.
- Attribute
Gilt für:
FormattedText(String, CultureInfo, FlowDirection, Typeface, Double, Brush, NumberSubstitution, Double)
Initialisiert eine neue Instanz der FormattedText Klasse mit dem angegebenen Text, der Kultur, der Flussrichtung, der Schriftart, dem Schriftgrad, dem Vordergrundpinsel, dem Nummernersetzungsverhalten und dem PixelsPerDip-Wert.
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)
Parameter
- textToFormat
- String
Der anzuzeigende Text.
- culture
- CultureInfo
Die spezifische Kultur des Texts.
- flowDirection
- FlowDirection
Die Richtung, in der der Text gelesen wird.
- typeface
- Typeface
Die Schriftfamilie, Stärke, Formatvorlage und Dehnen des Texts sollte formatiert werden.
- emSize
- Double
Der Schriftgrad für das Em-Maß des Texts, bereitgestellt in geräteunabhängigen Einheiten (1/96. Zoll pro Einheit).
- foreground
- Brush
Der Pinsel, der zum Zeichnen der einzelnen Glyphen verwendet wird.
- numberSubstitution
- NumberSubstitution
Gibt an, wie Zahlen im Text angezeigt werden, basierend auf NumberSubstitution. Dieser Wert kann null sein.
- pixelsPerDip
- Double
Der Pixel pro Dichte unabhängige Pixelwert, der dem Skalierungsfaktor entspricht. Wenn beispielsweise der DPI-Wert eines Bildschirms 120 (oder 1,25 ist, da 120/96 = 1,25) gezeichnet wird, wird 1,25 Pixel pro dichteunabhängiges Pixel gezeichnet. DIP ist die Maßeinheit, die von WPF verwendet wird, um von der Geräteauflösung und DPIs unabhängig zu sein.
Gilt für:
FormattedText(String, CultureInfo, FlowDirection, Typeface, Double, Brush, NumberSubstitution, TextFormattingMode)
Achtung
Use the PixelsPerDip override
Initialisiert eine neue Instanz der FormattedText Klasse mit dem angegebenen Text, kultur, Flussrichtung, Schriftart, Schriftgrad, Pinsel, Zahlenersetzungsverhalten und Textformatierungsmodus.
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)
Parameter
- textToFormat
- String
Der anzuzeigende Text.
- culture
- CultureInfo
Die spezifische Kultur des Texts.
- flowDirection
- FlowDirection
Die Richtung, in der der Text gelesen wird.
- typeface
- Typeface
Die Schriftfamilie, Stärke, Formatvorlage und Dehnen des Texts sollte formatiert werden.
- emSize
- Double
Der Schriftgrad für das Em-Maß des Texts, bereitgestellt in geräteunabhängigen Einheiten (1/96. Zoll pro Einheit).
- foreground
- Brush
Der Pinsel, der zum Zeichnen der einzelnen Glyphen verwendet wird.
- numberSubstitution
- NumberSubstitution
Das Zahlenersetzungsverhalten, das auf den Text angewendet werden soll.
- textFormattingMode
- TextFormattingMode
Der TextFormattingMode auf den Text angewendet werden soll.
- Attribute
Gilt für:
FormattedText(String, CultureInfo, FlowDirection, Typeface, Double, Brush, NumberSubstitution, TextFormattingMode, Double)
Initialisiert eine neue Instanz der FormattedText Klasse mit dem angegebenen Text, der Kultur, der Flussrichtung, der Schriftart, dem Schriftgrad, dem Vordergrundpinsel, dem Nummernersetzungsverhalten und dem PixelsPerDip-Wert.
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)
Parameter
- textToFormat
- String
Der anzuzeigende Text.
- culture
- CultureInfo
Die spezifische Kultur des Texts.
- flowDirection
- FlowDirection
Die Richtung, in der der Text gelesen wird.
- typeface
- Typeface
Die Schriftfamilie, Stärke, Formatvorlage und Dehnen des Texts sollte formatiert werden.
- emSize
- Double
Der Schriftgrad für das Em-Maß des Texts, bereitgestellt in geräteunabhängigen Einheiten (1/96. Zoll pro Einheit).
- foreground
- Brush
er pinsel, um die einzelnen Glyphen zu zeichnen.
- numberSubstitution
- NumberSubstitution
Gibt an, wie Zahlen im Text angezeigt werden, basierend auf NumberSubstitution. Dieser Wert kann null sein.
- textFormattingMode
- TextFormattingMode
Der Formatierungsmodus, der sich darauf auswirkt, wie WPF Text anzeigt.
- pixelsPerDip
- Double
Der Pixel pro Dichte unabhängige Pixelwert, der dem Skalierungsfaktor entspricht. Wenn beispielsweise der DPI-Wert eines Bildschirms 120 (oder 1,25 ist, da 120/96 = 1,25) gezeichnet wird, wird 1,25 Pixel pro dichteunabhängiges Pixel gezeichnet. DIP ist die Maßeinheit, die von WPF verwendet wird, um von der Geräteauflösung und DPIs unabhängig zu sein.