/// <summary>Copies the contents of another, similar object.</summary> /// <remarks> /// <para>Call Assign to copy the properties from another object of the same type. /// The standard form of a call to Assign is</para> /// <para><c>destination.Assign(source);</c></para> /// <para> /// which tells the <b>destination</b> object to copy the contents of the /// <b>source</b> object to itself. In this method, all child objects are /// ignored. If you want to copy child objects, use the /// <see cref="AssignAll(Base)">AssignAll</see> method. /// </para> /// </remarks> /// <example><code> /// Report report1; /// Report report2 = new Report(); /// // copy all report settings, do not copy report objects /// report2.Assign(report1); /// </code></example> /// <seealso cref="AssignAll(Base)">AssignAll Method</seealso> /// <param name="source">Source object to copy the contents from.</param> public virtual void Assign(Base source) { Restrictions = source.Restrictions; Alias = source.Alias; OriginalComponent = source.OriginalComponent; }
/// <summary>Copies the contents (including children) of another, similar object.</summary> /// <remarks> /// <para> /// This method is similar to <see cref="Assign"/> method. It copies child /// objects as well. /// </para> /// </remarks> /// <example><code> /// Report report1; /// Report report2 = new Report(); /// // copy all report settings and objects /// report2.AssignAll(report1); /// </code></example> /// <seealso cref="Assign"/> /// <param name="source">Source object to copy the state from.</param> public void AssignAll(Base source) { AssignAll(source, false); }
/// <summary> /// Sets the object's parent. /// </summary> /// <param name="value">New parent.</param> /// <remarks> /// This method is for internal use only. You can use it if you are developing a new component for FastReport. /// This method does not perform any checks, it just sets the new parent. /// </remarks> public void SetParentCore(Base value) { parent = value; }
/// <inheritdoc/> public override bool CanContain(Base child) { return(base.CanContain(child) || (child is DataHeaderBand || child is DataFooterBand || child is DataBand || child is GroupHeaderBand)); }
/// <summary> /// Initializes a new instance of the <see cref="BandCollection"/> class with specified owner. /// </summary> /// <param name="owner">Owner that owns this collection.</param> public BandCollection(Base owner) : base(owner) { }
/// <inheritdoc/> public virtual int GetChildOrder(Base child) { return(objects.IndexOf(child as ReportComponentBase)); }
/// <inheritdoc/> public virtual int GetChildOrder(Base child) { return(bands.IndexOf(child as BandBase)); }