Share via


_OlkLabel.UseHeaderColor Property

Returns or sets a Boolean (bool in C#) that indicates whether the label control should use the foreground color to match the current Windows XP or Windows Vista theme. Read/write.

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

Syntax

'Declaration
<DispIdAttribute()> _
Property UseHeaderColor As Boolean
    Get
    Set
'Usage
Dim instance As _OlkLabel
Dim value As Boolean

value = instance.UseHeaderColor

instance.UseHeaderColor = value
[DispIdAttribute()]
bool UseHeaderColor { get; set; }

Property Value

Type: System.Boolean

Remarks

This property is intended for label controls in a message form displayed in the Reading Pane and in the Inspector. If the property is True, then the label should use the foreground color that matches the current Windows theme. If the property is False, then the label should use the foreground color indicated by the ForeColor property.

See Also

Reference

_OlkLabel Interface

_OlkLabel Members

Microsoft.Office.Interop.Outlook Namespace