Text

View as Markdown

Definition

Represents an interface that exposes information regarding a Text IDrawingTool.

Methods and Properties

AnchorAn IDrawingTool’s’s ChartAnchor representing the point of the drawing object
YPixelOffsetAn int value representing the offset value in pixels from within the text box area
AlignmentPossible values are:
• TextAlignment.Center
• TextAlignment.Left
• TextAlignment.Right
• TextAlignment.Justify
MSDN reference
AreaOpacityAn int value representing the opacity of the area color
AreaBrushA Brush class representing the fill color of the text box
TextA string value representing the text to be drawn
TextBrushA Brush class representing the color of the text
FontA Font object representing the font for the text
OutlineStrokeThe Stroke object used to outline the text box

Examples

1// Instantiate a Text object
2Text myText = Draw.Text(this, "tag1", "Text to draw", 10, High[10] + (5 * TickSize), Brushes.Black);
3
4// Change the object's DisplayText
5myText.DisplayText = "New Display Text";