//---------------------------------------------------------------------------
// Wrapper for TextPatternRange.GetBoundingRectangles Method
//---------------------------------------------------------------------------
internal void Range_GetBoundingRectangles(TextPatternRange callingRange, ref Rect[] boundRects, Type expectedException, CheckType checkType)
{
string call = "TextPatternRange.GetBoundingRectangles()";
if (callingRange == null)
throw new ArgumentNullException(call + " requires non-NULL TextPatterncallingRange");
try
{
boundRects = callingRange.GetBoundingRectangles();
Comment("---Called " + call + ", returning array size = " + boundRects.Length);
}
catch (Exception actualException)
{
if (Library.IsCriticalException(actualException))
throw;
Comment("---Calling " + call); // Exception was raised, so log it here...
TestException(expectedException, actualException, call, checkType);
return;
}
TestNoExceptionQuiet(expectedException, call, checkType);
}