Definition
Draws text.
Syntax
DrawText(string tag, string text, int bar, double y, Color color)
DrawText(string tag, string text, int bar, double y, Color textColor, Font font, StringAlignment alignment, Color outlineColor, Color backColor, int opacity)
|
Parameters |
|
|
tag |
A user defined unique id used to reference the draw object. For example, if you pass in a value of "myTag", each time this tag is used, the same draw object is modified. If unique tags are used each time, a new draw object will be created each time. |
|
text |
The text you wish to draw |
|
bar |
The bar (x axis co-ordinate) where the draw object will be drawn. For example, a value of 10 would paint the draw object 10 bars back. |
|
y |
The y co-ordinate location the object will be drawn |
|
textColor |
The draw object text color (reference) |
|
font |
The type of font used (reference) |
|
alignment |
StringAlignment.Center
|
|
outlineColor |
Text box outline color (reference) |
|
backColor |
Text box back color (reference) |
|
opacity |
Sets the level of transparency for the fill color. Valid values between 1 - 10. |
Examples
|
// Draws text
|