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
Afficher le fichier Open project: 2014-sed-team3/term-project Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

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

Method Details

AssertValid() public méthode

public AssertValid ( ) : void
Résultat void

GetFilter() protected méthode

protected GetFilter ( ) : String
Résultat String

SaveGraphImageFileDialog() public méthode

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. ///
Résultat System

SaveObject() protected méthode

protected SaveObject ( Object oObject, String sFileName ) : void
oObject Object
sFileName String
Résultat void

ShowDialogAndSaveGraphImage() public méthode

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
Résultat DialogResult

ToWpsUnits() protected méthode

protected ToWpsUnits ( Int32 iHeightOrWidth ) : Double
iHeightOrWidth System.Int32
Résultat Double