Skip to main content

Class: InkGroup

InkModel.InkGroup(idopt)

new InkGroup(idopt)

Parameters:
NameTypeAttributesDefaultDescription
idstring.<GUID><optional>auto generated GUID
Properties:
NameTypeDescription
contentArray.<InkModel.InkElement>

Extends

Methods

appendChild(node, indexopt) → InkModel.InkElement

Parameters:
NameTypeAttributesDefaultDescription
nodeInkModel.InkElementAdded or Moved child
indexint<optional>children.lengthNode position
Returns:

Added element

Type

InkModel.InkElement

contains(node) → {boolean}

Checks to see an element is in the current element hierarchy

Parameters:
NameTypeDescription
nodeInkModel.InkElementInk 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:
NameTypeDescription
nodeInkModel.InkElementInk 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:
NameTypeDescription
nodeInkModel.Node

Home