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 fx.practic, 10-15-2013, 12:53 AM
        5 responses
        5,403 views
        0 likes
        Last Post Bidder
        by Bidder
         
        Started by Shai Samuel, 07-02-2022, 02:46 PM
        4 responses
        94 views
        0 likes
        Last Post Bidder
        by Bidder
         
        Started by DJ888, Yesterday, 10:57 PM
        0 responses
        6 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by MacDad, 02-25-2024, 11:48 PM
        7 responses
        158 views
        0 likes
        Last Post loganjarosz123  
        Started by Belfortbucks, Yesterday, 09:29 PM
        0 responses
        8 views
        0 likes
        Last Post Belfortbucks  
        Working...
        X