C# Класс 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.

Наследование: Smrf.AppLib.SaveImageFileDialog
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
GetFilter ( ) : String
SaveObject ( Object oObject, String sFileName ) : void
ToWpsUnits ( Int32 iHeightOrWidth ) : Double

Описание методов

AssertValid() публичный Метод

public AssertValid ( ) : void
Результат void

GetFilter() защищенный Метод

protected GetFilter ( ) : String
Результат String

SaveGraphImageFileDialog() публичный Метод

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. ///
Результат System

SaveObject() защищенный Метод

protected SaveObject ( Object oObject, String sFileName ) : void
oObject Object
sFileName String
Результат void

ShowDialogAndSaveGraphImage() публичный Метод

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
Результат DialogResult

ToWpsUnits() защищенный Метод

protected ToWpsUnits ( Int32 iHeightOrWidth ) : Double
iHeightOrWidth System.Int32
Результат Double