Click or drag to resize

TwainMemoryReadString Method (TwainItemType)

Reads a TW_STR32, TW_STR64, TW_STR128, TW_STR255, TW_STR1024 or TW_UNI512 from the current Position and advances the position.

Namespace:  Atalasoft.Twain
Assembly:  Atalasoft.DotTwain (in Atalasoft.DotTwain.dll) Version: 11.1.0.0.0.321 (.NET 4.5.2, x86)
Syntax
public string ReadString(
	TwainItemType itemType
)

Parameters

itemType
Type: Atalasoft.TwainTwainItemType

The TWAIN string item type to read.

If an item type other than TWTY_STR32, TWTY_STR64, TWTY_STR128, TWTY_STR255, TWTY_STR1024 or TWTY_UNI512 is provided, nothing will be read.

Return Value

Type: String
The string value at the current position.
Exceptions
ExceptionCondition
Thrown if the TwainMemory has been disposed.
Thrown if the Position is invalid for reading this data.
Remarks
This method will increase the Position by the number of bytes required for the itemType.
See Also