Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

SimpleFont Class

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

    SimpleFont Class

    Can't seem to get this to work. Is there an additional using declaration required for this, as I don't see anything in the documentation?

    #2
    Hello wuileng,

    Thank you for your post.

    I am not sure I follow what you are looking for. Can you provide a link or additional context to the SimpleFont your are trying to access?

    Comment


      #3
      I'm trying to initialize a SimpleFont using the example code in the NT8 documentation.

      Code:
      SimpleFont myFont = new SimpleFont("Courier New", 12) { Size = 50, Bold = true };
      However, when compiling I'm getting CS0246 errors.

      Comment


        #4
        Originally posted by wuileng View Post
        I'm trying to initialize a SimpleFont using the example code in the NT8 documentation.

        Code:
        SimpleFont myFont = new SimpleFont("Courier New", 12) { Size = 50, Bold = true };
        However, when compiling I'm getting CS0246 errors.
        It's in Gui.Tools

        Code:
        NinjaTrader.Gui.Tools.SimpleFont myFont = new NinjaTrader.Gui.Tools.SimpleFont("Courier New", 12) { Size = 50, Bold = true };
        MatthewNinjaTrader Product Management

        Comment


          #5
          Originally posted by NinjaTrader_Matthew View Post
          It's in Gui.Tools

          Code:
          NinjaTrader.Gui.Tools.SimpleFont myFont = new NinjaTrader.Gui.Tools.SimpleFont("Courier New", 12) { Size = 50, Bold = true };
          I see a whole bunch of useful stuff in that namespace. Should we not have it as one of the standard using statements that the Wizard generates?

          Comment


            #6
            Originally posted by koganam View Post
            I see a whole bunch of useful stuff in that namespace. Should we not have it as one of the standard using statements that the Wizard generates?
            We discussed that, but SimpleFont in our opinion was the only object in that namespace we could see users using at any frequency. We intended to have the SimpleFont class reference that namespace explicitly and I've updated the help guide to reflect that.
            MatthewNinjaTrader Product Management

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Hwop38, 05-04-2026, 07:02 PM
            0 responses
            144 views
            0 likes
            Last Post Hwop38
            by Hwop38
             
            Started by CaptainJack, 04-24-2026, 11:07 PM
            0 responses
            297 views
            0 likes
            Last Post CaptainJack  
            Started by Mindset, 04-21-2026, 06:46 AM
            0 responses
            242 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by M4ndoo, 04-20-2026, 05:21 PM
            0 responses
            339 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Started by M4ndoo, 04-19-2026, 05:54 PM
            0 responses
            172 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Working...
            X