コード例 #1
0
ファイル: AnnotationField.cs プロジェクト: naver/protonow
 internal AnnotationField(AnnotationFieldSet set, string name, AnnotationFieldType type)
     : base("AnnotationField")
 {
     _set  = set;
     _name = name;
     _type = type;
 }
コード例 #2
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);
        }