Class: InkGroup
InkModel.InkGroup(idopt)
new InkGroup(idopt)
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
id | string.<GUID> | <optional> | auto generated GUID |
Properties:
Name | Type | Description |
---|---|---|
content | Array.<InkModel.InkElement> |
Extends
Methods
appendChild(node, indexopt) → InkModel.InkElement
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
node | InkModel.InkElement | Added or Moved child | ||
index | int | <optional> | children.length | Node position |
Returns:
Added element
Type
contains(node) → {boolean}
Checks to see an element is in the current element hierarchy
Parameters:
Name | Type | Description |
---|---|---|
node | InkModel.InkElement | Ink element to check |
Returns:
Value indicating whether a node is a descendant of a given node
Type
boolean
indexOf(node) → {int}
Search element index
Parameters:
Name | Type | Description |
---|---|---|
node | InkModel.InkElement | Ink element to find |
Returns:
Index at which a given element can be found, or -1 if it is not present
Type
int
remove()
Removes itself from the ink model tree
Overrides:
removeChild(node)
Removes a child node from the ink model tree
Parameters:
Name | Type | Description |
---|---|---|
node | InkModel.Node |