Beispiel #1
0
 /// <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);
     }
 }
Beispiel #2
0
 /// <inheritdoc/>
 public void Deserialize(FRReader reader)
 {
     Clear();
     Name = "";
     reader.ReadProperties(this);
     while (reader.NextItem())
     {
         Style s = new Style();
         reader.Read(s);
         Add(s);
     }
 }
 /// <inheritdoc/>
 public void Deserialize(FRReader reader)
 {
     reader.ReadProperties(this);
 }
Beispiel #4
0
 /// <summary>
 /// Deserializes the style.
 /// </summary>
 /// <param name="reader">Reader object.</param>
 /// <remarks>
 /// This method is for internal use only.
 /// </remarks>
 public void Deserialize(FRReader reader)
 {
     reader.ReadProperties(this);
     Fill.Deserialize(reader, "Fill");
     TextFill.Deserialize(reader, "TextFill");
 }