ComponentFactory.Krypton.Toolkit.RenderStandard.AdjustOneNoteTab C# (CSharp) Method

AdjustOneNoteTab() private static method

private static AdjustOneNoteTab ( Rectangle rect, VisualOrientation orientation ) : Rectangle
rect System.Drawing.Rectangle
orientation VisualOrientation
return System.Drawing.Rectangle
        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;
        }
RenderStandard