TE Edit Control .NET Core / .NET Framework Help
Product page

TerSetDefDir

Set the default directory and file type.

bool TerSetDefDir( dir, type)
string dir;The default directory. Set to "" to use the program directory.
int type;Input file type:
SAVE_RTF:RTF file
SAVE_DOCXDOCX format
SAVE_TEXT:Text file
SAVE_UTEXT:
Unicode Text Format (not available in the 16 bit product)

Description: This function is used to set the initial directory and the file type display by the File Open dialog.

Return Value: This function returns true when successful.