Click here to Skip to main content
15,897,891 members
Articles / Desktop Programming / Windows Forms

Task Manager

Rate me:
Please Sign up or sign in to vote.
4.90/5 (105 votes)
1 Jan 2010CPOL4 min read 205K   21K   229  
Manage your daily tasks and To-Do list using some exciting features of Windows 7.
//Copyright (c) Microsoft Corporation.  All rights reserved.

//Copyright (c) Microsoft Corporation.  All rights reserved.

using System;
using Microsoft.WindowsAPICodePack.Shell;

namespace Microsoft.WindowsAPICodePack.Shell.PropertySystem
{
    /// <summary>
    /// Defines the properties used by a Shell Property.
    /// </summary>
    public interface IShellProperty
    {
        /// <summary>
        /// Gets the property key that identifies this property.
        /// </summary>
        PropertyKey PropertyKey
        {
            get;
        }

        /// <summary>
        /// Gets a formatted, Unicode string representation of a property value.
        /// </summary>
        /// <param name="format">One or more <c>PropertyDescriptionFormat</c> flags 
        /// chosen to produce the desired display format.</param>
        /// <returns>The formatted value as a string.</returns>
        string FormatForDisplay(PropertyDescriptionFormat format);

        /// <summary>
        /// Get the property description object.
        /// </summary>
        ShellPropertyDescription Description
        {
            get;
        }

        /// <summary>
        /// Gets the case-sensitive name of the property as it is known to the system, 
        /// regardless of its localized name.
        /// </summary>
        string CanonicalName
        {
            get;
        }

        /// <summary>
        /// Gets the value for this property using the generic Object type.
        /// </summary>
        /// <remarks>
        /// To obtain a specific type for this value, use the more strongly-typed 
        /// <c>Property&lt;T&gt;</c> class.
        /// You can only set a value for this type using the <c>Property&lt;T&gt;</c> 
        /// class.
        /// </remarks>
        object ValueAsObject
        {
            get;
        }

        /// <summary>
        /// Gets the <c>System.Type</c> value for this property.
        /// </summary>
        Type ValueType
        {
            get;
        }

        /// <summary>
        /// Gets the image reference path and icon index associated with a property value. 
        /// This API is only available in Windows 7.
        /// </summary>
        IconReference IconReference 
        { 
            get; 
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Chief Technology Officer
Pakistan Pakistan
Passion and positive dedication is essential part of success. I believe on hardworking and sharing knowledge with others. I always try to be a better than I am and think positive for positive result.

My Blogs

My Linked-In Profile

Comments and Discussions