Class AutoCompleteTargetChangingEventArgs
The event data for TargetChanging event.
Inheritance
Inherited Members
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 |
---|
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 |
---|
System.Boolean |