fileselector class : FilterIndex(int) setter

Description

Sets the index of the selected filter.

Syntax

instance.FilterIndex = value;

Assigned value

ClassDescription
intThe index of the selected filter.

Return value

None.

Sample code

1:

fileselector fsel = new fileselector();

2:

fsel.Filter = "Cook files|*.cook|Text files|*.txt";

3:

fsel.FilterIndex = 2; // Text files are selected.

Notes

The default value is 1.

Links for reference

Copyright © Cooker All rights reserved.