public void DeleteAnnotationField(string fieldName) { AnnotationField field = _fields.GetAnnotationField(fieldName) as AnnotationField; if (field != null) { _fields.Remove(field); } }
public bool MoveAnnotationField(string fieldName, int delta) { AnnotationField field = _fields.GetAnnotationField(fieldName) as AnnotationField; if (field == null) { return(false); } return(_fields.MoveItem(field, delta)); }
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); }