FormattedText Constructores

Definición

Inicializa una nueva instancia de la clase FormattedText.

Sobrecargas

Nombre Description
FormattedText(String, CultureInfo, FlowDirection, Typeface, Double, Brush)
Obsoletos.

Inicializa una nueva instancia de la FormattedText clase con el texto, la referencia cultural, la dirección del flujo, el tipo de letra, el tamaño de fuente y el pincel especificados.

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

Inicializa una nueva instancia de la FormattedText clase con el texto, la referencia cultural, la dirección del flujo, el tipo de letra, el tamaño de fuente, el pincel de primer plano y el valor pixelsPerDip especificados.

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

Inicializa una nueva instancia de la FormattedText clase con el texto, la referencia cultural, la dirección del flujo, el tipo de letra, el tamaño de fuente, el pincel y el comportamiento de sustitución de números especificados.

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

Inicializa una nueva instancia de la FormattedText clase con el texto, la referencia cultural, la dirección del flujo, el tipo de letra, el tamaño de fuente, el pincel de primer plano, el comportamiento de sustitución de números y el valor pixelPerDip especificados.

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

Inicializa una nueva instancia de la FormattedText clase con el texto, la referencia cultural, la dirección del flujo, el tipo de letra, el tamaño de fuente, el pincel, el comportamiento de sustitución de números y el modo de formato de texto especificados.

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

Inicializa una nueva instancia de la FormattedText clase con el texto, la referencia cultural, la dirección del flujo, el tipo de letra, el tamaño de fuente, el pincel de primer plano, el comportamiento de sustitución de números y el valor pixelPerDip especificados.

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

Precaución

Use the PixelsPerDip override

Inicializa una nueva instancia de la FormattedText clase con el texto, la referencia cultural, la dirección del flujo, el tipo de letra, el tamaño de fuente y el 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

Texto que se va a mostrar.

culture
CultureInfo

Referencia cultural específica del texto.

flowDirection
FlowDirection

Dirección en la que se lee el texto.

typeface
Typeface

La familia de fuentes, el peso, el estilo y el ajuste del texto deben tener formato.

emSize
Double

Tamaño de fuente en el que se debe dar formato al texto.

foreground
Brush

Pincel usado para pintar cada glifo.

Atributos

Se aplica a

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

Inicializa una nueva instancia de la FormattedText clase con el texto, la referencia cultural, la dirección del flujo, el tipo de letra, el tamaño de fuente, el pincel de primer plano y el 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

Texto que se va a mostrar.

culture
CultureInfo

Referencia cultural específica del texto.

flowDirection
FlowDirection

Dirección en la que se lee el texto.

typeface
Typeface

La familia de fuentes, el peso, el estilo y el ajuste del texto deben tener formato.

emSize
Double

Tamaño de fuente de la medida em del texto, proporcionado en unidades independientes del dispositivo (1/96 pulgadas por unidad).

foreground
Brush

Pincel usado para pintar cada glifo.

pixelsPerDip
Double

Valor píxeles por píxel independiente de densidad, que es el equivalente del factor de escala. Por ejemplo, si el PPP de una pantalla es 120 (o 1,25 porque 120/96 = 1,25), se dibuja 1,25 píxeles por píxel independiente de densidad. DIP es la unidad de medida utilizada por WPF para ser independiente de la resolución de dispositivos y los DPIs.

Se aplica a

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

Precaución

Use the PixelsPerDip override

Inicializa una nueva instancia de la FormattedText clase con el texto, la referencia cultural, la dirección del flujo, el tipo de letra, el tamaño de fuente, el pincel y el comportamiento de sustitución de números 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

Texto que se va a mostrar.

culture
CultureInfo

Referencia cultural específica del texto.

flowDirection
FlowDirection

Dirección en la que se lee el texto.

typeface
Typeface

La familia de fuentes, el peso, el estilo y el ajuste del texto deben tener formato.

emSize
Double

