C# Class Smrf.NodeXL.ExcelTemplate.GraphImporter

Imports edges and vertices from a graph to the edge and vertex worksheets.
This class is typically used when an external file is imported into a NodeXL workbook. The caller should first read the file into a NodeXL graph using one of the graph adapter classes, then call the method in this class to import the edges and vertices from the graph into a NodeXL workbook.
Inheritance: Object
Afficher le fichier Open project: 2014-sed-team3/term-project Class Usage Examples

Méthodes publiques

Méthode Description
GetImportedFileDescription ( String fileType, String fileName ) : String
GetImportedGraphMLFileDescription ( String graphMLFileName, IGraph graph ) : String
ImportGraph ( IGraph sourceGraph, String edgeAttributes, String vertexAttributes, System.Boolean clearTablesFirst, Microsoft destinationNodeXLWorkbook ) : void
UpdateGraphHistoryAfterImport ( Microsoft destinationNodeXLWorkbook, String importDescription, String suggestedFileNameNoExtension ) : void
UpdateGraphHistoryAfterImportWithoutPermissionCheck ( Microsoft destinationNodeXLWorkbook, String importDescription, String suggestedFileNameNoExtension, PerWorkbookSettings perWorkbookSettings ) : void

Private Methods

Méthode Description
CleanUpAttributeValue ( Object value ) : Object
GetAttributeColumn ( ListObject oTable, String sAttribute, ListColumn &oAttributeColumn, Range &oAttributeColumnData ) : void
ImportEdges ( IGraph oSourceGraph, String asEdgeAttributes, ListObject oEdgeTable, Range oVertex1NameColumnData, Range oVertex2NameColumnData, System.Boolean bAppendToTable ) : void
ImportVertexAttributes ( IGraph oSourceGraph, String asVertexAttributes, Int32>.Dictionary oVertexDictionary, ListObject oVertexTable ) : void
ImportVertices ( IGraph oSourceGraph, String asVertexAttributes, ListObject oVertexTable, Range oVertexNameColumnData, Range oVisibilityColumnData ) : void
SetRangeValues ( Range oUpperLeftCornerMarker, Object aoValues, System.Boolean bConvertUrlsToHyperlinks ) : void

Method Details

GetImportedFileDescription() public static méthode

public static GetImportedFileDescription ( String fileType, String fileName ) : String
fileType String
fileName String
Résultat String

GetImportedGraphMLFileDescription() public static méthode

public static GetImportedGraphMLFileDescription ( String graphMLFileName, IGraph graph ) : String
graphMLFileName String
graph IGraph
Résultat String

ImportGraph() public static méthode

public static ImportGraph ( IGraph sourceGraph, String edgeAttributes, String vertexAttributes, System.Boolean clearTablesFirst, Microsoft destinationNodeXLWorkbook ) : void
sourceGraph IGraph
edgeAttributes String
vertexAttributes String
clearTablesFirst System.Boolean
destinationNodeXLWorkbook Microsoft
Résultat void

UpdateGraphHistoryAfterImport() public static méthode

public static UpdateGraphHistoryAfterImport ( Microsoft destinationNodeXLWorkbook, String importDescription, String suggestedFileNameNoExtension ) : void
destinationNodeXLWorkbook Microsoft
importDescription String
suggestedFileNameNoExtension String
Résultat void

UpdateGraphHistoryAfterImportWithoutPermissionCheck() public static méthode

public static UpdateGraphHistoryAfterImportWithoutPermissionCheck ( Microsoft destinationNodeXLWorkbook, String importDescription, String suggestedFileNameNoExtension, PerWorkbookSettings perWorkbookSettings ) : void
destinationNodeXLWorkbook Microsoft
importDescription String
suggestedFileNameNoExtension String
perWorkbookSettings PerWorkbookSettings
Résultat void