E

GraphItemTypes
flags

An enumeration for use in various properties that can take a bitwise combination of item types that make up an IGraph

Remarks

The values may be used to create a bitwise combination of the types.

See Also

Developer's Guide

Members

No filters for this type

Constants

Constant for all item types.
This is a bitwise combination of all other types declared in this enum.
static
Constant for edge bends.
static

See Also

API
IBend
Constant for edges.
Constant for edge labels.
static

See Also

API
ILabel
Constant for all kinds of labels.
This is a bitwise combination of NODE_LABEL, EDGE_LABEL, and PORT_LABEL.
static

See Also

API
ILabel
Constant for all kinds of ILabelOwner.
This is a bitwise combination of NODE, EDGE, and PORT.
static

See Also

API
ILabelOwner
Constant for nodes.
Constant for node labels.
static

See Also

API
ILabel
Constant for no item type.
Constant for ports.
Constant for port labels.
static

See Also

API
ILabel

Static Methods

Determines whether the specified items collection contains any of the types described by types.
static

Parameters

types: GraphItemTypes
The types.
items: IEnumerable<IModelItem>
The items.

Return Value

boolean
true if the specified items contain any of the types; false otherwise.
Converts the given argument to an enum constant of this enum type.
Most notably, this method can convert an enum constant's name into the enum constant itself.
static

Parameters

value: GraphItemTypes
The value to convert to an enum constant.

Return Value

GraphItemTypes
The enum constant that corresponds to the given argument.
Gets the type of the item.
static

Parameters

item: IModelItem
The item.

Return Value

GraphItemTypes
The type.
Determines the types of the items contained in the collection of items.
static

Parameters

items: IEnumerable<IModelItem>
The items.

Return Value

GraphItemTypes
The types of the items.
Returns the name of the given enum constant.
static

Parameters

value: GraphItemTypes
The numeric value of an enum constant.

Return Value

string
The name of the enum constant.

Throws

Exception ({ name: 'Error' })
If this type is a flags enums, and the provided value doesn't correspond to a single enum constant, or if this enum type contains no constant of the given numeric value.
Determines whether the item is of the specified types.
static

Parameters

types: GraphItemTypes
The type.
item: IModelItem
The item.

Return Value

boolean
true if the item is of the specified types; false otherwise.