This documentation is archived and is not being maintained.

AccessText.TextWrapping Property

Gets or sets whether the textual content of an AccessText element is wrapped if it overflows the line box.

Namespace: System.Windows.Controls
Assembly: PresentationFramework (in presentationframework.dll)
XML Namespace:

public TextWrapping TextWrapping { get; set; }
/** @property */
public TextWrapping get_TextWrapping ()

/** @property */
public void set_TextWrapping (TextWrapping value)

public function get TextWrapping () : TextWrapping

public function set TextWrapping (value : TextWrapping)

<object TextWrapping="TextWrapping" .../>

Property Value

The wrapping behavior to use. The default value is NoWrap.

Identifier field


Metadata properties set to true


The following example uses the TextWrapping property of AccessText to make a multiple-line label.

<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.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0