FormattedText コンストラクター

定義

FormattedText クラスの新しいインスタンスを初期化します。

オーバーロード

名前 説明
FormattedText(String, CultureInfo, FlowDirection, Typeface, Double, Brush)
古い.

指定したテキスト、カルチャ、フローの方向、書体、フォント サイズ、ブラシを使用して、 FormattedText クラスの新しいインスタンスを初期化します。

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

指定したテキスト、カルチャ、フロー方向、書体、フォント サイズ、前景ブラシ、pixelsPerDip 値を使用して、 FormattedText クラスの新しいインスタンスを初期化します。

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

指定したテキスト、カルチャ、フローの方向、書体、フォント サイズ、ブラシ、および番号の置換動作を使用して、 FormattedText クラスの新しいインスタンスを初期化します。

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

指定したテキスト、カルチャ、フロー方向、書体、フォント サイズ、前景ブラシ、数値置換動作、pixelsPerDip 値を使用して、 FormattedText クラスの新しいインスタンスを初期化します。

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

指定したテキスト、カルチャ、フローの方向、書体、フォント サイズ、ブラシ、番号置換動作、およびテキスト書式設定モードを使用して、 FormattedText クラスの新しいインスタンスを初期化します。

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

指定したテキスト、カルチャ、フロー方向、書体、フォント サイズ、前景ブラシ、数値置換動作、pixelsPerDip 値を使用して、 FormattedText クラスの新しいインスタンスを初期化します。

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

注意事項

Use the PixelsPerDip override

指定したテキスト、カルチャ、フローの方向、書体、フォント サイズ、ブラシを使用して、 FormattedText クラスの新しいインスタンスを初期化します。

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)

パラメーター

textToFormat
String

表示するテキスト。

culture
CultureInfo

テキストの特定のカルチャ。

flowDirection
FlowDirection

テキストが読み取られた方向。

typeface
Typeface

テキストのフォント ファミリ、太さ、スタイル、およびストレッチを書式設定する必要があります。

emSize
Double

テキストの書式を設定するフォント サイズ。

foreground
Brush

各グリフの描画に使用するブラシ。

属性

適用対象

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

指定したテキスト、カルチャ、フロー方向、書体、フォント サイズ、前景ブラシ、pixelsPerDip 値を使用して、 FormattedText クラスの新しいインスタンスを初期化します。

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)

パラメーター

textToFormat
String

表示するテキスト。

culture
CultureInfo

テキストの特定のカルチャ。

flowDirection
FlowDirection

テキストが読み取られた方向。

typeface
Typeface

テキストのフォント ファミリ、太さ、スタイル、およびストレッチを書式設定する必要があります。

emSize
Double

デバイスに依存しない単位 (単位あたり 1/96 インチ) で提供される、テキストの em メジャーのフォント サイズ。

foreground
Brush

各グリフの描画に使用するブラシ。

pixelsPerDip
Double

ピクセル単位の密度に依存しないピクセル値。これはスケール ファクターに相当します。 たとえば、画面の DPI が 120 (または 120/96 = 1.25 であるため 1.25) の場合、密度に依存しないピクセルあたり 1.25 ピクセルが描画されます。 DIP は、デバイスの解像度と DPI に依存しないWPFで使用される測定単位です。

適用対象

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

注意事項

Use the PixelsPerDip override

指定したテキスト、カルチャ、フローの方向、書体、フォント サイズ、ブラシ、および番号の置換動作を使用して、 FormattedText クラスの新しいインスタンスを初期化します。

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)

パラメーター

textToFormat
String

表示するテキスト。

culture
CultureInfo

テキストの特定のカルチャ。

flowDirection
FlowDirection

テキストが読み取られた方向。

typeface
Typeface

テキストのフォント ファミリ、太さ、スタイル、およびストレッチを書式設定する必要があります。

emSize
Double

デバイスに依存しない単位 (単位あたり 1/96 インチ) で提供される、テキストの em メジャーのフォント サイズ。

foreground
Brush

各グリフの描画に使用するブラシ。

numberSubstitution
NumberSubstitution

テキストに適用する数値置換動作。

属性

適用対象

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

指定したテキスト、カルチャ、フロー方向、書体、フォント サイズ、前景ブラシ、数値置換動作、pixelsPerDip 値を使用して、 FormattedText クラスの新しいインスタンスを初期化します。

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)

パラメーター

textToFormat
String

表示するテキスト。

culture
CultureInfo

テキストの特定のカルチャ。

flowDirection
FlowDirection

テキストが読み取られた方向。

typeface
Typeface

テキストのフォント ファミリ、太さ、スタイル、およびストレッチを書式設定する必要があります。

emSize
Double

デバイスに依存しない単位 (単位あたり 1/96 インチ) で提供される、テキストの em メジャーのフォント サイズ。

foreground
Brush

各グリフの描画に使用するブラシ。

numberSubstitution
NumberSubstitution

NumberSubstitutionに基づいて、テキスト内の数値を表示する方法を指定します。 この値は、null の場合もあります。

pixelsPerDip
Double

ピクセル単位の密度に依存しないピクセル値。これはスケール ファクターに相当します。 たとえば、画面の DPI が 120 (または 120/96 = 1.25 であるため 1.25) の場合、密度に依存しないピクセルあたり 1.25 ピクセルが描画されます。 DIP は、デバイスの解像度と DPI に依存しないWPFで使用される測定単位です。

適用対象

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

注意事項

Use the PixelsPerDip override

指定したテキスト、カルチャ、フローの方向、書体、フォント サイズ、ブラシ、番号置換動作、およびテキスト書式設定モードを使用して、 FormattedText クラスの新しいインスタンスを初期化します。

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)

パラメーター

textToFormat
String

表示するテキスト。

culture
CultureInfo

テキストの特定のカルチャ。

flowDirection
FlowDirection

テキストが読み取られた方向。

typeface
Typeface

テキストのフォント ファミリ、太さ、スタイル、およびストレッチを書式設定する必要があります。

emSize
Double

デバイスに依存しない単位 (単位あたり 1/96 インチ) で提供される、テキストの em メジャーのフォント サイズ。

foreground
Brush

各グリフの描画に使用するブラシ。

numberSubstitution
NumberSubstitution

テキストに適用する数値置換動作。

textFormattingMode
TextFormattingMode

テキストに適用する TextFormattingMode

属性

適用対象

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

指定したテキスト、カルチャ、フロー方向、書体、フォント サイズ、前景ブラシ、数値置換動作、pixelsPerDip 値を使用して、 FormattedText クラスの新しいインスタンスを初期化します。

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)

パラメーター

textToFormat
String

表示するテキスト。

culture
CultureInfo

テキストの特定のカルチャ。

flowDirection
FlowDirection

テキストが読み取られた方向。

typeface
Typeface

テキストのフォント ファミリ、太さ、スタイル、およびストレッチを書式設定する必要があります。

emSize
Double

デバイスに依存しない単位 (単位あたり 1/96 インチ) で提供される、テキストの em メジャーのフォント サイズ。

foreground
Brush

彼は各グリフを描画するために使用ブラシ。

numberSubstitution
NumberSubstitution

NumberSubstitutionに基づいて、テキスト内の数値を表示する方法を指定します。 この値は、null の場合もあります。

textFormattingMode
TextFormattingMode

テキストの表示方法に影響する書式設定モードWPF。

pixelsPerDip
Double

ピクセル単位の密度に依存しないピクセル値。これはスケール ファクターに相当します。 たとえば、画面の DPI が 120 (または 120/96 = 1.25 であるため 1.25) の場合、密度に依存しないピクセルあたり 1.25 ピクセルが描画されます。 DIP は、デバイスの解像度と DPI に依存しないWPFで使用される測定単位です。

適用対象