public GetTabBackPath ( RenderContext context, Rectangle rect, IPaletteBorder palette, VisualOrientation orientation, PaletteState state, TabBorderStyle tabBorderStyle ) : GraphicsPath | ||
context | RenderContext | Rendering context. |
rect | Rectangle | Target rectangle. |
palette | IPaletteBorder | Palette used for drawing. |
orientation | VisualOrientation | Visual orientation of the border. |
state | PaletteState | State associated with rendering. |
tabBorderStyle | TabBorderStyle | Style of tab border. |
리턴 | GraphicsPath |
public override GraphicsPath GetTabBackPath(RenderContext context,
Rectangle rect,
IPaletteBorder palette,
VisualOrientation orientation,
PaletteState state,
TabBorderStyle tabBorderStyle)
{
Debug.Assert(context != null);
Debug.Assert(palette != null);
// Validate parameter references
if (context == null) throw new ArgumentNullException("context");
if (palette == null) throw new ArgumentNullException("palette");
Debug.Assert(context.Control != null);
Debug.Assert(!context.Control.IsDisposed);
// Use helper to create a border path in middle of the pen
return CreateTabBorderBackPath(context.Control.RightToLeft, state, false, rect,
palette.GetBorderWidth(state), tabBorderStyle, orientation,
(palette.GetBorderGraphicsHint(state) == PaletteGraphicsHint.AntiAlias));
}