ARCed.UI.VS2005AutoHideStrip.DrawTabStrip C# (CSharp) Method

DrawTabStrip() private method

private DrawTabStrip ( Graphics g, DockState dockState ) : void
g System.Drawing.Graphics
dockState DockState
return void
        private void DrawTabStrip(Graphics g, DockState dockState)
        {
            Rectangle rectTabStrip = this.GetLogicalTabStripRectangle(dockState);

            if (rectTabStrip.IsEmpty)
                return;

            Matrix matrixIdentity = g.Transform;
            if (dockState == DockState.DockLeftAutoHide || dockState == DockState.DockRightAutoHide)
            {
                var matrixRotated = new Matrix();
                matrixRotated.RotateAt(90, new PointF(rectTabStrip.X + (float)rectTabStrip.Height / 2,
                    rectTabStrip.Y + (float)rectTabStrip.Height / 2));
                g.Transform = matrixRotated;
            }

            foreach (Pane pane in GetPanes(dockState))
            {
                foreach (TabVS2005 tab in pane.AutoHideTabs)
                    this.DrawTab(g, tab);
            }
            g.Transform = matrixIdentity;
        }

Same methods

VS2005AutoHideStrip::DrawTabStrip ( Graphics g ) : void