Exemplo 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);
        }
Exemplo n.º 2
0
 private void Initialize(AnnotationBoxList source, ICloningContext context)
 {
     foreach (AnnotationBox box in source)
     {
         this.Add(box.Clone());
     }
 }
 public StoredAnnotationBoxGroup(string identifier)
 {
     Platform.CheckForEmptyString(identifier, "identifier");
     _identifier         = identifier;
     _defaultBoxSettings = new AnnotationBox();
     _annotationBoxes    = new AnnotationBoxList();
 }
Exemplo n.º 4
0
 private AnnotationBoxList(AnnotationBoxList source, ICloningContext context)
     : base(source.Count)
 {
     foreach (AnnotationBox box in source)
     {
         this.Add(box.Clone());
     }
 }
Exemplo n.º 5
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public AnnotationLayout()
 {
     _annotationBoxes = new AnnotationBoxList();
     Visible          = true;
 }
 /// <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();
 }
Exemplo 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);
        }