CharacterCasing Property

TextBox.CharacterCasing Property


Gets or sets how characters are cased when they are manually entered into the text box.

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

public CharacterCasing CharacterCasing { get; set; }

Property Value

Type: System.Windows.Controls.CharacterCasing

One of the CharacterCasing values that specifies how manually entered characters are cased. The default is CharacterCasing.Normal.

This property does not affect characters that are added programmatically.

Identifier field


Metadata properties set to true


The following example shows how to use the CharacterCasing property to convert all manually entered characters to uppercase in a text box.

.NET Framework
Available since 3.0
Return to top
© 2015 Microsoft