MoveEndpointByRange() public method

public MoveEndpointByRange ( TextPatternRangeEndpoint endpoint, TextPatternRange targetRange, TextPatternRangeEndpoint targetEndpoint ) : void
endpoint TextPatternRangeEndpoint
targetRange TextPatternRange
targetEndpoint TextPatternRangeEndpoint
return void
Ejemplo n.º 1
0
        //---------------------------------------------------------------------------
        // Wrapper for TextPatternRange.MoveEndpointByRange Method
        //---------------------------------------------------------------------------
        internal void Range_MoveEndpointByRange(TextPatternRange callingRange, TextPatternRangeEndpoint endPoint, TextPatternRange argumentRange, TextPatternRangeEndpoint targetEndPoint, Type expectedException, CheckType checkType)
        {
            string call = "TextPatternRange.MoveEndpointByRange(" + endPoint + ", " + argumentRange + ", " + targetEndPoint + ")";
            Comment("---Calling " + call);

            if (callingRange == null)
                throw new ArgumentNullException(call + " requires non-NULL TextPatterncallingRange");

            try
            {
                callingRange.MoveEndpointByRange(endPoint, argumentRange, targetEndPoint);
            }
            catch (Exception actualException)
            {
                if (Library.IsCriticalException(actualException))
                    throw;

                TestException(expectedException, actualException, call, checkType);
                return;
            }
            TestNoExceptionQuiet(expectedException, call, checkType);
        }