コード例 #1
0
        private GraphicsPath GetTabOutline(Tab tab, bool transformed, bool rtlTransform)
        {
            DockState dockState = tab.Content.DockHandler.DockState;
            Rectangle rectTab   = GetTabRectangle(tab, transformed);

            if (rtlTransform)
            {
                rectTab = RtlTransform(rectTab, dockState);
            }
            bool upTab = dockState == DockState.DockLeftAutoHide || dockState == DockState.DockBottomAutoHide;

            DrawHelper.GetRoundedCornerTab(GraphicsPath, rectTab, upTab);

            return(GraphicsPath);
        }