次の方法で共有


_Category.Color Property

Returns or sets an OlCategoryColor constant that indicates the color used by the Category object. Read/write.

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

Syntax

'Declaration
<DispIdAttribute()> _
Property Color As OlCategoryColor
    Get
    Set
'Usage
Dim instance As _Category
Dim value As OlCategoryColor

value = instance.Color

instance.Color = value
[DispIdAttribute()]
OlCategoryColor Color { get; set; }

Property Value

Type: Microsoft.Office.Interop.Outlook.OlCategoryColor

Remarks

You can share the same color for multiple categories, by specifying the same constant that represents the category color in the OlCategoryColor enumeration for those Category objects.

See Also

Reference

_Category Interface

_Category Members

Microsoft.Office.Interop.Outlook Namespace

Other Resources

How to: Enumerate and Add Categories