int (int height, int thickness) { if (height > thickness) { if (myAlignment == Alignment.CENTER) return (height - thickness) / 2; if (myAlignment == Alignment.BOTTOM) return height - thickness; } return 0; }