/// <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); }
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(); }
private AnnotationBoxList(AnnotationBoxList source, ICloningContext context) : base(source.Count) { foreach (AnnotationBox box in source) { this.Add(box.Clone()); } }
/// <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(); }
/// <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); }