/// <summary> /// Deserializes the object. /// </summary> /// <remarks> /// <para>Do not call this method directly. You should override it if you are /// developing a new component for FastReport.</para> /// <para>This method is called when the object needs to restore the state. It may /// happen when:</para> /// <list type="bullet"> /// <item> /// <description>loading the report from a file or stream;</description> /// </item> /// <item> /// <description>loading the report from the designer's undo /// buffer;</description> /// </item> /// <item> /// <description>assigning another object to this object using the /// <see cref="Assign"/> or <see cref="AssignAll(Base)">AssignAll</see> methods;</description> /// </item> /// <item> /// <description>loading the object from the designer's /// clipboard;</description> /// </item> /// <item>loading the object from the preview pages.</item> /// </list> /// </remarks> /// <param name="reader">Reader object.</param> public virtual void Deserialize(FRReader reader) { reader.ReadProperties(this); while (reader.NextItem()) { DeserializeSubItems(reader); } }
/// <summary> /// Deserializes the collection. /// </summary> /// <param name="reader">Reader object.</param> /// <remarks> /// This method is for internal use only. /// </remarks> public void Deserialize(FRReader reader) { while (reader.NextItem()) { StyleCollection s = new StyleCollection(); reader.Read(s); Add(s); } }
/// <inheritdoc/> public void Deserialize(FRReader reader) { Clear(); while (reader.NextItem()) { FormatBase format = reader.Read() as FormatBase; Add(format); } }
/// <summary> /// Deserializes the collection. /// </summary> /// <param name="reader">Reader object.</param> /// <remarks> /// This method is for internal use only. /// </remarks> public void Deserialize(FRReader reader) { Clear(); while (reader.NextItem()) { GridControlColumn c = new GridControlColumn(); reader.Read(c); Add(c); } }
/// <inheritdoc/> public void Deserialize(FRReader reader) { Clear(); while (reader.NextItem()) { MatrixHeaderDescriptor d = new MatrixHeaderDescriptor(); reader.Read(d); Add(d); } }
/// <inheritdoc/> public void Deserialize(FRReader reader) { Clear(); while (reader.NextItem()) { HighlightCondition c = new HighlightCondition(); reader.Read(c); Add(c); } }
/// <inheritdoc/> public void Deserialize(FRReader reader) { Clear(); while (reader.NextItem()) { CrossViewCellDescriptor d = new CrossViewCellDescriptor(); reader.Read(d); Add(d); } }
/// <inheritdoc/> public void Deserialize(FRReader reader) { Clear(); while (reader.NextItem()) { Sort s = new Sort(); reader.Read(s); Add(s); } }
/// <inheritdoc/> public void Deserialize(FRReader reader) { Clear(); Name = ""; reader.ReadProperties(this); while (reader.NextItem()) { Style s = new Style(); reader.Read(s); Add(s); } }
public override void Deserialize(FRReader reader) { FPageType = RegisteredObjects.FindType(reader.ReadStr("PageType")); while (reader.NextItem()) { Base c = reader.Read() as Base; if (c != null) { FObjects.Add(c); } } }
public void Deserialize(FRReader reader) { while (reader.NextItem()) { try { DataConnectionBase connection = reader.Read() as DataConnectionBase; if (connection != null) { FConnections.Add(connection); } } catch { } } }