ModelMetadata.Watermark Property


Gets or sets a value that can be used as a watermark.

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


public virtual string Watermark { get; set; }
property String^ Watermark {
    virtual String^ get();
    virtual void set(String^ value);
abstract Watermark : string with get, set
override Watermark : string with get, set
Public Overridable Property Watermark As String

Property Value

Type: System.String

The watermark.


Use this property for text that might be displayed as a watermark when a model value is rendered and can be edited, such as in a text box. The default value is null.

See Also

ModelMetadata Class
System.Web.Mvc Namespace

Return to top