Adds an array of strings to the saved autocomplete entries.
| C# | void object.Seed(object Entries); |
| VB.NET | object.Seed(ByVal Entries As Object) |
| C++ | HRESULT object->Seed(const _variant_t& Entries); |
| C | HRESULT object->raw_Seed(VARIANT Entries); |
object
Entries
A one-dimensional array of strings to add. The array can be an array of strings or an array of variants holding strings. Empty entries are ignored.
The Seed method adds an array of strings to the saved autocomplete entries.
Seeding allows an application to offer meaningful suggestions the very first time the user encounters the control, instead of starting with an empty list of suggestions.
The entries are added to the file defined using the AutoComplete.File property, which must be set before calling the Seed method. If no file is defined or the file cannot be written, an error occurs.
Entries that are already saved are left unchanged, so seeding is cumulative and can safely be repeated every time the application starts. Entries the user has entered are preserved. The AutoComplete.IgnoreCase property defines whether case is considered when comparing an entry to the saved entries. The AutoComplete.MaxEntries limit is honored.
C#
axSftMask1.AutoComplete.File = "-\\MyCompany\\MyApp\\Names"; axSftMask1.AutoComplete.Seed(new string[] { "Aaron", "Alice", "Andrew" });
VB.NET
AxSftMask1.AutoComplete.File = "-\MyCompany\MyApp\Names" AxSftMask1.AutoComplete.Seed(New String() {"Aaron", "Alice", "Andrew"})
See Also SftMaskAutoComplete Object | Object Hierarchy