createObject()

為指標創建圖形項
createObject(type:string, name:string)

Parameters

Name Type Действие Значение по умолчанию
type string 圖形對象的類型
name string 對象的唯一名稱

Return value

新圖形對象

Description

Используется в методе onUpdate. Список графических типов можно посмотреть в GObject.Type

Example

// 創建類型的圖形對象 GObject.Type.Arrow 名稱  GraphName
this.createObject(GObject.Type.Arrow, GraphName);