HideAction
Overview
HideAction is a class in Aspose.PDF FOSS for .NET.
Inherits from: PdfAction.
Hide action (/S /Hide, PDF 32000 §12.6.4.10): sets the hidden flag of the named field(s) or annotation(s).
This class declares 17 methods for HideAction objects in .NET programs.
Available methods include: CreateGoTo, CreateJavaScript, CreateLaunch, CreateNamed, CreateUri, GetECMAScriptString, HideAction, ToString.
Public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Properties: IsHidden, Next, Type.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
IsHidden | bool | Read/Write | Whether the action hides (true) or shows (false) its targets (/H). |
Type | ActionType | Read | The action type. |
Next | Annotations.ActionCollection | Read | The /Next chain — actions that fire after this one. |
Methods
| Signature | Description |
|---|---|
HideAction() | Create an empty Hide action (targets set later). |
HideAction(annotation: Annotation) | Hide the field the given annotation belongs to. |
HideAction(annotation: Annotation, isHidden: bool) | Hide (or show) the field the given annotation belongs to. |
HideAction(fieldName: string) | Hide the field with the given fully qualified name. |
HideAction(fieldName: string, isHidden: bool) | Hide (or show) the field with the given fully qualified name. |
HideAction(annotations: Annotation[]) | Hide the fields the given annotations belong to. |
HideAction(annotations: Annotation[], isHidden: bool) | Hide (or show) the fields the given annotations belong to. |
HideAction(names: string[]) | Hide the fields with the given fully qualified names. |
HideAction(names: string[], isHidden: bool) | Hide (or show) the fields with the given fully qualified names. |
GetECMAScriptString() | For JavaScript actions, returns the embedded script; otherwise an empty string. |
CreateGoTo(pageIndex: int, fitType: string) | Create a GoTo action targeting a page index with the specified fit type. |
CreateGoTo(pageIndex: int, left: double?, top: double?, zoom: double?) | Create a GoTo action targeting a page with XYZ fit (specific position and zoom). |
CreateUri(uri: string) | Create a URI action that opens the specified URL. |
CreateJavaScript(script: string) | Create a JavaScript action that executes the specified script. |
CreateNamed(name: string) | Create a Named action (e.g., NextPage, PrevPage, FirstPage, LastPage). |
CreateLaunch(filePath: string) | Create a Launch action that opens the specified file. |
ToString() | Human-readable representation of this appointment target. |