Exemplo n.º 1
0
        /// <summary>
        /// Retrieves default annotation for specified annotation type.
        /// </summary>
        /// <param name="type">Annotation type.</param>
        /// <returns><see cref="AnnotationUI"/> instance for specified annotation type.</returns>
        public AnnotationUI GetAnnotation(AnnotationType type)
        {
            var ann = ((AnnotationUI)_table[type]).Clone();

            ann.Data.Name = type.ToString();
            return(ann);
        }
 public Atalasoft.Annotate.UI.AnnotationUI GetAnnotation(AnnotationType type)
 {
     Atalasoft.Annotate.UI.AnnotationUI ann = ((Atalasoft.Annotate.UI.AnnotationUI)_table[type]).Clone();
     ann.Data.Name = type.ToString();
     return(ann);
 }