ImageGear for Silverlight
GetCapabilityValueDescription Method
See Also  Send Feedback
ImageGear20.TWAIN Assembly > ImageGear.TWAIN Namespace > ImGearTWAIN Class : GetCapabilityValueDescription Method




capability
A capability who's value can be represented by an enumeration capability container.
enumValue
Value of the specified capability cast as a System.Int32.

Glossary Item Box

Returns a description of an enum value for the specified capability.

Syntax

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

Parameters

capability
A capability who's value can be represented by an enumeration capability container.
enumValue
Value of the specified capability cast as a System.Int32.

Return Value

A string that describes the specified value of the specified capability.

Remarks

When the specified capability is represented by an enumeration capability containter, this method can be used to get a description of any of the enumeration values.

For example, if capability is ICAP_DUPLEX, then this method can be use to get a description of any of the enumeration values for the values in the ImGearDuplex enumeration: NONE, ONEPASSDUPLEX, TWOPASSDUPLEX.

For example:

            GetCapabilityValueDescription(ICAP_DUPLEX, ImGearDuplex.ONEPASSDUPLEX)
            
returns "One Pass".

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.