private void AddScaleText(IActiveView pActiveView, IEnvelope pEnv)
{
try
{
IGraphicsContainer pGraphicsContainer = pActiveView.GraphicsContainer;
IMapFrame pMapFrame = pGraphicsContainer.FindFrame(pActiveView.FocusMap) as IMapFrame;
IMapSurroundFrame pMapSurroundFrame = new MapSurroundFrameClass();
pMapSurroundFrame.MapFrame = pMapFrame;
IStyleGalleryItem pStyleGalleryItem = SymbolUtilty.GetItemFromServerStyle("Scale Texts", "Absolute Scale");
pMapSurroundFrame.MapSurround = (IMapSurround)pStyleGalleryItem.Item;
IElement pElement = axPageControl.FindElementByName("ScaleText");
if (pElement != null)
{
pGraphicsCont
{
try
{
IGraphicsContainer pGraphicsContainer = pActiveView.GraphicsContainer;
IMapFrame pMapFrame = pGraphicsContainer.FindFrame(pActiveView.FocusMap) as IMapFrame;
IMapSurroundFrame pMapSurroundFrame = new MapSurroundFrameClass();
pMapSurroundFrame.MapFrame = pMapFrame;
IStyleGalleryItem pStyleGalleryItem = SymbolUtilty.GetItemFromServerStyle("Scale Texts", "Absolute Scale");
pMapSurroundFrame.MapSurround = (IMapSurround)pStyleGalleryItem.Item;
IElement pElement = axPageControl.FindElementByName("ScaleText");
if (pElement != null)
{
pGraphicsCont