SetFieldAttribute

FormEditor.SetFieldAttribute method

Establecer atributos de campo.

public bool SetFieldAttribute(string fieldName, PropertyFlag flag)
ParámetroEscribeDescripción
fieldNameStringNombre del campo cuyos atributos se deben establecer.
flagPropertyFlagIndicador (NoExportar/Solo lectura/Requerido)

Valor_devuelto

verdadero si el atributo se estableció correctamente.

Ejemplos

FormEditor formEditor = new FormEditor("PdfForm.pdf",  "PdfForm_SetFieldAttribute.pdf");
formEditor.SetFieldAttribute("listboxField", PropertyFlag.ReadOnly);
formEditor.SetFieldAttribute("textField", PropertyFlag.NoExport);

Ver también