WinForms

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

    Show / Hide Table of Contents

    Class AutoCompleteMatchItemEventArgs

    Event data for the MatchItem event.

    Inheritance
    System.Object
    AutoCompleteMatchItemEventArgs
    Namespace: Syncfusion.Windows.Forms.Tools
    Assembly: Syncfusion.Tools.Windows.dll
    Syntax
    public class AutoCompleteMatchItemEventArgs : CancelEventArgs
    Remarks

    AutoCompleteMatchItemEventHandler for the delegate that uses this event handler. This event handler is used to package the information that is sent by the AutoComplete class when in Manual

    This is set to false when the event is raised. The event handler can set this value to true if it wants the AutoComplete class to accept the current PossibleMatch item as a possible match for the CurrentText. Setting this value to false with tell the AutoComplete class to ignore this entry.

    Constructors

    AutoCompleteMatchItemEventArgs(String, String)

    Creates a new object of type AutoCompleteMatchItemEventArgs.

    Declaration
    public AutoCompleteMatchItemEventArgs(string currentText, string possibleMatch)
    Parameters
    Type Name Description
    System.String currentText

    The current text to be matched.

    System.String possibleMatch

    The possible match string.

    Remarks

    This constructor for the AutoCompleteMatchItemEventArgs class takes the current text of the target control that is to be matched and the possible match string that it is to be compared against as arguments. The values set through this constructor can overriden through the CurrentText and PossibleMatch properties.

    Properties

    CurrentText

    Returns the current text value to be matched.

    Declaration
    public string CurrentText { get; }
    Property Value
    Type Description
    System.String
    Remarks

    The current text that is to be compared against for possible matches. This is done one at a time using this event argument. The possible match for this is accessed through the PossibleMatch property. You can set the CurrentText and PossibleMatch properties using the appropriate constructor.

    PossibleMatch

    Returns the possible match value that needs to be compared against the CurrentText property by the event handler.

    Declaration
    public string PossibleMatch { get; }
    Property Value
    Type Description
    System.String
    Remarks

    The current text that this possible match will be checked against is accessed through the CurrentText property. You can set the CurrentText and PossibleMatch properties using the appropriate constructor.

    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved