FormattedText Construtores
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Inicializa uma nova instância da classe FormattedText.
Sobrecargas
| Nome | Description |
|---|---|
| FormattedText(String, CultureInfo, FlowDirection, Typeface, Double, Brush) |
Obsoleto.
Inicializa uma nova instância da FormattedText classe com o texto, a cultura, a direção do fluxo, a face de tipo, o tamanho da fonte e o pincel especificados. |
| FormattedText(String, CultureInfo, FlowDirection, Typeface, Double, Brush, Double) |
Inicializa uma nova instância da FormattedText classe com o texto, cultura, direção de fluxo, typeface, tamanho da fonte, pincel de primeiro plano e valor pixelsPerDip especificados. |
| FormattedText(String, CultureInfo, FlowDirection, Typeface, Double, Brush, NumberSubstitution) |
Obsoleto.
Inicializa uma nova instância da FormattedText classe com o texto, cultura, direção de fluxo, typeface, tamanho da fonte, pincel e comportamento de substituição de número especificados. |
| FormattedText(String, CultureInfo, FlowDirection, Typeface, Double, Brush, NumberSubstitution, Double) |
Inicializa uma nova instância da FormattedText classe com o texto, cultura, direção de fluxo, typeface, tamanho da fonte, pincel de primeiro plano, comportamento de substituição de número e valor pixelsPerDip especificados. |
| FormattedText(String, CultureInfo, FlowDirection, Typeface, Double, Brush, NumberSubstitution, TextFormattingMode) |
Obsoleto.
Inicializa uma nova instância da FormattedText classe com o texto, cultura, direção de fluxo, typeface, tamanho da fonte, pincel, comportamento de substituição de número e modo de formatação de texto especificados. |
| FormattedText(String, CultureInfo, FlowDirection, Typeface, Double, Brush, NumberSubstitution, TextFormattingMode, Double) |
Inicializa uma nova instância da FormattedText classe com o texto, cultura, direção de fluxo, typeface, tamanho da fonte, pincel de primeiro plano, comportamento de substituição de número e valor pixelsPerDip especificados. |
FormattedText(String, CultureInfo, FlowDirection, Typeface, Double, Brush)
Cuidado
Use the PixelsPerDip override
Inicializa uma nova instância da FormattedText classe com o texto, a cultura, a direção do fluxo, a face de tipo, o tamanho da fonte e o pincel especificados.
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)
Parâmetros
- textToFormat
- String
O texto a ser exibido.
- culture
- CultureInfo
A cultura específica do texto.
- flowDirection
- FlowDirection
A direção em que o texto é lido.
- typeface
- Typeface
A família de fontes, o peso, o estilo e o alongamento do texto devem ser formatados.
- emSize
- Double
O tamanho da fonte em que o texto deve ser formatado.
- foreground
- Brush
O pincel usado para pintar cada glifo.
- Atributos
Aplica-se a
FormattedText(String, CultureInfo, FlowDirection, Typeface, Double, Brush, Double)
Inicializa uma nova instância da FormattedText classe com o texto, cultura, direção de fluxo, typeface, tamanho da fonte, pincel de primeiro plano e valor pixelsPerDip especificados.
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)
Parâmetros
- textToFormat
- String
O texto a ser exibido.
- culture
- CultureInfo
A cultura específica do texto.
- flowDirection
- FlowDirection
A direção em que o texto é lido.
- typeface
- Typeface
A família de fontes, o peso, o estilo e o alongamento do texto devem ser formatados.
- emSize
- Double
O tamanho da fonte da medida em do texto, fornecido em unidades independentes do dispositivo (1/96 polegada por unidade).
- foreground
- Brush
O pincel usado para pintar cada glifo.
- pixelsPerDip
- Double
O valor pixels por pixel independente de densidade, que é o equivalente do fator de escala. Por exemplo, se o DPI de uma tela for 120 (ou 1,25 porque 120/96 = 1,25) , 1,25 pixel por pixel independente de densidade será desenhado. DIP é a unidade de medida usada por WPF ser independente de resolução de dispositivo e DPIs.
Aplica-se a
FormattedText(String, CultureInfo, FlowDirection, Typeface, Double, Brush, NumberSubstitution)
Cuidado
Use the PixelsPerDip override
Inicializa uma nova instância da FormattedText classe com o texto, cultura, direção de fluxo, typeface, tamanho da fonte, pincel e comportamento de substituição de número especificados.
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)
Parâmetros
- textToFormat
- String
O texto a ser exibido.
- culture
- CultureInfo
A cultura específica do texto.
- flowDirection
- FlowDirection
A direção em que o texto é lido.
- typeface
- Typeface
A família de fontes, o peso, o estilo e o alongamento do texto devem ser formatados.
- emSize
- Double
O tamanho da fonte da medida em do texto, fornecido em unidades independentes do dispositivo (1/96 polegada por unidade).
- foreground
- Brush
O pincel usado para pintar cada glifo.
- numberSubstitution
- NumberSubstitution
O comportamento de substituição de número a ser aplicado ao texto.
- Atributos
Aplica-se a
FormattedText(String, CultureInfo, FlowDirection, Typeface, Double, Brush, NumberSubstitution, Double)
Inicializa uma nova instância da FormattedText classe com o texto, cultura, direção de fluxo, typeface, tamanho da fonte, pincel de primeiro plano, comportamento de substituição de número e valor pixelsPerDip especificados.
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)
Parâmetros
- textToFormat
- String
O texto a ser exibido.
- culture
- CultureInfo
A cultura específica do texto.
- flowDirection
- FlowDirection
A direção em que o texto é lido.
- typeface
- Typeface
A família de fontes, o peso, o estilo e o alongamento do texto devem ser formatados.
- emSize
- Double
O tamanho da fonte da medida em do texto, fornecido em unidades independentes do dispositivo (1/96 polegada por unidade).
- foreground
- Brush
O pincel usado para pintar cada glifo.
- numberSubstitution
- NumberSubstitution
Especifica como os números no texto são exibidos, com base em NumberSubstitution. Este valor pode ser null.
- pixelsPerDip
- Double
O valor pixels por pixel independente de densidade, que é o equivalente do fator de escala. Por exemplo, se o DPI de uma tela for 120 (ou 1,25 porque 120/96 = 1,25) , 1,25 pixel por pixel independente de densidade será desenhado. DIP é a unidade de medida usada por WPF ser independente de resolução de dispositivo e DPIs.
Aplica-se a
FormattedText(String, CultureInfo, FlowDirection, Typeface, Double, Brush, NumberSubstitution, TextFormattingMode)
Cuidado
Use the PixelsPerDip override
Inicializa uma nova instância da FormattedText classe com o texto, cultura, direção de fluxo, typeface, tamanho da fonte, pincel, comportamento de substituição de número e modo de formatação de texto especificados.
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)
Parâmetros
- textToFormat
- String
O texto a ser exibido.
- culture
- CultureInfo
A cultura específica do texto.
- flowDirection
- FlowDirection
A direção em que o texto é lido.
- typeface
- Typeface
A família de fontes, o peso, o estilo e o alongamento do texto devem ser formatados.
- emSize
- Double
O tamanho da fonte da medida em do texto, fornecido em unidades independentes do dispositivo (1/96 polegada por unidade).
- foreground
- Brush
O pincel usado para pintar cada glifo.
- numberSubstitution
- NumberSubstitution
O comportamento de substituição de número a ser aplicado ao texto.
- textFormattingMode
- TextFormattingMode
A TextFormattingMode aplicação ao texto.
- Atributos
Aplica-se a
FormattedText(String, CultureInfo, FlowDirection, Typeface, Double, Brush, NumberSubstitution, TextFormattingMode, Double)
Inicializa uma nova instância da FormattedText classe com o texto, cultura, direção de fluxo, typeface, tamanho da fonte, pincel de primeiro plano, comportamento de substituição de número e valor pixelsPerDip especificados.
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)
Parâmetros
- textToFormat
- String
O texto a ser exibido.
- culture
- CultureInfo
A cultura específica do texto.
- flowDirection
- FlowDirection
A direção em que o texto é lido.
- typeface
- Typeface
A família de fontes, o peso, o estilo e o alongamento do texto devem ser formatados.
- emSize
- Double
O tamanho da fonte da medida em do texto, fornecido em unidades independentes do dispositivo (1/96 polegada por unidade).
- foreground
- Brush
ele pincel usado para pintar o glifo cada.
- numberSubstitution
- NumberSubstitution
Especifica como os números no texto são exibidos, com base em NumberSubstitution. Este valor pode ser null.
- textFormattingMode
- TextFormattingMode
O modo de formatação que afeta a forma como WPF exibe texto.
- pixelsPerDip
- Double
O valor pixels por pixel independente de densidade, que é o equivalente do fator de escala. Por exemplo, se o DPI de uma tela for 120 (ou 1,25 porque 120/96 = 1,25) , 1,25 pixel por pixel independente de densidade será desenhado. DIP é a unidade de medida usada por WPF ser independente de resolução de dispositivo e DPIs.