Group: Forum Members
Last Active: 8 Years Ago
Posts: 8,
Visits: 6
|
Hello, Is possible to save and load to a file only the text shapes of a diagram? I tried to do with the filter option of the persistencymanager savetofile method, but I am not sure how to use it. Dim manager As New NPersistencyManager()Dim filtro As New NSerializationFilterDim valores As New ArrayListvalores.Add( GetType(NTextShape))filtro.SetSerializedTypes(valores) manager.PersistentDocument.Sections.Add( New NPersistentSection("Drawing", NDrawingDocument1))manager.SaveToFile(fichero, Nevron.Serialization. PersistencyFormat.XML, filtro)These saves all the diagram not only the ntextshape objects. Regards, Laura
|