TextFixed

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Common > Drawing > Draw.TextFixed() >

TextFixed

Previous page Return to chapter overview Next page

Definition

Represents an interface that exposes information regarding a Text Fixed IDrawingTool.

 

Methods and Properties

Anchor

AAn IDrawingTool'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.Far
TextAlignment.Near

TextAlignment.Justify

(reference)

AreaOpacity

An int value representing the opacity of the area color

AreaBrush

A Brush class representing the fill color of the text box

DisplayText

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

TextPosition

Possible values are:

 

TextPosition.BottomLeft

TextPosition.BottomRight

TextPosition.Center

TextPosition.TopLeft

TextPosition.TopRight

 

 

 

Example

ns


// Instantiate a TextFixed object
TextFixed myTF = Draw.TextFixed(this, "tag1", "Text to draw", TextPosition.TopRight);
 
// Change the object's TextPosition
myTF.TextPosition = TextPosition.Center;