Nevron .NET Vision
NDataSourceImporter Class Members
Properties  Methods  Events


The following tables list the members exposed by NDataSourceImporter.

Public Properties
 NameDescription
Public PropertyDocumentGets/sets the document in which the data source is imported. By default the shapes are imported in the active layer of the specified document.  
Public PropertyEdgeShapesFactoryGets/sets factory which must create shapes for the generated edges. If this property left unassigned the importer will generate NRoutableConnector edges.  
Public PropertyEdgeShapesNameGets/sets the name of the edge shapes, which are created from the edge shapes factory.  
Public PropertyEdgeStyleSheetNameGets/sets the name of the style sheet to apply to impoterd edges  
Public PropertyImportingDetermines whether the data source importer is currently importing shapes  
Public PropertyLayoutGets/sets the layout, which must be applied to the imported shapes. If set to null the data source importer will not layout the imported shapes.  
Public PropertyTransactionNameGets/sets the name of the transaction, which will be recorded in the document as a result of the import operation  
Public PropertyVertexShapesFactoryGets/sets factory which must create shapes for the generated vertices. This property must be set to a valid instance before you call the Import method.  
Public PropertyVertexShapesNameGets/sets the name of the vertex shapes, which are created from the vertex shapes factory. This property must be set to a valid shape name for the chosen VertexShapesFactory.  
Public PropertyVertexStyleSheetNameGets/sets the name of the style sheet to apply to imported vertices  
Top
Public Methods
 NameDescription
Public MethodGetImportedEdgeShapesGets a list of the imported edge shapes. Call this method only while the data source importer is in importing state.  
Public MethodGetImportedVertexShapesGets a list of the imported vertex shapes. Call this method only while the data source importer is in importing state.  
Public MethodImportMust override to perform the import  
Top
Protected Methods
 NameDescription
Protected MethodCreateLayoutContextCreates a layout context for the imported shapes layout  
Protected MethodDoLayoutPerforms the layout specified by the Layout property to the currently imported shapes  
Protected MethodImportEdgeImports an edge shape, which was created for the specified data record and raises the EdgeImported event  
Protected MethodImportVertexImports the vertex shape, which was created for the specified data record and raises the VertexImported event.  
Protected MethodNewEdgeCreates a new edge  
Protected MethodNewVertexCreates a new vertex shape  
Protected MethodOnImportEndedCalled when the import has ended  
Protected MethodOnImportStartedCalled when the import has started  
Protected MethodResetStateResets any importer state maintained during the import operation  
Protected MethodValidateImportValidates the import operation. Throws an exception if the import cannot be performed  
Top
Public Events
 NameDescription
Public EventEdgeImportedRaised when an edge shape has been generated by the importer  
Public EventImportFailedRaised when the import has ended unsuccessfully  
Public EventImportStartedRaised when the import has started  
Public EventImportSucceededRaised when the import has ended successfully  
Public EventVertexImportedRaised when a vertex shape has been generated by the importer  
Top
See Also

Reference

NDataSourceImporter Class
Nevron.Diagram.DataImport Namespace

 

 


©2021. Nevron Software LLC.

Send Feedback