Selects the index-the source in SourceNameItems property as the current source.
Namespace: Dynamsoft.DotNet.TWAINAssembly: DynamicDotNetTWAIN (in DynamicDotNetTWAIN.dll) Version: 3.0.0.0 (3.0.0.0)
Syntax
| C# |
|---|
public bool SelectSourceByIndex( int iIndex ) |
| Visual Basic |
|---|
Public Function SelectSourceByIndex ( _ iIndex As Integer _ ) As Boolean |
Parameters
- iIndex
- Type: System..::..Int32
int iIndex. It is the index of SourceNameItems property.
Return Value
True indicates success. False indicates failure.
Remarks
The index is 0-based.
Exceptions
| Exception | Condition |
|---|---|
| Dynamsoft.DotNet.TWAIN..::..TwainException | When an error occurs and IfThrowException property is true, an exception will be thrown. When IfThrowException property is false, please check ErrorCode and ErrorString. |