setProperty()

設置指標的屬性
setProperty(name:int, value:mixed)

Parameters

Name Type Действие Значение по умолчанию
name int 物業名稱
value mixed 適當的價值

Description

在構造函數中使用。 可以在以下位置查看屬性列表 Property

Example

// 設置屬性 SeparateWindow, 由於該指示器顯示在單獨的窗口中 
this.setProperty(Property.SeparateWindow, true);
// 設置屬性 ShortName, 這給整個指標一個名稱 "Indicator"
this.setProperty(Property.ShortName, "Indicator");