- ChartId
- Window
- Name
- NumPoints
- Attach
- SetPoint
- Delete
- Detach
- ShiftObject
- ShiftPoint
- Time
- Price
- Color
- Style
- Width
- Background
- Selected
- Selectable
- Description
- Tooltip
- Timeframes
- Z_Order
- CreateTime
- LevelsCount
- LevelColor
- LevelStyle
- LevelWidth
- LevelValue
- LevelDescription
- GetInteger
- SetInteger
- GetDouble
- SetDouble
- GetString
- SetString
- Save
- Load
- Type
GetInteger
可供简便地访问 MQL5 API ObjectGetInteger() 函数来获取绑定实例的图形类的整数属性值。函数有两个调用版本:
无需正确性验证即可获取一个属性值
long GetInteger(
|
参数
prop_id
[输入] 整数图形属性 ID。
modifier=-1
[输入] 限定符 (索引) 整数特征。
返回值
如果成功, 则返回整数类型的属性值, 若出错, 则返回 0。
验证处治的正确性再获取属性值
bool GetInteger(
|
参数
prop_id
[输入] 对象的整数图形属性值。
modifier
[输入] 限定符 (索引) 整数特征。
value
[输出] 容纳属性整数值的变量引用。
返回值
true - 如果成功, false -如果您未能获取一个整数特征值。
例如:
//--- 例程 CChartObject::GetInteger
|