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 gentlebenthebear, Today, 01:30 AM
            2 responses
            13 views
            0 likes
            Last Post gentlebenthebear  
            Started by Kaledus, Today, 01:29 PM
            2 responses
            7 views
            0 likes
            Last Post Kaledus
            by Kaledus
             
            Started by frankthearm, Yesterday, 09:08 AM
            13 responses
            45 views
            0 likes
            Last Post frankthearm  
            Started by PaulMohn, Today, 12:36 PM
            2 responses
            16 views
            0 likes
            Last Post PaulMohn  
            Started by Conceptzx, 10-11-2022, 06:38 AM
            2 responses
            56 views
            0 likes
            Last Post PhillT
            by PhillT
             
            Working...
            X