ValidationSummary::ForeColor Property

 

Gets or sets the foreground color of the control.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public:
property Color ForeColor {
	virtual Color get() override;
	virtual void set(Color value) override;
}

Property Value

Type: System.Drawing::Color

A System.Drawing::Color that represents the foreground color of the control. The default is Red.

Use this property to specify the color in which error messages from validation controls are displayed.

The following code example demonstrates how to use the ForeColor property to specify that the validation summary is displayed with blue text.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: