VintaSoft Twain .NET SDK 15.0: Documentation for Web developer
Vintasoft.Shared Namespace / WebFlagsEnumItemBaseJS type / contains Methods / contains(string) Property
Syntax BrowserCompatibility SeeAlso
In This Topic
    contains(string) Method
    In This Topic
    Determines that this enumeration element (bit field) contains the specified sub element (bit field). This method has effect only for enumerations that defines bit flags.
    Syntax
    var instance = new Vintasoft.Shared.WebFlagsEnumItemBaseJS();
    
    var value; // Type: boolean
    
    // Parameters
    var val; // Type: string
    
    value = instance.contains(val);
    
    
    function contains(
    val
    Name of enumeration element (bit field).
    : string
    ) : boolean;

    Parameters

    val
    Name of enumeration element (bit field).

    Return Value

    True - this enumeration element contains the specified sub element; False - this enumeration element does NOT contain the specified sub element.
    Browser Compatibility
    9
    See Also