How to use Font as a variable?

前端 未结 1 1472
执笔经年
执笔经年 2020-12-22 14:19

I would have a quick question : What do I have to include into a visual C++/CLR project to be able to use Font^ ? I have tried to create a ref class, something

相关标签:
1条回答
  • 2020-12-22 14:55

    I had to have:

    System::Drawing::Font ^printFont = gcnew System::Drawing::Font("Arial", 10);
    

    instead of :

    Font ^printFont = gcnew System::Drawing::Font("Arial", 10);
    
    0 讨论(0)
提交回复
热议问题