예제 #1
0
        private object CompareEndpoints(object arg)
        {
            object[] args = (object[])arg;
            TextPatternRangeEndpoint endpoint       = (TextPatternRangeEndpoint)args[0];
            ITextRangeProvider       targetRange    = (ITextRangeProvider)args[1];
            TextPatternRangeEndpoint targetEndpoint = (TextPatternRangeEndpoint)args[2];

            return(_iface.CompareEndpoints(endpoint, TextRangeProviderWrapper.UnwrapArgument(targetRange), targetEndpoint));
        }
예제 #2
0
        private object MoveEndpointByRange(object arg)
        {
            object[] args = (object[])arg;
            TextPatternRangeEndpoint endpoint       = (TextPatternRangeEndpoint)args[0];
            ITextRangeProvider       targetRange    = (ITextRangeProvider)args[1];
            TextPatternRangeEndpoint targetEndpoint = (TextPatternRangeEndpoint)args[2];

            _iface.MoveEndpointByRange(endpoint, TextRangeProviderWrapper.UnwrapArgument(targetRange), targetEndpoint);
            return(null);
        }
예제 #3
0
        private object Compare(object arg)
        {
            ITextRangeProvider range = (ITextRangeProvider)arg;

            return(_iface.Compare(TextRangeProviderWrapper.UnwrapArgument(range)));
        }