Button. Text attributes wrap (button. bounds wrap automatically)

Source: Internet
Author: User
We all know that it is \ n, but it is not feasible to directly enter \ n in the attribute Panel. It must be used. Code . Button1.text = "first line \ n Second line ";

I am working on revit development. I cannot use \ n when setting the ribbon text to change the line. The Brick House says there are other characters and I have never been contacted.

In addition, it is the button. bounds attribute. It is said that automatic line feed can be controlled. I did not try it. Anyone knows. Please kindly advise. Refer to msdn: Http://msdn.microsoft.com/en-us/library/system.windows.forms.control.bounds (V = vs.71). aspx
The following is a piece of code: Button buttonhelp =   New Button ();
Buttonhelp. Bounds =   New Rectangle ( 10 , 10 , 75 , 25 );
// Set the text property of the button.
Buttonhelp. Text =   " & Help " ;

I didn't understand how to use it. Is it similar to VC ++ control controls? Use location and rectangle to control the location.
URL: http://greatverve.cnblogs.com/archive/2011/07/01/button-text-bounds.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.