SetFieldLimit

FormEditor.SetFieldLimit method

设置文本字段的最大字符数。

public bool SetFieldLimit(string fieldName, int fieldLimit)
范围类型描述
fieldNameString文本字段的名称。
fieldLimitInt32字段的新限制值。

返回值

如果字段限制已成功设置,则为 true。

例子

FormEditor formEditor = new FormEditor("PdfForm.pdf", "FormEditor_SetFieldLimit.pdf");
formEditor.SetFieldLimit("textField", 15);

也可以看看