Hello,
I have managed to get the ymax by using (element.Geometry.Envelope.YMax)
However when the legend is updated and i try and get the new ymax it still returns the original ymax.
I have tried using:
legend.Refresh();
mapSurround.Refresh();
mapDocument.ActiveView.Refresh();
mapDocument.ActiveView.PartialRefresh(esriViewDrawPhase.esriViewGraphics, null, null);
If i save the mxd and reopen it i can then get the new ymax.
Does anyone know how to get the ymax from a legend after it has been updated?
Thank you