VintaSoft Twain .NET SDK 15.0: Documentation for Web developer
Vintasoft.Shared Namespace / EnumGenerator type / create Property
Syntax BrowserCompatibility SeeAlso
In This Topic
    create Method
    In This Topic
    Creates an enumeration class.
    Syntax
    var instance = new Vintasoft.Shared.EnumGenerator();
    
    var value; // Type: object
    
    // Parameters
    var items; // Type: object[]
    var flagged; // Type: boolean
    
    value = instance.create(items, flagged);
    
    
    function create(
    items
    Array of objects "name-value" describing enumeration. Each object has following properties:
    • name (string): The name of enum element.
    • value (number): The value of enum element.
    : object[],
    flagged
    A value indicating whether enumeration supports bit operations.
    : boolean
    ) : object;

    Parameters

    items
    Array of objects "name-value" describing enumeration. Each object has following properties:
    • name (string): The name of enum element.
    • value (number): The value of enum element.
    flagged
    A value indicating whether enumeration supports bit operations.

    Return Value

    Enumeration class.
    Browser Compatibility
    9
    See Also