Accusoft.TwainPro8.Net
GetCapabilityConstantDescription Method
See Also  Send Feedback
Accusoft.TwainProSdk Namespace > TwainDevice Class : GetCapabilityConstantDescription Method




capability
A Capability.
index
The index of the Capability constant.

Glossary Item Box

Returns a description of a constant for the current capability. This is a runtime, read-only property.

Syntax

 
Visual Basic
C#
Managed Extensions for C++
C++/CLI
 
 

Parameters

capability
A Capability.
index
The index of the Capability constant.

Return Value

A description of the specified Capability constant.

Remarks

When the capability type is TWCAP_ENUM, the Source may return a list of constants that signify settings.

For example, if Capability = ICAP_PIXELTYPE, and the Source returns a TWCAP_ENUM containing the constants, TwptBW (0), TwptGray (1), TwptRgb (2) a description of each may be obtained with the GetCapabilityConstantDescription method.

TwainPRO.GetCapabilityConstantDescription( Capability.IcapPixelType, (System.Int32)CapabilityConstants.TwptBW ) would return "Black and White". This can be used for filling a listbox or combobox with descriptions of available values instead of just the constants.

See Also

©2013. Accusoft Corporation. All Rights Reserved.