Ejemplo n.º 1
0
        /// <summary>
        /// Creates a deep clone of this <see cref="AnnotationBoxList"/>.
        /// </summary>
        /// <returns>A deep clone of this <see cref="AnnotationBoxList"/>.</returns>
        public AnnotationBoxList Clone()
        {
            AnnotationBoxList clone = new AnnotationBoxList();

            clone.Initialize(this, null);
            return(clone);
        }
Ejemplo n.º 2
0
 private void Initialize(AnnotationBoxList source, ICloningContext context)
 {
     foreach (AnnotationBox box in source)
     {
         this.Add(box.Clone());
     }
 }
Ejemplo n.º 3
0
 public StoredAnnotationBoxGroup(string identifier)
 {
     Platform.CheckForEmptyString(identifier, "identifier");
     _identifier         = identifier;
     _defaultBoxSettings = new AnnotationBox();
     _annotationBoxes    = new AnnotationBoxList();
 }
Ejemplo n.º 4
0
 private AnnotationBoxList(AnnotationBoxList source, ICloningContext context)
     : base(source.Count)
 {
     foreach (AnnotationBox box in source)
     {
         this.Add(box.Clone());
     }
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public AnnotationLayout()
 {
     _annotationBoxes = new AnnotationBoxList();
     Visible          = true;
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Cloning constructor.
 /// </summary>
 /// <param name="source">The source object from which to clone.</param>
 /// <param name="context">This parameter is unused.</param>
 private StoredAnnotationBoxGroup(StoredAnnotationBoxGroup source, ICloningContext context)
 {
     this._identifier         = source._identifier;
     this._defaultBoxSettings = source._defaultBoxSettings.Clone();
     this._annotationBoxes    = source._annotationBoxes.Clone();
 }
Ejemplo n.º 7
0
        /// <summary>
        /// Creates a deep clone of this <see cref="AnnotationBoxList"/>.
        /// </summary>
        /// <returns>A deep clone of this <see cref="AnnotationBoxList"/>.</returns>
        public AnnotationBoxList Clone()
        {
            var clone = new AnnotationBoxList(this, null);

            return(clone);
        }