private void AddScaleBar(IActiveView pActiveView, IEnvelope pEnv)
{
try
{
IGraphicsContainer pGraphicsContainer = pActiveView.GraphicsContainer;
IMapFrame pMapFrame = pGraphicsContainer.FindFrame(pActiveView.FocusMap) as IMapFrame;
IMapSurroundFrame pMapSurroundFrame = new MapSurroundFrameClass();
pMapSurroundFrame.MapFrame = pMapFrame;
&
{
try
{
IGraphicsContainer pGraphicsContainer = pActiveView.GraphicsContainer;
IMapFrame pMapFrame = pGraphicsContainer.FindFrame(pActiveView.FocusMap) as IMapFrame;
IMapSurroundFrame pMapSurroundFrame = new MapSurroundFrameClass();
pMapSurroundFrame.MapFrame = pMapFrame;
&