alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class FormFieldMouseLeaveEventArgs

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

    Inheritance
    object
    FormFieldMouseLeaveEventArgs
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Syncfusion.Blazor.SfPdfViewer
    Assembly: Syncfusion.Blazor.SfPdfViewer.dll
    Syntax
    public class FormFieldMouseLeaveEventArgs
    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
    [JsonPropertyName("field")]
    [JsonInclude]
    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
    [JsonPropertyName("pageNumber")]
    [JsonInclude]
    public int PageNumber { get; }
    Property Value
    Type Description
    int

    An int 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
    }
    }
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved