ModelMetadata.Watermark Property

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets or sets watermark text for a text box.

Namespace:   System.Web.ModelBinding
Assembly:  System.Web (in System.Web.dll)

public virtual string Watermark { get; set; }

Property Value

Type: System.String

The watermark text.

This property contains text to display as a watermark when a property is rendered for editing in a text box. The default value is null.

.NET Framework
Available since 4.5
Return to top