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