Access 的 Label 控件换行和 Excel 的单元格换行

来源:互联网 发布:喜马拉雅 人工智能 编辑:程序博客网 时间:2024/06/08 17:51
当我们在 Excel 单元格中输入字符时,按下 Enter 键光标就移到下面一个单元格去了。为了能在当前单元格里换行继续输入,按住 Alt 键再按 Enter,这样就不会跳到下一个单元格,而是在当前单元格里插入新的一行。

类似的,当我们在 Access 窗体的设计视图时,我们有时候会想要 Label控件的标题属性换行,放上一大段说明性文字,而不是放上多个 Label 控件。在想插入换行符的地方按 Ctrl+Enter,这样 Label 控件的标题内容就出现在新的一行了。

另外,SUN 公司的 OpenOffice 电子表格程序功能和 Excel 及其相似,但在单元格里插入换行符的方法沿用了 Access 的做法,Ctrl+Enter。

以上的方法我称之为硬换行,即插入了一个换行符(Line Break)。在以上提及的程序里,可以设置单元格或 Label 控件的属性为“Wrap Text”,显示效果上就是自动换行了。

When we type text within a cellin MS Excel, by default hitting Enter key takes us to the next cell.To add a line break in the current cell,press Alt+Enter.
Similarly,if we want to insert a line break for a Label control when in design view of an Access file,we can press Ctrl+Enter to make the cursor move to a new line.
Also, to add a line break when typing in a cell of OpenOffice spreadsheet,press the Ctrl+Enter keys.
原创粉丝点击