ShowDialogAndSaveGraphImage
(
NodeXLControl nodeXLControl,
Int32 width,
Int32 height,
String headerText,
String footerText,
System.Drawing.Font headerFooterFont,
IEnumerable<LegendControlBase> legendControls
)
{
Debug.Assert(nodeXLControl != null);
Debug.Assert(width > 0);
Debug.Assert(height > 0);
Debug.Assert(headerFooterFont != null);
Debug.Assert(legendControls != null);
AssertValid();
// Let the base class do most of the work. The actual saving will be
// done by SaveObject() in this class. Wrap the information required
// by SaveObject().
GraphImageInfo oGraphImageInfo = new GraphImageInfo();
oGraphImageInfo.NodeXLControl = nodeXLControl;
oGraphImageInfo.Width = width;
oGraphImageInfo.Height = height;
oGraphImageInfo.HeaderText = headerText;
oGraphImageInfo.FooterText = footerText;
oGraphImageInfo.HeaderFooterFont = headerFooterFont;
oGraphImageInfo.LegendControls = legendControls;
return ( ShowDialogAndSaveObject(oGraphImageInfo) );
}