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);
        }