Beispiel #1
0
        private Rectangle GetTabRectangle_Document(int index)
        {
            Rectangle           rectTabStrip = ClientRectangle;
            DockPaneTabFromBase tab          = (DockPaneTabFromBase)Tabs[index];

            return(new Rectangle(tab.TabX, rectTabStrip.Y + DocumentTabGapTop, tab.TabWidth, rectTabStrip.Height - DocumentTabGapTop));
        }
Beispiel #2
0
        private Rectangle GetTabRectangle_ToolWindow(int index)
        {
            Rectangle rectTabStrip = ClientRectangle;

            DockPaneTabFromBase tab = (DockPaneTabFromBase)(Tabs[index]);

            return(new Rectangle(tab.TabX, rectTabStrip.Y, tab.TabWidth, rectTabStrip.Height));
        }