michaelrawi Posted August 31, 2006 Posted August 31, 2006 Hi, I want to create a component that inherits a label and have it's own autosize in width (because it's use an image and a text). My question is, is there a way to know the length of a text ? Thanks in advance. Quote
Administrators PlausiblyDamp Posted August 31, 2006 Administrators Posted August 31, 2006 The graphics object you are drawing to should have a MeasureString method that will return the bounding box for a given string and font selection. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.