How to save vertex location in GraphML ?

Nov 19, 2014 at 11:12 AM
Edited Nov 19, 2014 at 11:16 AM
I use GraphML to save Graph and I can save vertex label , shape, Image and ... but I cant save vertex location.
I Export and Import all of this:
nodexlControl.Graph.SetValue(ReservedMetadataKeys.AllVertexMetadataKeys, new string[] {ReservedMetadataKeys.PerVertexLabelPosition, ReservedMetadataKeys.PerVertexLabelFillColor, ReservedMetadataKeys.PerVertexLabel, ReservedMetadataKeys.PerVertexShape, ReservedMetadataKeys.PerVertexImage});
but cant find anything about vertex location in graph to save and import.
Nov 19, 2014 at 11:55 PM

the Vertex object has a property named Location. You can read/write the vertex location using this property:
oVertex.Location = new System.Drawing.PointF(2,3);
Nov 22, 2014 at 9:46 AM
Tank you arber,
but I cant Add oVertex.Location to graphML for Export.