WinForms

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class AutoCompleteTargetChangingEventArgs

    Show / Hide Table of Contents

    Class AutoCompleteTargetChangingEventArgs

    The event data for TargetChanging event.

    Inheritance
    System.Object
    System.EventArgs
    AutoCompleteTargetChangingEventArgs
    Inherited Members
    System.EventArgs.Empty
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.Windows.Forms.Tools
    Assembly: Syncfusion.Tools.Windows.dll
    Syntax
    public class AutoCompleteTargetChangingEventArgs : EventArgs
    Remarks

    The event data provides information that can be used to tailor the behavior of the AutoComplete control for different edit controls.

    AutoCompleteTargetChangingEventHandler is the event handler delegate that uses this class as the event data.

    Constructors

    AutoCompleteTargetChangingEventArgs(Control, Boolean)

    Initializes a new instance of the AutoCompleteTargetChangingEventArgs class using a System.Windows.Forms.Control and a boolean.

    Declaration
    public AutoCompleteTargetChangingEventArgs(Control editControl, bool isLeaving)
    Parameters
    Type Name Description
    System.Windows.Forms.Control editControl

    The edit control that is losing the focus or gaining focus.

    System.Boolean isLeaving

    Indicates whether the edit control is gaining focus or losing it.

    Remarks

    The editControl parameter is the edit control that is gaining focus or losing it. The AutoComplete control's behavior can be changed based on which edit control it is providing auto completion for.

    The isLeaving parameter indicates whether the edit control is losing or gaining focus. The value will be false if the edit control is gaining focus.

    Properties

    EditControl

    Returns the edit control that is gaining or losing focus.

    Declaration
    public Control EditControl { get; }
    Property Value
    Type Description
    System.Windows.Forms.Control
    Remarks

    The AutoComplete control's behavior can be tailored to be different for each control that it is providing auto completion for. When handling the TargetChanging event this property provides information about the currently active edit control.

    IsLeaving

    Indicates whether the event has been raised in response to a control gaining focus or losing focus.

    Declaration
    public bool IsLeaving { get; }
    Property Value
    Type Description
    System.Boolean
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved