Check if the pad has a hole.
If the pad has no hole it returns 0. If the pad has a non-metallized hole it returns 1. If the pad has a metallized hole it returns 2.