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 Mindset, Today, 06:46 AM
            0 responses
            8 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by M4ndoo, Yesterday, 05:21 PM
            0 responses
            12 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Started by M4ndoo, 04-19-2026, 05:54 PM
            0 responses
            15 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Started by cmoran13, 04-16-2026, 01:02 PM
            0 responses
            82 views
            0 likes
            Last Post cmoran13  
            Started by PaulMohn, 04-10-2026, 11:11 AM
            0 responses
            47 views
            0 likes
            Last Post PaulMohn  
            Working...
            X