/// <summary>
        /// Creates a new object that is a copy of the current instance.
        /// </summary>
        /// <returns>A new object that is a copy of this instance.</returns>
        public override object Clone()
        {
            MarkAnnotationData data = new MarkAnnotationData();

            CopyTo(data);
            return(data);
        }
Example #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="MarkAnnotationView"/> class.
        /// </summary>
        /// <param name="annotationData">Object that stores the annotation data.</param>
        public MarkAnnotationView(MarkAnnotationData annotationData)
            : base(annotationData)
        {
            SizeF initialSize = Size;

            if (initialSize.IsEmpty)
            {
                initialSize = new Size(64, 64);
                Size        = initialSize;
            }
            Builder = new MarkAnnotationBuilder(this);

            RectangularAnnotationTransformer transformer = new RectangularAnnotationTransformer(this);

            transformer.HideInteractionPointsWhenMoving = true;
            foreach (InteractionPoint point in transformer.ResizePoints)
            {
                point.FillColor = Color.FromArgb(100, Color.Red);
            }
            Transformer = transformer;
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="MarkAnnotationRenderer"/> class.
 /// </summary>
 /// <param name="annotationData">Object that stores the annotation data.</param>
 public MarkAnnotationRenderer(MarkAnnotationData annotationData)
     : base(annotationData)
 {
 }