Need for some ui layout manipulations. Is this possible and how? Please help.
EDIT: If I know text size.
string sta = "Hi This is Word";
Font arialBold = new Font("Garamond", 11.5F);
Size st1 = TextRenderer.MeasureText(sta, arialBold);
float pixcel = st1.Width;
You are looking in wrong direction. By their nature, strings do not have lengths in in pixels or something like that. Strings are data structures totally abstracted from the way they are presented, such as fonts, colors, rendering styles, geometrical sizes, etc. Those are all some properties of some UI elements, whatever they are.—SA
27 Dec '12 - 11:27
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)