Function getMinMaxXYWithBoundText