SetFieldAppearance
FormEditor.SetFieldAppearance method
设置字段标志
public bool SetFieldAppearance(string fieldName, AnnotationFlags flags)
范围 | 类型 | 描述 |
---|---|---|
fieldName | String | 应更新其标志的字段的名称。 |
flags | AnnotationFlags | 领域的标志。 |
返回值
如果标志已成功更新,则为 true。
例子
FormEditor formEditor = new FormEditor("PdfForm1.pdf", "FormEditor_SetFieldAppearance.pdf");
formEditor.SetFieldAppearance("Name", AnnotationFlags.Hidden);
formEditor.SetFieldAppearance("Phone", AnnotationFlags.NoView | AnnotationFlags.Print);
也可以看看
- enum AnnotationFlags
- class FormEditor
- 命名空间 Aspose.Pdf.Facades
- 部件 Aspose.PDF