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 CaptainJack, 05-29-2026, 05:09 AM
        0 responses
        45 views
        0 likes
        Last Post CaptainJack  
        Started by CaptainJack, 05-29-2026, 12:02 AM
        0 responses
        30 views
        0 likes
        Last Post CaptainJack  
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        99 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        177 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        170 views
        0 likes
        Last Post CarlTrading  
        Working...
        X