C# Class Smrf.NodeXL.ExcelTemplate.SaveGraphImageFileDialog

Represents a dialog box for saving an image of a graph to a file.
Call ShowDialogAndSaveImage() to allow the user to save an image in a format of his choice to a location of his choice.

This class extends the SaveImageFileDialog base class by adding an option to save the graph to an XPS file.

Inheritance: Smrf.AppLib.SaveImageFileDialog
ファイルを表示 Open project: 2014-sed-team3/term-project Class Usage Examples

Public Methods

Method Description
AssertValid ( ) : void
SaveGraphImageFileDialog ( String intialDirectory, String intialFileName ) : System

Initializes a new instance of the class.

ShowDialogAndSaveGraphImage ( NodeXLControl nodeXLControl, Int32 width, Int32 height, String headerText, String footerText, System headerFooterFont, IEnumerable legendControls ) : DialogResult

Protected Methods

Method Description
GetFilter ( ) : String
SaveObject ( Object oObject, String sFileName ) : void
ToWpsUnits ( Int32 iHeightOrWidth ) : Double

Method Details

AssertValid() public method

public AssertValid ( ) : void
return void

GetFilter() protected method

protected GetFilter ( ) : String
return String

SaveGraphImageFileDialog() public method

Initializes a new instance of the class.
public SaveGraphImageFileDialog ( String intialDirectory, String intialFileName ) : System
intialDirectory String /// Initial directory the dialog will display. Use an empty string to let /// the dialog select an initial directory. ///
intialFileName String /// Initial file name. Can be a complete path, a path without an /// extension, a file name, or a file name without an extension. ///
return System

SaveObject() protected method

protected SaveObject ( Object oObject, String sFileName ) : void
oObject Object
sFileName String
return void

ShowDialogAndSaveGraphImage() public method

public ShowDialogAndSaveGraphImage ( NodeXLControl nodeXLControl, Int32 width, Int32 height, String headerText, String footerText, System headerFooterFont, IEnumerable legendControls ) : DialogResult
nodeXLControl Smrf.NodeXL.Visualization.Wpf.NodeXLControl
width System.Int32
height System.Int32
headerText String
footerText String
headerFooterFont System
legendControls IEnumerable
return DialogResult

ToWpsUnits() protected method

protected ToWpsUnits ( Int32 iHeightOrWidth ) : Double
iHeightOrWidth System.Int32
return Double