Пример #1
0
        protected static string GetFieldTypeName(FormInputFieldType type)
        {
            switch (type)
            {
            case FormInputFieldType.Text:
                return("Tx");

            case FormInputFieldType.Button:
                return("Btn");

            case FormInputFieldType.Choice:
                return("Ch");

            case FormInputFieldType.Signature:
                return("Sig");

            default:
                throw new ArgumentOutOfRangeException(nameof(type));
            }
        }
Пример #2
0
 public PDFAcrobatFormFieldWidget(string name, string value, string defaultValue, FormInputFieldType type, FormFieldOptions options)
 {
     this.Name         = name;
     this.Value        = value;
     this.FieldOptions = options;
     this.FieldType    = type;
     this._states      = new Dictionary <FormFieldAppearanceState, Layout.PDFLayoutXObject>();
     this.DefaultValue = defaultValue;
 }