SetFieldLimit
FormEditor.SetFieldLimit method
设置文本字段的最大字符数。
public bool SetFieldLimit(string fieldName, int fieldLimit)
范围 | 类型 | 描述 |
---|---|---|
fieldName | String | 文本字段的名称。 |
fieldLimit | Int32 | 字段的新限制值。 |
返回值
如果字段限制已成功设置,则为 true。
例子
FormEditor formEditor = new FormEditor("PdfForm.pdf", "FormEditor_SetFieldLimit.pdf");
formEditor.SetFieldLimit("textField", 15);
也可以看看
- class FormEditor
- 命名空间 Aspose.Pdf.Facades
- 部件 Aspose.PDF