コード例 #1
0
        internal ActionInfoWithDynamicImageMapCollection(RenderingContext renderingContext, ImageMapAreasCollection imageMaps)
        {
            int count = imageMaps.Count;

            m_list = new List <ActionInfoWithDynamicImageMap>(count);
            for (int i = 0; i < count; i++)
            {
                Microsoft.ReportingServices.ReportRendering.ImageMapArea imageMapArea = imageMaps[i];
                if (imageMapArea != null && imageMapArea.ActionInfo != null)
                {
                    ImageMapAreasCollection imageMapAreasCollection = new ImageMapAreasCollection(1);
                    imageMapAreasCollection.Add(imageMapArea);
                    m_list.Add(new ActionInfoWithDynamicImageMap(renderingContext, imageMapArea.ActionInfo, imageMapAreasCollection));
                }
            }
        }
コード例 #2
0
        internal ImageMapArea DeepClone()
        {
            Global.Tracer.Assert(IsCustomControl);
            ImageMapArea imageMapArea = new ImageMapArea();

            imageMapArea.m_members = null;
            imageMapArea.m_shape   = m_shape;
            if (m_id != null)
            {
                imageMapArea.m_id = string.Copy(m_id);
            }
            if (m_coordinates != null)
            {
                imageMapArea.m_coordinates = new float[m_coordinates.Length];
                m_coordinates.CopyTo(imageMapArea.m_coordinates, 0);
            }
            if (m_actionInfo != null)
            {
                imageMapArea.m_actionInfo = m_actionInfo.DeepClone();
            }
            return(imageMapArea);
        }
コード例 #3
0
 public void Add(ImageMapArea mapArea)
 {
     m_list.Add(mapArea);
 }
コード例 #4
0
 internal ImageMapAreaInstance(Microsoft.ReportingServices.ReportRendering.ImageMapArea renderImageMapArea)
 {
     m_shape       = (ImageMapArea.ImageMapAreaShape)renderImageMapArea.Shape;
     m_coordinates = renderImageMapArea.Coordinates;
 }