Exemple #1
0
        bool ESRI.ArcGIS.esriSystem.IClone.IsEqual(IClone other)
        {
            bool angle = false;
            ILogoMarkerSymbol logoMarkerSymbol  = null;
            ILogoMarkerSymbol logoMarkerSymbol1 = null;
            IMarkerSymbol     markerSymbol      = null;
            IMarkerSymbol     markerSymbol1     = null;
            ISymbol           symbol            = null;
            ISymbol           symbol1           = null;
            IDisplayName      displayName       = null;
            IDisplayName      displayName1      = null;
            ISymbolRotation   symbolRotation    = null;
            ISymbolRotation   symbolRotation1   = null;
            IMapLevel         mapLevel          = null;
            IMapLevel         mapLevel1         = null;

            if (other != null)
            {
                if (other is ILogoMarkerSymbol)
                {
                    logoMarkerSymbol  = other as ILogoMarkerSymbol;
                    logoMarkerSymbol1 = this;
                    System.Drawing.Color color =
                        ColorTranslator.FromOle(Convert.ToInt32(logoMarkerSymbol1.ColorBorder.RGB));
                    angle = angle &
                            color.Equals(ColorTranslator.FromOle(Convert.ToInt32(logoMarkerSymbol.ColorBorder.RGB)));
                    color = ColorTranslator.FromOle(Convert.ToInt32(logoMarkerSymbol1.ColorLeft.RGB));
                    angle = angle &
                            color.Equals(ColorTranslator.FromOle(Convert.ToInt32(logoMarkerSymbol.ColorLeft.RGB)));
                    color = ColorTranslator.FromOle(Convert.ToInt32(logoMarkerSymbol1.ColorRight.RGB));
                    angle = angle &
                            color.Equals(ColorTranslator.FromOle(Convert.ToInt32(logoMarkerSymbol.ColorRight.RGB)));
                    color = ColorTranslator.FromOle(Convert.ToInt32(logoMarkerSymbol1.ColorTop.RGB));
                    angle = angle &
                            color.Equals(ColorTranslator.FromOle(Convert.ToInt32(logoMarkerSymbol.ColorTop.RGB)));
                    markerSymbol    = other as IMarkerSymbol;
                    markerSymbol1   = this;
                    angle           = angle & markerSymbol1.Angle == markerSymbol.Angle;
                    color           = ColorTranslator.FromOle(Convert.ToInt32(markerSymbol1.Color.RGB));
                    angle           = angle & color.Equals(ColorTranslator.FromOle(Convert.ToInt32(markerSymbol.Color.RGB)));
                    angle           = angle & markerSymbol1.Size == markerSymbol.Size;
                    angle           = angle & markerSymbol1.XOffset == markerSymbol.XOffset;
                    angle           = angle & markerSymbol1.YOffset == markerSymbol.YOffset;
                    symbol          = other as ISymbol;
                    symbol1         = this;
                    angle           = angle & symbol1.ROP2 == symbol.ROP2;
                    displayName     = other as IDisplayName;
                    displayName1    = this;
                    angle           = angle & (displayName1.NameString == displayName.NameString);
                    symbolRotation  = other as ISymbolRotation;
                    symbolRotation1 = this;
                    angle           = angle & symbolRotation1.RotateWithTransform == symbolRotation.RotateWithTransform;
                    mapLevel        = other as IMapLevel;
                    mapLevel1       = this;
                    angle           = angle & mapLevel1.MapLevel == mapLevel.MapLevel;
                }
            }
            return(angle);
        }
Exemple #2
0
        bool ESRI.ArcGIS.esriSystem.IClone.IsEqual(IClone other)
        {
            bool            width           = false;
            LabelSymbol     labelSymbol     = null;
            LabelSymbol     labelSymbol1    = null;
            ILineSymbol     lineSymbol      = null;
            ILineSymbol     lineSymbol1     = null;
            ISymbol         symbol          = null;
            ISymbol         symbol1         = null;
            IDisplayName    displayName     = null;
            IDisplayName    displayName1    = null;
            ISymbolRotation symbolRotation  = null;
            ISymbolRotation symbolRotation1 = null;
            IMapLevel       mapLevel        = null;
            IMapLevel       mapLevel1       = null;

            if (other != null)
            {
                if (other is LabelSymbol)
                {
                    labelSymbol  = other as LabelSymbol;
                    labelSymbol1 = this;
                    lineSymbol   = other as ILineSymbol;
                    lineSymbol1  = this;
                    System.Drawing.Color color = ColorTranslator.FromOle(Convert.ToInt32(lineSymbol1.Color.RGB));
                    width           = width & color.Equals(ColorTranslator.FromOle(Convert.ToInt32(lineSymbol.Color.RGB)));
                    width           = width & lineSymbol1.Width == lineSymbol.Width;
                    symbol          = other as ISymbol;
                    symbol1         = this;
                    width           = width & symbol1.ROP2 == symbol.ROP2;
                    displayName     = other as IDisplayName;
                    displayName1    = this;
                    width           = width & (displayName1.NameString == displayName.NameString);
                    symbolRotation  = other as ISymbolRotation;
                    symbolRotation1 = this;
                    width           = width & symbolRotation1.RotateWithTransform == symbolRotation.RotateWithTransform;
                    mapLevel        = other as IMapLevel;
                    mapLevel1       = this;
                    width           = width & mapLevel1.MapLevel == mapLevel.MapLevel;
                }
            }
            return(width);
        }