Sets the view mode that images are displayed in Dynamic .NET TWAIN. You can use this method to display multiple images in Dynamic .NET TWAIN.

Namespace: Dynamsoft.DotNet.TWAIN
Assembly: DynamicDotNetTWAIN (in DynamicDotNetTWAIN.dll) Version: 3.0.0.0 (3.0.0.0)

Syntax

C#
public bool SetViewMode(
	short sHorizontalImageCount,
	short sVerticalImageCount
)
Visual Basic
Public Function SetViewMode ( _
	sHorizontalImageCount As Short, _
	sVerticalImageCount As Short _
) As Boolean

Parameters

sHorizontalImageCount
Type: System..::..Int16
Specifies how many columns can be displayed in Dynamic .NET TWAIN.
sVerticalImageCount
Type: System..::..Int16
Specifies how many rows can be displayed in Dynamic .NET TWAIN.

Remarks

The default is 1 by 1. When the view mode is set to -1 by -1, Dynamic .NET TWAIN only shows the current image. No scroll bar is provided to navigate to other images.

Exceptions

ExceptionCondition
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.

See Also