Home > Software engineering >  Enclosing AutoScaleDimensions=new System. Drawing. SizeF (6 f, 12 f); What is the meaning of this se
Enclosing AutoScaleDimensions=new System. Drawing. SizeF (6 f, 12 f); What is the meaning of this se

Time:09-30

Recently read the code, there are many don't understand, ask

CodePudding user response:

It is not the VB but c #

http://msdn.microsoft.com/zh-cn/library/vstudio/system.windows.forms.containercontrol.autoscaledimensions.aspx

Get or set the control design size,
AutoScaleDimensions attribute indicates the control, and scaling to the screen or design screen DPI or font, in particular, when the design, the Windows forms designer will set this property to monitor the current value of using loaded at run time when the form, if CurrentAutoScaleDimensions properties different from AutoScaleDimensions, can call PerformAutoScale method, for the control and all its children perform scaling, then update AutoScaleDimensions, to reflect the new scale size,

CodePudding user response:

Means when I shrink or expand interface, its role is scaling the controls? That (6 f, 12 f) is used for what, I was a rookie, I'm sorry, the MSDN wrote a little let I don't understand (TOT), and in fact I also know that this is the c # but couldn't find in the category c # questions

CodePudding user response:

According to the dpi scaling, if you use Windows display attributes of "large font" inside, then you should have a concept,

You can test,

Another plate in c #.net technology,

CodePudding user response:

Xuexizhong...

CodePudding user response:

Tried to change (6 f, 12 f), but the interface does not change, want to have a great god told to work ~ ~
  • Related