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 kevinenergy, 02-17-2023, 12:42 PM
        116 responses
        2,757 views
        1 like
        Last Post kevinenergy  
        Started by franatas, 12-04-2023, 03:43 AM
        7 responses
        106 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by jpapa, Today, 07:22 AM
        0 responses
        1 view
        0 likes
        Last Post jpapa
        by jpapa
         
        Started by Jltarrau, Today, 05:57 AM
        3 responses
        7 views
        0 likes
        Last Post Jltarrau  
        Started by f.saeidi, Today, 05:56 AM
        2 responses
        8 views
        0 likes
        Last Post NinjaTrader_Erick  
        Working...
        X