Reputation: 5760
I'm working through a GroupBox
:
foreach (Control ctrl in GroupBox.Controls) {
...
}
I need to get the TextMetrics
so I can work out the size of the controls in characters based on the Font
.
I can see that TextMetrics
provides everything I need, how do I get it for the current control?
I'm working on an application that creates a web-version of the C# application form returning XML with all the information in it to create a representation of the application. As HTML controls are very different I want to use the INPUT
tag for TextBox
es and the size
and maxlength
attributes to size INPUT
tags.
Upvotes: 0
Views: 49