SetIndexSymbol
Sets a symbol to be used for drawing points in a buffer.
Syntax
SetIndexSymbol(bufferIndex: number, symbol: number, xoffs: number, yoffs: number): void
Parameters
bufferIndex
- A number representing the index of the buffer.symbol
- A number representing the symbol code to use.xoffs
- A number representing the X-offset for the symbol.yoffs
- A number representing the Y-offset for the symbol.
Return Value
This method does not return a value.
Description
The SetIndexSymbol
method sets a symbol to be used for drawing points in a buffer.
Example
// Set buffer 0 to use symbol 217 (arrow up) with no offset
this.api.SetIndexSymbol(0, 217, 0, 0);
// Set buffer 1 to use symbol 218 (arrow down) with a slight offset
this.api.SetIndexSymbol(1, 218, 2, -2);
Last updated