How to set font size of a vertex using C#?

May 30, 2013 at 1:20 PM
To set the size of a vertex:
iv.SetValue(ReservedMetadataKeys.PerVertexRadius, (float)10);

To set the shape of the vertex:
iv.SetValue(ReservedMetadataKeys.PerVertexShape, VertexShape.Disk);

How do I set the label's font size using C#?

Thank you.
May 30, 2013 at 3:57 PM
To set the font size for all the vertices in the graph, do this:
nodeXLControl.GraphDrawer.VertexDrawer.SetFont(Typeface typeface, Double fontSize)
You cannot set different font sizes for different vertices.

-- Tony
May 30, 2013 at 4:22 PM
Great, that's exactly what I needed. Here is my sample:
Typeface typeface = new Typeface("Calibri");
nodeXLControl1.GraphDrawer.VertexDrawer.SetFont(typeface, 14.0);