示例#1
0
        public void DeleteAnnotationField(string fieldName)
        {
            AnnotationField field = _fields.GetAnnotationField(fieldName) as AnnotationField;

            if (field != null)
            {
                _fields.Remove(field);
            }
        }
示例#2
0
        public bool MoveAnnotationField(string fieldName, int delta)
        {
            AnnotationField field = _fields.GetAnnotationField(fieldName) as AnnotationField;

            if (field == null)
            {
                return(false);
            }

            return(_fields.MoveItem(field, delta));
        }
示例#3
0
        public IAnnotationField CreateAnnotationField(string fieldName, AnnotationFieldType type)
        {
            if (_fields.Contains(fieldName))
            {
                throw new ArgumentException("Field " + fieldName + " already exists!");
            }

            AnnotationField field = new AnnotationField(this, fieldName, type);

            _fields.Add(field);
            return(field);
        }