menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class FormFieldDoubleClickEventArgs - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class FormFieldDoubleClickEventArgs

    Provides event data for the form field double-clicked event in the SfPdfViewer2 component.

    Inheritance
    System.Object
    FormFieldDoubleClickEventArgs
    Namespace: Syncfusion.Blazor.SfPdfViewer
    Assembly: Syncfusion.Blazor.SfPdfViewer.dll
    Syntax
    public class FormFieldDoubleClickEventArgs : Object
    Remarks

    This class contains information about the form field that was double-clicked, allowing developers to access its properties and implement custom logic based on the user's interaction.

    Examples
    <SfPdfViewer2 @ref="Viewer" Height="100%" Width="100%">
        <PdfViewerEvents FormFieldDoubleClick="@OnFormFieldDoubleClick"></PdfViewerEvents>
    </SfPdfViewer2>
    
    @code {
    SfPdfViewer2 Viewer;
    void OnFormFieldDoubleClick(FormFieldDoubleClickEventArgs args)
    {
        // Retrieve details about the double-clicked form field
        Console.WriteLine($"Form Field double-clicked: {args.Field.Name}");
        // Implement custom logic
    }
    }

    Constructors

    FormFieldDoubleClickEventArgs()

    Declaration
    public FormFieldDoubleClickEventArgs()

    Properties

    Cancel

    Gets or sets a value indicating whether the form field property panel should be prevented from opening in the SfPdfViewer2 component.

    Declaration
    public bool Cancel { get; set; }
    Property Value
    Type Description
    System.Boolean

    A System.Boolean indicating whether the property panel opening is canceled.

    Remarks

    Setting the Cancel property to true prevents the property panel from opening
    when a form field is double-clicked in the SfPdfViewer2 component.
    This is useful for customizing form field interactions.

    Examples
    <SfPdfViewer2 @ref="Viewer" Height="100%" Width="100%">
        <PdfViewerEvents FormFieldDoubleClick="@OnFormFieldDoubleClick"></PdfViewerEvents>
    </SfPdfViewer2>
    
    @code {
    SfPdfViewer2 Viewer;
    void OnFormFieldDoubleClick(FormFieldDoubleClickEventArgs args)
    {
        // Prevent the form field property panel from opening
        args.Cancel = true;
        Console.WriteLine("Form field double-clicked, panel opening prevented.");
        // Additional processing logic
    }
    }

    Field

    Gets the form field object that was double-clicked in the SfPdfViewer2 component.

    Declaration
    public FormFieldInfo Field { get; }
    Property Value
    Type Description
    FormFieldInfo

    An instance of FormFieldInfo representing the double-clicked form field.

    Remarks

    The Field property provides access to the form field that was interacted with,
    allowing you to retrieve its details and perform relevant actions.

    Examples
    <SfPdfViewer2 @ref="Viewer" Height="100%" Width="100%">
        <PdfViewerEvents FormFieldDoubleClick="@OnFormFieldDoubleClick"></PdfViewerEvents>
    </SfPdfViewer2>
    
    @code {
    SfPdfViewer2 Viewer;
    void OnFormFieldDoubleClick(FormFieldDoubleClickEventArgs args)
    {
        // Retrieve the double-clicked form field
        var fieldInfo = args.Field;
        Console.WriteLine($"Form field double-clicked: {fieldInfo.Name}");
        // Implement additional logic
    }
    }
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved