TextBoxBase.HorizontalScrollBarVisibility Property

 

Gets or sets a value that indicates whether a horizontal scroll bar is shown.

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

Public Property HorizontalScrollBarVisibility As ScrollBarVisibility

Property Value

Type: System.Windows.Controls.ScrollBarVisibility

A value that is defined by the ScrollBarVisibility enumeration.

The default value is Hidden.

The following example demonstrates how to set the value of the HorizontalScrollBarVisibility property by using Extensible Application Markup Language (XAML).

<TextBox TextWrapping="Wrap"
         Name="myTextBox" 
         Width="500" 
         Height="200" 
         AcceptsReturn="True"
         IsUndoEnabled="True"
         VerticalScrollBarVisibility="Visible"
         HorizontalScrollBarVisibility="Auto" 
         Margin="25">

.NET Framework
Available since 3.0
Return to top
Show: