changing the position of the vertex labels

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

Hi,

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:

http://img641.imageshack.us/img641/3141/graphf.png

Thanks for helping,
Regards,
Gregor

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