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 thanajo, 05-04-2021, 02:11 AM
            3 responses
            467 views
            0 likes
            Last Post tradingnasdaqprueba  
            Started by Christopher_R, Today, 12:29 AM
            0 responses
            10 views
            0 likes
            Last Post Christopher_R  
            Started by sidlercom80, 10-28-2023, 08:49 AM
            166 responses
            2,236 views
            0 likes
            Last Post sidlercom80  
            Started by thread, Yesterday, 11:58 PM
            0 responses
            4 views
            0 likes
            Last Post thread
            by thread
             
            Started by jclose, Yesterday, 09:37 PM
            0 responses
            9 views
            0 likes
            Last Post jclose
            by jclose
             
            Working...
            X