VintaSoft Imaging .NET SDK 15.1: 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);

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
56+
45+
11
See Also