private GraphicsPath GetTabOutline(TabVS2005 tab, bool transformed, bool rtlTransform) { DockState dockState = tab.Content.DockHandler.DockState; Rectangle rectTab = this.GetTabRectangle(tab, transformed); if(rtlTransform){ rectTab = this.RtlTransform(rectTab, dockState); } bool upTab = (dockState == DockState.DockLeftAutoHide || dockState == DockState.DockBottomAutoHide); DrawHelper.GetRoundedCornerTab(GraphicsPath, rectTab, upTab); return GraphicsPath; }
private GraphicsPath GetTabOutline_ToolWindow(Tab tab, bool rtlTransform, bool toScreen) { Rectangle rect = this.GetTabRectangle(this.Tabs.IndexOf(tab)); if (rtlTransform) { rect = DrawHelper.RtlTransform(this, rect); } if (toScreen) { rect = this.RectangleToScreen(rect); } DrawHelper.GetRoundedCornerTab(GraphicsPath, rect, false); return(GraphicsPath); }