Język

FormattedText Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy FormattedText.

Przeciążenia

Nazwa Opis
FormattedText(String, CultureInfo, FlowDirection, Typeface, Double, Brush)
Przestarzałe.

Inicjuje nowe wystąpienie FormattedText klasy z określonym tekstem, kulturą, kierunkiem przepływu, czcionką, rozmiarem czcionki i pędzlem.

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

Inicjuje nowe wystąpienie FormattedText klasy z określonym tekstem, kulturą, kierunkiem przepływu, czcionką, rozmiarem czcionki, pędzlem pierwszego planu i wartością pixelPerDip.

FormattedText(String, CultureInfo, FlowDirection, Typeface, Double, Brush, NumberSubstitution)
Przestarzałe.

Inicjuje nowe wystąpienie FormattedText klasy o określonym zachowaniu tekstu, kultury, kierunku przepływu, kroju, rozmiaru czcionki, pędzla i podstawienia liczb.

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

Inicjuje nowe wystąpienie FormattedText klasy z określonym tekstem, kulturą, kierunkiem przepływu, czcionką, rozmiarem czcionki, pędzlem pierwszego planu, zachowaniem podstawienia liczb i wartością pixelPerDip.

FormattedText(String, CultureInfo, FlowDirection, Typeface, Double, Brush, NumberSubstitution, TextFormattingMode)
Przestarzałe.

Inicjuje nowe wystąpienie FormattedText klasy z określonym tekstem, kulturą, kierunkiem przepływu, czcionką, rozmiarem czcionki, pędzlem, zachowaniem podstawienia liczb i trybem formatowania tekstu.

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

Inicjuje nowe wystąpienie FormattedText klasy z określonym tekstem, kulturą, kierunkiem przepływu, czcionką, rozmiarem czcionki, pędzlem pierwszego planu, zachowaniem podstawienia liczb i wartością pixelPerDip.

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

Uwaga

Use the PixelsPerDip override

Inicjuje nowe wystąpienie FormattedText klasy z określonym tekstem, kulturą, kierunkiem przepływu, czcionką, rozmiarem czcionki i pędzlem.

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)

Parametry

textToFormat
String

Tekst do wyświetlenia.

culture
CultureInfo

Konkretna kultura tekstu.

flowDirection
FlowDirection

Kierunek odczytywania tekstu.

typeface
Typeface

Rodzina czcionek, waga, styl i rozciągnięcie tekstu powinny być sformatowane za pomocą polecenia .

emSize
Double

Rozmiar czcionki, na który powinien być sformatowany tekst.

foreground
Brush

Szczotka używana do malowania każdej glify.

Atrybuty

Dotyczy

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

Inicjuje nowe wystąpienie FormattedText klasy z określonym tekstem, kulturą, kierunkiem przepływu, czcionką, rozmiarem czcionki, pędzlem pierwszego planu i wartością pixelPerDip.

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)

Parametry

textToFormat
String

Tekst do wyświetlenia.

culture
CultureInfo

Konkretna kultura tekstu.

flowDirection
FlowDirection

Kierunek odczytywania tekstu.

typeface
Typeface

Rodzina czcionek, waga, styl i rozciągnięcie tekstu powinny być sformatowane za pomocą polecenia .

emSize
Double

Rozmiar czcionki miary tekstu podany w jednostkach niezależnych od urządzenia (1/96 cala na jednostkę).

foreground
Brush

Szczotka używana do malowania każdej glify.

pixelsPerDip
Double

Wartość Pixel Per Density Independent Pixel (Piksele na gęstość), która jest odpowiednikiem współczynnika skalowania. Na przykład, jeśli dpi ekranu wynosi 120 (lub 1,25, ponieważ 120/96 = 1,25) , 1,25 pikseli na gęstość niezależny piksel jest rysowany. DIP to jednostka miary używana przez WPF jako niezależna od rozpoznawania urządzeń i interfejsów DPI.

Dotyczy

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

Uwaga

Use the PixelsPerDip override

Inicjuje nowe wystąpienie FormattedText klasy o określonym zachowaniu tekstu, kultury, kierunku przepływu, kroju, rozmiaru czcionki, pędzla i podstawienia liczb.

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)

Parametry

textToFormat
String

Tekst do wyświetlenia.

culture
CultureInfo

Konkretna kultura tekstu.

flowDirection
FlowDirection

Kierunek odczytywania tekstu.

typeface
Typeface

Rodzina czcionek, waga, styl i rozciągnięcie tekstu powinny być sformatowane za pomocą polecenia .

emSize
Double

