changing the position of the vertex labels

May 20, 2010 at 11:09 AM
Edited May 20, 2010 at 11:09 AM


I'm using the NodeXLControl and I was wondering if it is possible to specify the position of the labels for each vertex. Now, the labels are left-bottom aligned with respect to the drawn vertex symbol. Would it be possible for example, to change the coordinates of the label so that it would be centered. Is it possible to align them as in this graph:

Thanks for helping,

May 20, 2010 at 12:59 PM
Sorry, I wrote too soon. I found the answer myself. I should call v.SetValue(ReservedMetadataKeys.PerVertexLabelPosition, VertexLabelPosition.MiddleCenter) on vertex v. Regards, Gregor