Tamaño de fuente de la medida em del texto, proporcionado en unidades independientes del dispositivo (1/96 pulgadas por unidad).

foreground
Brush

Pincel usado para pintar cada glifo.

numberSubstitution
NumberSubstitution

Comportamiento de sustitución de números que se va a aplicar al texto.

Atributos

Se aplica a

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

Inicializa una nueva instancia de la FormattedText clase con el texto, la referencia cultural, la dirección del flujo, el tipo de letra, el tamaño de fuente, el pincel de primer plano, el comportamiento de sustitución de números y el valor pixelPerDip 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

Texto que se va a mostrar.

culture
CultureInfo

Referencia cultural específica del texto.

flowDirection
FlowDirection

Dirección en la que se lee el texto.

typeface
Typeface

La familia de fuentes, el peso, el estilo y el ajuste del texto deben tener formato.

emSize
Double

Tamaño de fuente de la medida em del texto, proporcionado en unidades independientes del dispositivo (1/96 pulgadas por unidad).

foreground
Brush

Pincel usado para pintar cada glifo.

numberSubstitution
NumberSubstitution

Especifica cómo se muestran los números del texto, en función de NumberSubstitution. Este valor puede ser null.

pixelsPerDip
Double

Valor píxeles por píxel independiente de densidad, que es el equivalente del factor de escala. Por ejemplo, si el PPP de una pantalla es 120 (o 1,25 porque 120/96 = 1,25), se dibuja 1,25 píxeles por píxel independiente de densidad. DIP es la unidad de medida utilizada por WPF para ser independiente de la resolución de dispositivos y los DPIs.

Se aplica a

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

Precaución

Use the PixelsPerDip override

Inicializa una nueva instancia de la FormattedText clase con el texto, la referencia cultural, la dirección del flujo, el tipo de letra, el tamaño de fuente, el pincel, el comportamiento de sustitución de números y el modo de formato 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

Texto que se va a mostrar.

culture
CultureInfo

Referencia cultural específica del texto.

flowDirection
FlowDirection

Dirección en la que se lee el texto.

typeface
Typeface

La familia de fuentes, el peso, el estilo y el ajuste del texto deben tener formato.

emSize
Double

Tamaño de fuente de la medida em del texto, proporcionado en unidades independientes del dispositivo (1/96 pulgadas por unidad).

foreground
Brush

Pincel usado para pintar cada glifo.

numberSubstitution
NumberSubstitution

Comportamiento de sustitución de números que se va a aplicar al texto.

textFormattingMode
TextFormattingMode

que TextFormattingMode se va a aplicar al texto.

Atributos

Se aplica a

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

Inicializa una nueva instancia de la FormattedText clase con el texto, la referencia cultural, la dirección del flujo, el tipo de letra, el tamaño de fuente, el pincel de primer plano, el comportamiento de sustitución de números y el valor pixelPerDip 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

Texto que se va a mostrar.

culture
CultureInfo

Referencia cultural específica del texto.

flowDirection
FlowDirection

Dirección en la que se lee el texto.

typeface
Typeface

La familia de fuentes, el peso, el estilo y el ajuste del texto deben tener formato.

emSize
Double

Tamaño de fuente de la medida em del texto, proporcionado en unidades independientes del dispositivo (1/96 pulgadas por unidad).

foreground
Brush

pincel usó para pintar cada glifo.

numberSubstitution
NumberSubstitution

Especifica cómo se muestran los números del texto, en función de NumberSubstitution. Este valor puede ser null.

textFormattingMode
TextFormattingMode

Modo de formato que afecta a cómo WPF muestra texto.

pixelsPerDip
Double

Valor píxeles por píxel independiente de densidad, que es el equivalente del factor de escala. Por ejemplo, si el PPP de una pantalla es 120 (o 1,25 porque 120/96 = 1,25), se dibuja 1,25 píxeles por píxel independiente de densidad. DIP es la unidad de medida utilizada por WPF para ser independiente de la resolución de dispositivos y los DPIs.

Se aplica a