Text
Definition
Represents an interface that exposes information regarding a Text IDrawingTool.
Methods and Properties
| Anchor | An IDrawingTool’s’s ChartAnchor representing the point of the drawing object |
|---|---|
| YPixelOffset | An int value representing the offset value in pixels from within the text box area |
| Alignment | Possible values are: • TextAlignment.Center • TextAlignment.Left • TextAlignment.Right • TextAlignment.Justify MSDN reference |
| AreaOpacity | An int value representing the opacity of the area color |
| AreaBrush | A Brush class representing the fill color of the text box |
| Text | A string value representing the text to be drawn |
| TextBrush | A Brush class representing the color of the text |
| Font | A Font object representing the font for the text |
| OutlineStroke | The Stroke object used to outline the text box |
Examples
1 // Instantiate a Text object 2 Text myText = Draw.Text(this, "tag1", "Text to draw", 10, High[10] + (5 * TickSize), Brushes.Black); 3 4 // Change the object's DisplayText 5 myText.DisplayText = "New Display Text";

