C# Class WatermarkTextBox, code

A textbox that supports a watermak hint. Based on: https://stackoverflow.com/a/15232752
Inheritance: TextBox
Afficher le fichier Open project: shendongnian/code Class Usage Examples

Méthodes publiques

Méthode Description
ApplyWatermark ( ) : void

Applywatermak immediately

ApplyWatermark ( string newText ) : void

Apply watermak to the textbox.

RemoveWatermak ( ) : void

Remove watermark from the textbox

WatermarkTextBox ( )

Create a new TextBox that supports watermak hint

Method Details

ApplyWatermark() public méthode

Applywatermak immediately
public ApplyWatermark ( ) : void
Résultat void

ApplyWatermark() public méthode

Apply watermak to the textbox.
public ApplyWatermark ( string newText ) : void
newText string Text to apply
Résultat void

RemoveWatermak() public méthode

Remove watermark from the textbox
public RemoveWatermak ( ) : void
Résultat void

WatermarkTextBox() public méthode

Create a new TextBox that supports watermak hint
public WatermarkTextBox ( )