save and load text shapes


Author
Message
Laura Monica Ibeas Poch
Laura Monica Ibeas Poch
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
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


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Laura Monica Ibeas Poch - 13 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search