NinjaScript > Language Reference > Drawing >

ITextFixed

Print this Topic Previous pageReturn to chapter overviewNext page

Definition
Represents an interface that exposes information regarding a Text Fixed IDrawObject.

 

Methods and Properties

AreaOpacity

An int value representing the opacity of the area color

AreaColor

A Color structure representing the fill color of the text box

Text

A string value representing the text to be drawn

TextColor

A Color structure representing the color of the text

TextPosition

Possible values are:

 

TextPosition.BottomLeft

TextPosition.BottomRight

TextPosition.Center

TextPosition.TopLeft

TextPosition.TopRight

Font

A Font object representing the font for the text

Pen

The Pen object used to outline the text box

 

 

Examples

protected override void OnBarUpdate()
{

    // Draws a text object
    ITextFixed textFixed = DrawTextFixed("tag1", "Text to draw", TextPosition.TopRight);

 

    // Print the text drawn on the chart

    Print(textFixed.Text);
}