Example #1
0
        int IVsFindTarget.GetCapabilities(bool[] pfImage, uint[] pgrfOptions)
        {
            IVsFindTarget vsFindTarget = GetView(sourceFrame) as IVsFindTarget;

            if (vsFindTarget != null)
            {
                return(vsFindTarget.GetCapabilities(pfImage, pgrfOptions));
            }

            if (pfImage != null && pfImage.Length > 0)
            {
                pfImage[0] = true;
            }

            if (pgrfOptions != null && pgrfOptions.Length > 0)
            {
                pgrfOptions[0]  = (uint)__VSFINDOPTIONS.FR_ActionMask;
                pgrfOptions[0] |= (uint)__VSFINDOPTIONS.FR_SyntaxMask;
                pgrfOptions[0] |= (uint)__VSFINDOPTIONS.FR_CommonOptions;
                pgrfOptions[0] |= (uint)__VSFINDOPTIONS.FR_Selection;
                pgrfOptions[0] |= (uint)__VSFINDOPTIONS.FR_Backwards;
            }

            return(VSConstants.S_OK);
        }
Example #2
0
 public int GetCapabilities(bool[] pfImage, uint[] pgrfOptions)
 {
     if (_findTarget != null && pgrfOptions != null && pgrfOptions.Length > 0)
     {
         return(_findTarget.GetCapabilities(pfImage, pgrfOptions));
     }
     return(VSConstants.E_NOTIMPL);
 }