private static Rectangle AdjustOneNoteTab(Rectangle rect,
VisualOrientation orientation)
{
// Reduce the height of the tab
switch (orientation)
{
case VisualOrientation.Top:
rect.Height -= _spacingTabOneNoteTPI;
rect.Y += _spacingTabOneNoteTPI;
break;
case VisualOrientation.Bottom:
rect.Height -= _spacingTabOneNoteTPI;
break;
case VisualOrientation.Left:
rect.Width -= _spacingTabOneNoteTPI;
rect.X += _spacingTabOneNoteTPI;
break;
case VisualOrientation.Right:
rect.Width -= _spacingTabOneNoteTPI;
break;
}
return rect;
}