ArcMapAddinCoordinateConversion.ArcMapCoordinateGet.CanGetMGRS C# (CSharp) Method

CanGetMGRS() public method

public CanGetMGRS ( int srFactoryCode, string &coord ) : bool
srFactoryCode int
coord string
return bool
        public override bool CanGetMGRS(int srFactoryCode, out string coord)
        {
            coord = string.Empty;
            if (Point != null)
            {
                try
                {
                    Project(srFactoryCode);
                    // 5 numeric units in MGRS is 1m resolution
                    var cn = Point as IConversionNotation;
                    coord = cn.CreateMGRS(5, true, esriMGRSModeEnum.esriMGRSMode_Automatic);
                    return true;
                }
                catch { }
            }
            return false;
        }

Same methods

ArcMapCoordinateGet::CanGetMGRS ( string &coord ) : bool