Rozmiar czcionki miary tekstu podany w jednostkach niezależnych od urządzenia (1/96 cala na jednostkę).

foreground
Brush

Szczotka używana do malowania każdej glify.

numberSubstitution
NumberSubstitution

Zachowanie podstawienia liczb, które ma być stosowane do tekstu.

Atrybuty

Dotyczy

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

Inicjuje nowe wystąpienie FormattedText klasy z określonym tekstem, kulturą, kierunkiem przepływu, czcionką, rozmiarem czcionki, pędzlem pierwszego planu, zachowaniem podstawienia liczb i wartością pixelPerDip.

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)

Parametry

textToFormat
String

Tekst do wyświetlenia.

culture
CultureInfo

Konkretna kultura tekstu.

flowDirection
FlowDirection

Kierunek odczytywania tekstu.

typeface
Typeface

Rodzina czcionek, waga, styl i rozciągnięcie tekstu powinny być sformatowane za pomocą polecenia .

emSize
Double

Rozmiar czcionki miary tekstu podany w jednostkach niezależnych od urządzenia (1/96 cala na jednostkę).

foreground
Brush

Szczotka używana do malowania każdej glify.

numberSubstitution
NumberSubstitution

Określa sposób wyświetlania liczb w tekście na NumberSubstitutionpodstawie elementu . Ta wartość może mieć wartość null.

pixelsPerDip
Double

Wartość Pixel Per Density Independent Pixel (Piksele na gęstość), która jest odpowiednikiem współczynnika skalowania. Na przykład, jeśli dpi ekranu wynosi 120 (lub 1,25, ponieważ 120/96 = 1,25) , 1,25 pikseli na gęstość niezależny piksel jest rysowany. DIP to jednostka miary używana przez WPF jako niezależna od rozpoznawania urządzeń i interfejsów DPI.

Dotyczy

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

Uwaga

Use the PixelsPerDip override

Inicjuje nowe wystąpienie FormattedText klasy z określonym tekstem, kulturą, kierunkiem przepływu, czcionką, rozmiarem czcionki, pędzlem, zachowaniem podstawienia liczb i trybem formatowania tekstu.

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)

Parametry

textToFormat
String

Tekst do wyświetlenia.

culture
CultureInfo

Konkretna kultura tekstu.

flowDirection
FlowDirection

Kierunek odczytywania tekstu.

typeface
Typeface

Rodzina czcionek, waga, styl i rozciągnięcie tekstu powinny być sformatowane za pomocą polecenia .

emSize
Double

Rozmiar czcionki miary tekstu podany w jednostkach niezależnych od urządzenia (1/96 cala na jednostkę).

foreground
Brush

Szczotka używana do malowania każdej glify.

numberSubstitution
NumberSubstitution

Zachowanie podstawienia liczb, które ma być stosowane do tekstu.

textFormattingMode
TextFormattingMode

Element TextFormattingMode , który ma być stosowany do tekstu.

Atrybuty

Dotyczy

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

Inicjuje nowe wystąpienie FormattedText klasy z określonym tekstem, kulturą, kierunkiem przepływu, czcionką, rozmiarem czcionki, pędzlem pierwszego planu, zachowaniem podstawienia liczb i wartością pixelPerDip.

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)

Parametry

textToFormat
String

Tekst do wyświetlenia.

culture
CultureInfo

Konkretna kultura tekstu.

flowDirection
FlowDirection

Kierunek odczytywania tekstu.

typeface
Typeface

Rodzina czcionek, waga, styl i rozciągnięcie tekstu powinny być sformatowane za pomocą polecenia .

emSize
Double

Rozmiar czcionki miary tekstu podany w jednostkach niezależnych od urządzenia (1/96 cala na jednostkę).

foreground
Brush

on szczotki używane do malowania każdej glify.

numberSubstitution
NumberSubstitution

Określa sposób wyświetlania liczb w tekście na NumberSubstitutionpodstawie elementu . Ta wartość może mieć wartość null.

textFormattingMode
TextFormattingMode

Tryb formatowania, który wpływa na sposób WPF wyświetlania tekstu.

pixelsPerDip
Double

Wartość Pixel Per Density Independent Pixel (Piksele na gęstość), która jest odpowiednikiem współczynnika skalowania. Na przykład, jeśli dpi ekranu wynosi 120 (lub 1,25, ponieważ 120/96 = 1,25) , 1,25 pikseli na gęstość niezależny piksel jest rysowany. DIP to jednostka miary używana przez WPF jako niezależna od rozpoznawania urządzeń i interfejsów DPI.

Dotyczy