menu

Blazor

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

    Show / Hide Table of Contents

    Class FormFieldMouseLeaveEventArgs

    Provides event data for the form field mouse leave event in the SfPdfViewer2 component.

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

    The FormFieldMouseLeaveEventArgs class contains details about the form field that the mouse pointer exited, allowing developers to access its properties and perform custom actions when the user moves the mouse away from the field.

    Examples
    <SfPdfViewer2 @ref="Viewer" Height="100%" Width="100%">
        <PdfViewerEvents FormFieldMouseLeave="@OnFormFieldMouseLeave"></PdfViewerEvents>
    </SfPdfViewer2>
    
    @code {
    void OnFormFieldMouseLeave(FormFieldMouseLeaveEventArgs args)
    {
        // Retrieve the form field that the mouse left
        FormFieldInfo fieldInfo = args.Field;
        Console.WriteLine($"Mouse left form field: {fieldInfo.Name}");
    
        // Implement additional logic
    }
    }

    Constructors

    FormFieldMouseLeaveEventArgs()

    Declaration
    public FormFieldMouseLeaveEventArgs()

    Properties

    Field

    Gets the form field object that the mouse pointer exited in the SfPdfViewer2 component.

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

    An instance of FormFieldInfo representing the form field that the mouse pointer exited.

    Remarks

    This property provides access to the form field that the mouse pointer moved away from, allowing you to retrieve its details and execute relevant actions.

    Examples
    <SfPdfViewer2 @ref="Viewer" Height="100%" Width="100%">
        <PdfViewerEvents FormFieldMouseLeave="@OnFormFieldMouseLeave"></PdfViewerEvents>
    </SfPdfViewer2>
    
    @code {
    void OnFormFieldMouseLeave(FormFieldMouseLeaveEventArgs args)
    {
        // Retrieve the form field that the mouse left
        FormFieldInfo fieldInfo = args.Field;
        Console.WriteLine($"Mouse left form field: {fieldInfo.Name}");
    
        // Implement additional logic
    }
    }

    PageNumber

    Gets the page number where the form field was located when the mouse pointer exited in the SfPdfViewer2 component.

    Declaration
    public int PageNumber { get; }
    Property Value
    Type Description
    System.Int32

    An System.Int32 representing the page number where the form field was located when the mouse pointer exited.

    Remarks

    This property provides the page number associated with the form field that the mouse pointer moved away from, helping to determine its exact location within the document.

    Examples
    <SfPdfViewer2 @ref="Viewer" Height="100%" Width="100%">
        <PdfViewerEvents FormFieldMouseLeave="@OnFormFieldMouseLeave"></PdfViewerEvents>
    </SfPdfViewer2>
    
    @code {
    void OnFormFieldMouseLeave(FormFieldMouseLeaveEventArgs args)
    {
        // Retrieve the page number of the form field that the mouse left
        int pageNumber = args.PageNumber;
        Console.WriteLine($"Mouse left form field on page: {pageNumber}");
    
        // Implement additional logic
    }
    }
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved