Exemplo n.º 1
0
        public int SetSelection(int iAnchorLine, int iAnchorCol, int iEndLine, int iEndCol)
        {
            TextSpan original = new TextSpan();

            original.iStartLine  = iAnchorLine;
            original.iStartIndex = iAnchorCol;
            original.iEndLine    = iEndLine;
            original.iEndIndex   = iEndCol;
            TextSpan[] converted = new TextSpan[1];
            ErrorHandler.ThrowOnFailure(bufferCoordinator.MapSecondaryToPrimarySpan(original, converted));
            return(intellisenseHost.SetContextSelection(converted[0].iStartLine, converted[0].iStartIndex, converted[0].iEndLine, converted[0].iEndIndex));
        }