private GraphicsPath GetTabPageBorder(int index)
{
GraphicsPath path = new GraphicsPath();
Rectangle pageBounds = this.GetPageBounds(index);
Rectangle tabBounds = this._StyleProvider.GetTabRect(index);
this._StyleProvider.AddTabBorder(path, tabBounds);
this.AddPageBorder(path, pageBounds, tabBounds);
path.CloseFigure();
return path;
}