void IPersistable.Deserialize(IntermediateFormatReader reader)
        {
            reader.RegisterDeclaration(m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.ActionDefinition:
                    base.ActionDef = (Microsoft.ReportingServices.ReportIntermediateFormat.Action)reader.ReadRIFObject();
                    break;

                case MemberName.Actions:
                    ((ROMInstanceObjectCreator)reader.PersistenceHelper).StartActionInfoInstancesDeserialization(this);
                    reader.ReadArrayOfRIFObjects <ActionInstance>();
                    ((ROMInstanceObjectCreator)reader.PersistenceHelper).CompleteActionInfoInstancesDeserialization();
                    break;

                case MemberName.ImageMapAreas:
                    m_imageMapAreas = new ImageMapAreaInstanceCollection();
                    reader.ReadListOfRIFObjects(m_imageMapAreas.InternalList);
                    break;

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }
 public ImageMapAreaInstance CreateImageMapAreaInstance(ImageMapArea.ImageMapAreaShape shape, float[] coordinates, string toolTip)
 {
     if (!m_chartConstruction && base.ReportElementOwner.CriGenerationPhase != ReportElement.CriGenerationPhases.Instance)
     {
         throw new RenderingObjectModelException(RPRes.rsErrorDuringROMDefinitionWriteback);
     }
     if (coordinates == null || coordinates.Length < 1)
     {
         throw new RenderingObjectModelException(ProcessingErrorCode.rsInvalidParameterValue, "coordinates");
     }
     if (m_imageMapAreas == null)
     {
         m_imageMapAreas = new ImageMapAreaInstanceCollection();
     }
     return(m_imageMapAreas.Add(shape, coordinates, toolTip));
 }
 internal ActionInfoWithDynamicImageMap(RenderingContext renderingContext, Microsoft.ReportingServices.ReportRendering.ActionInfo renderAction, ImageMapAreasCollection renderImageMap)
     : base(renderingContext, renderAction)
 {
     base.IsDynamic  = true;
     m_imageMapAreas = new ImageMapAreaInstanceCollection(renderImageMap);
 }