Udostępnij za pośrednictwem


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)

Syntax

'Declaration
Public Overridable Property Watermark As String
    Get
    Set
public virtual string Watermark { get; set; }
public:
virtual property String^ Watermark {
    String^ get ();
    void set (String^ value);
}

Property Value

Type: System.String
The watermark.

Remarks

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 reference (Nothing in Visual Basic).

See Also

Reference

ModelMetadata Class

System.Web.Mvc Namespace