private Rectangle GetTabRectangle_Document(int index)
{
Rectangle rectTabStrip = this.TabStripRectangle;
var tab = (TabVS2005)Tabs[index];
var rect = new Rectangle
{
X = tab.TabX,
Width = tab.TabWidth,
Height = rectTabStrip.Height - DocumentTabGapTop
};
if (DockPane.DockPanel.DocumentTabStripLocation == DocumentTabStripLocation.Bottom)
rect.Y = rectTabStrip.Y + DocumentStripGapBottom;
else
rect.Y = rectTabStrip.Y + DocumentTabGapTop;
return rect;
}