Experimental: this API is experimental and might be changed or removed in the future.

StackNode.AcceptsElement

切换到手册
protected bool AcceptsElement (Experimental.UIElements.GraphView.GraphElement element, ref int proposedIndex, int maxIndex);

参数

element要添加的元素。
proposedIndexThe index where the element would be added. This index can be overwritten.
maxIndexThe maximum value of the index.

返回

bool Returns true if the specified GraphElement can be added. Returns false otherwise.

描述

Checks whether the specified GraphElement can be added to this StackNode.