protected static DrawIconHelper ( |
||
context | Rendering context. | |
icon | Icon to be drawn. | |
iconRect | Destination rectangle. | |
orientation | VisualOrientation | Visual orientation. |
return | void |
protected static void DrawIconHelper(ViewContext context,
Icon icon,
Rectangle iconRect,
VisualOrientation orientation)
{
Debug.Assert(context != null);
// Validate reference parameter
if (context == null) throw new ArgumentNullException("context");
try
{
// Finally, just draw the icon and let the transforms do the rest
context.Graphics.DrawIcon(icon, iconRect);
}
finally
{
}
}