Exemple #1
0
        public MergeField(Run run, string fieldName)
        {
            Run       = run;
            FieldName = new MergeFieldName(fieldName);

            if (FieldName.InnerTypeName.StartsWith("Is"))
            {
                FieldType = MergeFieldType.Checkbox;
            }
            else
            {
                FieldType = MergeFieldType.Text;
            }
        }
        public MergeField(Run run, string fieldName)
        {
            Run = run;
            FieldName = new MergeFieldName(fieldName);

            if (FieldName.InnerTypeName.StartsWith("Is"))
            {
                FieldType = MergeFieldType.Checkbox;
            }
            else
            {
                FieldType = MergeFieldType.Text;
            }
        }