FormattedText Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy FormattedText.

Przeciążenia

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

Inicjuje FormattedText nowe wystąpienie 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)
Nieaktualne.

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

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

Inicjuje FormattedText nowe wystąpienie 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)
Nieaktualne.

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

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

Inicjuje FormattedText nowe wystąpienie 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)

Przestroga

Use the PixelsPerDip override

Inicjuje FormattedText nowe wystąpienie 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

Określona 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

Pędzel używany do malowania każdego glifu.

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

Określona 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 em tekstu podany w jednostkach niezależnych od urządzenia (1/96 cala na jednostkę).

foreground
Brush

Pędzel używany do malowania każdego glifu.

pixelsPerDip
Double

Wartość Pikseli na gęstość niezależna od pikseli, 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 niezależny piksel gęstości jest rysowany. DIP to jednostka miary używana przez WPF, która jest niezależna od rozdzielczości urządzeń i interfejsów DPI.

Dotyczy

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

Przestroga

Use the PixelsPerDip override

Inicjuje FormattedText nowe wystąpienie klasy z określonym tekstem, kulturą, kierunkiem przepływu, czcionką, rozmiarem czcionki, pędzlem i zachowaniem 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

Określona 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 em tekstu podany w jednostkach niezależnych od urządzenia (1/96 cala na jednostkę).

foreground
Brush

Pędzel używany do malowania każdego glifu.

numberSubstitution
NumberSubstitution

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

Atrybuty

Dotyczy

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

Inicjuje FormattedText nowe wystąpienie 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

Określona 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 em tekstu podany w jednostkach niezależnych od urządzenia (1/96 cala na jednostkę).

foreground
Brush

Pędzel używany do malowania każdego glifu.

numberSubstitution
NumberSubstitution

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

pixelsPerDip
Double

Wartość Pikseli na gęstość niezależna od pikseli, 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 niezależny piksel gęstości jest rysowany. DIP to jednostka miary używana przez WPF, która jest niezależna od rozdzielczości urządzeń i interfejsów DPI.

Dotyczy

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

Przestroga

Use the PixelsPerDip override

Inicjuje FormattedText nowe wystąpienie klasy z określonym tekstem, kulturą, kierunkiem przepływu, czcionką, rozmiarem czcionki, pędzlem, zachowaniem podstawienia liczb i formatowaniem 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

Określona 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 em tekstu podany w jednostkach niezależnych od urządzenia (1/96 cala na jednostkę).

foreground
Brush

Pędzel używany do malowania każdego glifu.

numberSubstitution
NumberSubstitution

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

textFormattingMode
TextFormattingMode

Element TextFormattingMode do zastosowania do tekstu.

Atrybuty

Dotyczy

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

Inicjuje FormattedText nowe wystąpienie 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

Określona 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 em tekstu podany w jednostkach niezależnych od urządzenia (1/96 cala na jednostkę).

foreground
Brush

pędzlem malował każdy glif.

numberSubstitution
NumberSubstitution

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

textFormattingMode
TextFormattingMode

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

pixelsPerDip
Double

Wartość Pikseli na gęstość niezależna od pikseli, 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 niezależny piksel gęstości jest rysowany. DIP to jednostka miary używana przez WPF, która jest niezależna od rozdzielczości urządzeń i interfejsów DPI.

Dotyczy