int ObjectsDeleteAll(int window=EMPTY, int type=EMPTY)
Removes all objects of the specified type and in the specified sub-window
of the chart. The function returns the count of removed objects. To get
the detailed error information, one has to call the GetLastError() function.
指定した型と、指定したチャートのサブ・ウィンドウにあるオブジェクトをすべて取り除きます。この関数は、取り除かれたオブジェクトの数を返します。詳細なエラー情報を取得するには、GetLastError() 関数を呼び出します。
Notes: The chart sub-windows (if there are sub-windows with indicators in the
chart) are numbered starting from 1. The chart main window always exists
and has the 0 index. If the window index is missing or it has the value
of -1, the objects will be removed from the entire chart.
注意: チャートのサブ・ウィンドウ(チャートにインディケータのサブ・ウィンドウがある場合)は 1 から番号が開始されます。チャートのメイン・ウィンドウは、常に存在して
0 のインデックスをを持っています。もし、ウィンドウ インデックスが存在しないか、-1 の値に設定されている場合は、チャート全体からオブジェクトが取り除かれます。
If the type value equals to -1 or this parameter is missing, all objects will be removed from the specified sub-window.
型の値を -1 に等しい、または、このパラメータが指定されていない場合は、すべてのオブジェクトを指定したサブ・ウィンドウから取り除きます。
Parameters: パラメータ:
| window |
- |
Optional parameter. Index of the window in which the objects will be deleted.
Must exceed or equal to -1 (EMPTY, the default value) and be less than WindowsTotal().
省略可能なパラメータです。削除するオブジェクトのウィンドウのインデックス。-1(規定値は EMPTY)以上で、WindowsTotal()より小さい必要があります。 |
| type |
- |
Optional parameter. An object type to be deleted.
It can be any of the Object type enumeration values or EMPTY constant to delete all objects with any types.
省略可能なパラメータです。削除するオブジェクト型。オブジェクト型の列挙値、または、任意の型を持つすべてのオブジェクトを削除するには、EMPYT定数を指定します。 |
|
Sample: サンプル:
ObjectsDeleteAll(2, OBJ_HLINE); // all horizontal lines are removed from the 2nd sub-window.
2番目のサブ ウィンドウから、すべての水平線を取り除く。
ObjectsDeleteAll(2); // all objects are removed from the 2nd sub-window.
2番目のサブ ウィンドウから、すべてのオブジェクトを取り除く。
ObjectsDeleteAll(); // all objects are removed from the chart.
チャートから、すべてのオブジェクトを取り除く。
|