Quantcast
Channel: Forums - ArcObjects SDKs
Viewing all articles
Browse latest Browse all 1374

How to set FixedAspectRatio to False for Legend

$
0
0
I'm creating a legend. I want to set IBoundsProperties.FixedAspectRatio to False. When I run the code, I get "The method or operation is not implemented."

Code snippet (C#):
Code:

ILegend2 legend = mapSurroundFrame.MapSurround as ILegend2;
IBoundsProperties bounds = legend as IBoundsProperties;
bounds.FixedAspectRatio = false;

I get the same error if I cast to IBoundsProperties from the mapSurroundFrame object instead of the legend object.

Viewing all articles
Browse latest Browse all 1374

Trending Articles