HtmlDocument::ForeColor Property

 

Gets or sets the text color for the document.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

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

Property Value

Type: System.Drawing::Color

The color of the text in the document.

The ColorColor type in the .NET Framework supports an Alpha value, but the HTML DOM does not. Therefore, Alpha will have no effect when assigned to this property.

.NET Framework
Available since 2.0
Return to top
Show: