Gets or sets the foreground color of the control.
Syntax
Visual Basic (Declaration) | |
---|
<DispIdAttribute(-513)>
<SRDescriptionAttribute("The foreground color of this component, which is used to display text.")>
<SRCategoryAttribute("Appearance")>
Public Overridable Property ForeColor As Color |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As Medical3DControl
Dim value As Color
instance.ForeColor = value
value = instance.ForeColor |
C# | |
---|
[DispIdAttribute(-513)]
[SRDescriptionAttribute("The foreground color of this component, which is used to display text.")]
[SRCategoryAttribute("Appearance")]
public virtual Color ForeColor {get; set;} |
C++/CLI | |
---|
[DispIdAttribute(-513)]
[SRDescriptionAttribute("The foreground color of this component, which is used to display text.")]
[SRCategoryAttribute("Appearance")]
public:
virtual property Color ForeColor {
Color get();
void set ( Color value);
} |
Property Value
The foreground
System.Drawing.Color of the control. The default is the value of the
System.Windows.Forms.Control.DefaultForeColor property.
Requirements
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7
See Also