FormattedText.SetFontStretch メソッド

定義

FormattedText オブジェクトのフォント ストレッチ値を設定します。

オーバーロード

名前 説明
SetFontStretch(FontStretch)

FormattedText オブジェクト内の文字セット全体のフォント ストレッチ値を設定します。

SetFontStretch(FontStretch, Int32, Int32)

FormattedText オブジェクト内の指定した文字のサブセットのフォント ストレッチ値を設定します。

SetFontStretch(FontStretch)

FormattedText オブジェクト内の文字セット全体のフォント ストレッチ値を設定します。

public:
 void SetFontStretch(System::Windows::FontStretch stretch);
public void SetFontStretch(System.Windows.FontStretch stretch);
member this.SetFontStretch : System.Windows.FontStretch -> unit
Public Sub SetFontStretch (stretch As FontStretch)

パラメーター

stretch
FontStretch

テキストの書式設定に使用する必要な FontStretch 値。

注釈

フォントのストレッチ値は、画面上でフォントが引き伸ばされる度合いを指します。 FontStretch では、 FontStretches クラスの静的値を使用して FontStretch を初期化し、型 FontStretchパラメーターを入力できるように、型変換動作をサポートしています。 FromOpenTypeStretchを呼び出して、適切に初期化されたFontStretchを作成することもできます。

このメソッドは、テキスト文字列全体のフォント ストレッチ値を設定します。 テキスト文字列のサブセットのフォント ストレッチ値を設定するには、 SetFontStretch(FontStretch, Int32, Int32) メソッドを使用します。

適用対象

SetFontStretch(FontStretch, Int32, Int32)

FormattedText オブジェクト内の指定した文字のサブセットのフォント ストレッチ値を設定します。

public:
 void SetFontStretch(System::Windows::FontStretch stretch, int startIndex, int count);
public void SetFontStretch(System.Windows.FontStretch stretch, int startIndex, int count);
member this.SetFontStretch : System.Windows.FontStretch * int * int -> unit
Public Sub SetFontStretch (stretch As FontStretch, startIndex As Integer, count As Integer)

パラメーター

stretch
FontStretch

テキストの書式設定に使用する必要な FontStretch 値。

startIndex
Int32

フォント ストレッチを適用する最初の文字の開始インデックス。

count
Int32

フォントストレッチを適用する文字数。

注釈

フォントのストレッチ値は、画面上でフォントが引き伸ばされる度合いを指します。

FontStretch では、 FontStretches クラスの静的値を使用して FontStretch を初期化し、型 FontStretchパラメーターを入力できるように、型変換動作をサポートしています。 FromOpenTypeStretchを呼び出して、適切に初期化されたFontStretchを作成することもできます。

テキスト文字列全体のフォント ストレッチ値を設定するには、 SetFontStretch(FontStretch) メソッドを使用します。

適用対象