Profile Picture

save and load text shapes

Posted By Laura Monica Ibeas Poch 12 Years Ago
Author
Message
Laura Monica Ibeas Poch
Posted 12 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)

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 NSerializationFilter

Dim valores As New ArrayList

valores.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





Similar Topics


Reading This Topic