public ActionInfoWithDynamicImageMapCollection(RenderingContext renderingContext, ImageMapAreasCollection imageMaps)
        {
            int count = imageMaps.Count;

            this.m_list = new List <ActionInfoWithDynamicImageMap>(count);
            for (int i = 0; i < count; i++)
            {
                AspNetCore.ReportingServices.ReportRendering.ImageMapArea imageMapArea = imageMaps[i];
                if (imageMapArea != null && imageMapArea.ActionInfo != null)
                {
                    ImageMapAreasCollection imageMapAreasCollection = new ImageMapAreasCollection(1);
                    imageMapAreasCollection.Add(imageMapArea);
                    this.m_list.Add(new ActionInfoWithDynamicImageMap(renderingContext, imageMapArea.ActionInfo, imageMapAreasCollection));
                }
            }
        }
        public ImageMapArea DeepClone()
        {
            Global.Tracer.Assert(this.IsCustomControl);
            ImageMapArea imageMapArea = new ImageMapArea();

            imageMapArea.m_members = null;
            imageMapArea.m_shape   = this.m_shape;
            if (this.m_id != null)
            {
                imageMapArea.m_id = string.Copy(this.m_id);
            }
            if (this.m_coordinates != null)
            {
                imageMapArea.m_coordinates = new float[this.m_coordinates.Length];
                this.m_coordinates.CopyTo(imageMapArea.m_coordinates, 0);
            }
            if (this.m_actionInfo != null)
            {
                imageMapArea.m_actionInfo = this.m_actionInfo.DeepClone();
            }
            return(imageMapArea);
        }
Пример #3
0
 public void Add(ImageMapArea mapArea)
 {
     this.m_list.Add(mapArea);
 }
 public ImageMapAreaInstance(AspNetCore.ReportingServices.ReportRendering.ImageMapArea renderImageMapArea)
 {
     this.m_shape       = (ImageMapArea.ImageMapAreaShape)renderImageMapArea.Shape;
     this.m_coordinates = renderImageMapArea.Coordinates;
 }