次の方法で共有


AccessText.TextWrapping プロパティ

定義

AccessText要素のテキスト コンテンツが行ボックスをオーバーフローした場合にラップされるかどうかを取得または設定します。

public:
 property System::Windows::TextWrapping TextWrapping { System::Windows::TextWrapping get(); void set(System::Windows::TextWrapping value); };
public System.Windows.TextWrapping TextWrapping { get; set; }
member this.TextWrapping : System.Windows.TextWrapping with get, set
Public Property TextWrapping As TextWrapping

プロパティ値

使用する折り返し動作。 既定値は、NoWrap です。

次の例では、AccessTextTextWrapping プロパティを使用して複数行ラベルを作成します。

<TextBox Name="textBox1" Width="50" Height="20"/>
<Label Width="200" HorizontalAlignment="Left"
       Target="{Binding ElementName=textBox1}">
  <AccessText TextWrapping="WrapWithOverflow">
    _Another long piece of text that requires text wrapping
    goes here.
  </AccessText>
</Label>

注釈

依存関係プロパティ情報

品目 価値
識別子フィールド TextWrappingProperty
に設定されたメタデータ プロパティ true AffectsMeasureAffectsRender

適用対象

こちらもご覧ください