Back to Devexpress

TextEditCustomizeAutoCompleteSourceEventArgs.CustomSource Property

windowsforms-devexpress-dot-xtraeditors-dot-texteditcustomizeautocompletesourceeventargs-fff69426.md

latest2.3 KB
Original Source

TextEditCustomizeAutoCompleteSourceEventArgs.CustomSource Property

Allows you to specify custom auto-complete suggestions for the current word (EditingWord).

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public string[] CustomSource { get; set; }
vb
Public Property CustomSource As String()

Property Value

TypeDescription
String[]

An array of custom auto-complete suggestions.

|

Remarks

If the CustomSource event parameter is set to null , the editor’s auto-complete drop-down list displays suggestions from the TextEditAdvancedModeOptions.AutoCompleteCustomSource collection.

When you assign custom auto-complete suggestions to the CustomSource property, you also need to set the Handled event parameter.

If the Handled parameter is set to false (the default value), the editor filters the supplied auto-complete suggestions to display only those items in the drop-down that start with the word being edited (EditingWord).

Set the Handled parameter to true to avoid automatic filtering, and display the supplied auto-complete suggestions in the drop-down as is.

See Also

TextEditCustomizeAutoCompleteSourceEventArgs Class

TextEditCustomizeAutoCompleteSourceEventArgs Members

DevExpress.XtraEditors Namespace