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: 6.2.0.905 (6.2.0.0905)

Syntax

C#
public bool SetViewMode(
	short sHorizontalImageCount,
	short sVerticalImageCount
)
Visual Basic
Public Function SetViewMode ( 
	sHorizontalImageCount As Short,
	sVerticalImageCount As Short
) As Boolean
Visual C++
public:
virtual bool SetViewMode(
	short sHorizontalImageCount, 
	short sVerticalImageCount
) sealed

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.

Return Value

Type: Boolean

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