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 rajendrasubedi2023, Today, 09:50 AM
        1 response
        10 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by geotrades1, Today, 10:02 AM
        0 responses
        3 views
        0 likes
        Last Post geotrades1  
        Started by ender_wiggum, Today, 09:50 AM
        0 responses
        4 views
        0 likes
        Last Post ender_wiggum  
        Started by bmartz, Today, 09:30 AM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_Erick  
        Started by geddyisodin, Today, 05:20 AM
        3 responses
        24 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Working...
        X