GetRoundedCornerTab() публичный статический Метод

public static GetRoundedCornerTab ( GraphicsPath graphicsPath, Rectangle rect, bool upCorner ) : GraphicsPath
graphicsPath System.Drawing.Drawing2D.GraphicsPath
rect System.Drawing.Rectangle
upCorner bool
Результат System.Drawing.Drawing2D.GraphicsPath
Пример #1
0
 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;
 }
Пример #2
0
        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);
        }