PDF for UWP | ComponentOne
C1.Xaml.Pdf Namespace / ButtonAction Enumeration

In This Topic
    ButtonAction Enumeration
    In This Topic
    Specifies actions that can be performed when a PdfPushButton's state changes as described by ButtonAction. For most actions, additional information needs to be specified by the PdfPushButton.Action.Command property on the action.
    Syntax
    'Declaration
     
    
    Public Enum ButtonAction 
       Inherits System.Enum
    public enum ButtonAction : System.Enum 
    Members
    MemberDescription
    CallMenuCalls an Adobe Acrobat's menu item specified by the PdfPushButton.Action.Command property of the PdfPushButton.Action.

    For instance, setting PdfPushButton.Action.Command to "SaveAs" will invoke the save file dialog, while setting it to "Close" will close the document. For the complete listing please refer to the Adobe documentation.

    ClearFieldsClears all fields of the containing AcroForm. To prevent some of the fields from being cleared, assign a comma-separated list of their names (e.g. Field1,Field2) to the PdfPushButton.Action.Command property of the PdfPushButton.Action.
    GotoPageGoes to the page specified by the PdfPushButton.Action.PageNo property of the PdfPushButton.Action.
    HideFieldHides a field if it were visible. The PdfFieldBase.Name of the field should be assigned to the PdfPushButton.Action.Command property of the PdfPushButton.Action.
    OpenFileOpens a file specified by the PdfPushButton.Action.Command property of the PdfPushButton.Action.
    OpenUrlOpens a URL specified by the PdfPushButton.Action.Command property of the PdfPushButton.Action.
    ShowFieldShows a field if it were hidden. The PdfFieldBase.Name of the field should be assigned to the PdfPushButton.Action.Command property of the PdfPushButton.Action.
    Inheritance Hierarchy

    System.Object
       System.ValueType
          System.Enum
             C1.Xaml.Pdf.ButtonAction

    See Also