SuperMap.WindowsPhone.Core.Rectangle2D.Equals C# (CSharp) Method

Equals() public method

${WP_core_Rectangle2D_method_equals_D}
public Equals ( Rectangle2D rectangle ) : bool
rectangle Rectangle2D ${WP_core_Rectangle2D_method_equals_param_rectangle}
return bool
        public bool Equals(Rectangle2D rectangle)
        {
            return (this == rectangle);
        }

Same methods

Rectangle2D::Equals ( object obj ) : bool

Usage Example

Example #1
0
        private void LoadLayerInView(bool useTransitions, Rectangle2D drawBounds, Layer layer)
        {
            if (!Rectangle2D.IsNullOrEmpty(drawBounds) && layer.IsInitialized && (layer.Error == null)
      && (layer.MinVisibleResolution <= mapResolution) && (layer.MaxVisibleResolution >= mapResolution)
      && layer.IsVisible && Layers.Contains(layer) && CoordinateReferenceSystem.Equals(layer.CRS, CRS, true))
            {
                Rectangle2D last = (Rectangle2D)(layer.GetValue(LastLayerViewBoundsProperty));
                if (Rectangle2D.IsNullOrEmpty(last) || !drawBounds.Equals(last))
                {
                    layer.Draw(new DrawParameter()
                    {
                        UseTransitions = useTransitions,
                        Resoluitons = Resolutions,
                        Resolution = targetResolution,
                        ViewBounds = drawBounds,
                        ViewSize = currentSize,
                        LayerOrigin = layer.Container.Origin
                    });
                    layer.SetValue(LastLayerViewBoundsProperty, drawBounds);
                }
            }

        }