Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

change color in DrawObject text

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    change color in DrawObject text

    hi,

    i want to change color in a DrawObject text..


    Text text;
    text = (Text)DrawObjects["123Up1," + upMarkers[pos].dateTime[0]];
    i want color text in different color..ex: red..

    how can i do it?

    #2
    Hello esignal,

    Thank you for your post.

    Use the TextBrush of the Text object: http://ninjatrader.com/support/helpG...en-us/text.htm

    Comment


      #3
      ok...
      but how i can recover it ? (TextBrush)..


      Text text;
      text = (Text)DrawObjects["123Up1," + upMarkers[pos].dateTime[0]];

      if i use text. i don't see property Text.Brush
      Last edited by esignal; 10-11-2016, 10:14 AM.

      Comment


        #4
        Hello esignal,

        Thank you for your patience.

        For example:
        Code:
        			Text myText = Draw.Text(this, "test", "This is test", 0, Close[0], Brushes.Blue);
        			
        			Print(myText.TextBrush);

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        669 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        378 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        111 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        575 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        580 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X