ScrollIntoView() public method

public ScrollIntoView ( bool alignToTop ) : void
alignToTop bool
return void
示例#1
0
        //---------------------------------------------------------------------------
        // Wrapper for TextPatternRange.ScrollIntoView Method
        //---------------------------------------------------------------------------
        internal void Range_ScrollIntoView(TextPatternRange callingRange, bool alignToTop, Type expectedException, CheckType checkType)
        {
            string call = "TextPatternRange.ScrollIntoView(" + alignToTop + ")";
            Comment("---Calling " + call);

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

            try
            {
                callingRange.ScrollIntoView(alignToTop);
            }
            catch (Exception actualException)
            {
                if (Library.IsCriticalException(actualException))
                    throw;

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