예제 #1
0
        int IVsTaskItem3.GetColumnValue(int iField, out uint ptvtType, out uint ptvfFlags, out object pvarValue, out string pbstrAccessibilityName)
        {
            __VSTASKVALUETYPE  type  = __VSTASKVALUETYPE.TVT_NULL;
            __VSTASKVALUEFLAGS flags = 0;

            pvarValue = null;
            pbstrAccessibilityName = string.Empty;

            // gets the column description:
            if (GetColumnValue(iField, ref type, ref flags, ref pvarValue, ref pbstrAccessibilityName))
            {
                ptvtType = (uint)type;
            }
            else
            {
                ptvtType  = (uint)__VSTASKVALUETYPE.TVT_NULL;
                pvarValue = null;
                pbstrAccessibilityName = string.Empty;
            }

            // post-process flags:
            ptvfFlags = (uint)flags;
            if (Ignored)
            {
                ptvfFlags |= (uint)__VSTASKVALUEFLAGS.TVF_STRIKETHROUGH;
            }

            return(VSConstants.S_OK);
        }
예제 #2
0
 /// <summary>
 /// Gets the column description.
 /// This method should return 'true' if valid info has been set to fields, otherwise 'false' will send no data to VS IDE TaskList provider.
 /// </summary>
 protected virtual bool GetColumnValue(int fieldIndex, ref __VSTASKVALUETYPE type, ref __VSTASKVALUEFLAGS flags, ref object value, ref string accessibilityName)
 {
     return(false);
 }