格式化数据
出自OOo 中文指南手册翻译
Calc中的数据,可以有几种方式进行格式化。它可以编辑为一个单元格样式的一部分,而自动应用它;也可以手动应用到单元格上。有些手动格式可以使用工具栏图标来应用。更多的控制和其他的选项,选择相应一个或多个单元格,鼠标点击右键,并选择设置单元格格式。所有的格式选项将在下面讨论。 The data in Calc can be formatting in several ways. It can either be edited as part of a cell style so that it is automatically applied, or it can be applied manually to the cell. Some manual formatting can be applied using toolbar icons. For more control and extra options, select the appropriate cell or cells, right-click on it, and select Format Cells. All of the format options are discussed below. (1)
(译者注: 上面所说的第10章在哪里?)
目录 |
[编辑] 自动换行 Formatting multiple lines of text
多行文本可以用自动换行或手动换行输入同一单元格中。对于不同的情形每种方法都是有用的。 Multiple lines of text can be entered into a single cell using automatic wrapping or manual line breaks. Each method is useful for different situations.
[编辑] 使用自动换行 Using automatic wrapping
要设置文本在单元格尾部换行,请右击单元格并选择单元格格式(或从菜单栏中选择格式 > 单元格, 或按 Ctrl+1)。在 对齐 选项卡的属性下,选择自动换行。 To set text to wrap at the end of the cell, right-click on the cell and select Format Cells (or choose Format > Cells from the menu bar, or press Ctrl+1). On the Alignment tab, under Properties, select Wrap text automatically.
[编辑] 使用手动换行 Using manual line breaks
要在单元格输入时插入手动换行符,请按Ctrl+Enter。此方法在光标位于输入行中时无效。编辑文本时,首先双击单元格,然后在您想换行的位置单击。 To insert a manual line break while typing in a cell, press Ctrl+Enter. This method does not work with the cursor in the input line. When editing text, first double-click the cell, then single-click at the position where you want the line break.
当输入手动换行符时,单元格宽度并不改变。下面的插图显示了在文本首行后面使用了两个手动换行符的结果。 When a manual line break is entered, the cell width does not change. The figure below shows the results of using two manual line breaks after the first line of text.
[编辑] 缩小文本以适应单元格大小 Shrinking text to fit the cell
单元格中数据的字体大小可以自动调整为适应单元格大小。要这么做,请选中单元格格式对话框中的“缩小至单元格”。结果如以下图片所示。 The font size of the data in a cell can automatically adjust to fit in a cell. To do this, select the Shrink to fit cell option in the Format Cells dialog. The figure below shows the results.
[编辑] 格式化数字 Formatting numbers
使用格式工具条上的图标可以对单元格应用许多数字格式。请选择单元格,再点击相关的图标。 Several number formats can be applied to cells by using icons on the Formatting toolbar. Select the cell, then click the relevant icon.
![]()
数字格式图标。从左到右:货币,百分比,日期,指数,标准,添加小数点位数,删除小数点位数。 Number format icons. Left to right: currency, percentage, date, exponential, standard, add decimal place, delete decimal place.
使用数字选项卡可进行更多控制或选择其它数字格式: For more control or to select other number formats, use the Numbers tab.
- 对数据应用分类列表中的任意数据类型。 Apply any of the data types in the Category list to the data.
- 控制数字的小数点位数和前置零。 Control the number of decimal places and leading zeros.
- 输入自定义格式码。 Enter a custom format code.
The Language setting controls the local settings for the different formats such as the date order and the currency marker.
[编辑] 格式化字体 Formatting the font
要快速选择单元格要使用的字体,请选择单元格,再点击格式工具条上字体名称框旁边的箭头,并从列表中选择一个字体。 To quickly choose the font used in a cell, select the cell, then click the arrow next to the Font Name box on the Formatting toolbar and choose a font from the list.
要选择字体大小,请点击格式工具栏上字体大小框旁边的箭头。要设置其它格式,您可以使用粗体,斜体,或下划线图标。 To choose the size of the font, click the arrow next to the Font Size box on the Formatting toolbar. For other formatting, you can use the Bold, Italic, or Underline icons.
要选择字体颜色,请点击字体颜色旁边的箭头来显示一个调色板。在需要的颜色上点击。 To choose a font color, click the arrow next to the Font Color icon to display a color palette. Click on the required color.
(要自定义颜色,使用工具 > 选项 > OpenOffice.org > 颜色。参见第14篇以获取更多信息。 To define custom colors, use Tools > Options > OpenOffice.org > Colors. See Chapter 14 for more information. )
要指定单元格的语言((译者注: ...)),请使用格式化单元格对话框中的字体标签。使用字体效果标签来设置其它字体特性。参见Calc 指南第10篇以获取更多信息。 To specify the language of the cell (useful because it allows different languages to exist in the same document and be spell checked correctly), use the Font tab of the Format Cells dialog. Use the Font Effects tab to set other font characteristics. See Chapter 10 of the Calc Guide for more information.
[编辑] 格式化单元格边框 Formatting the cell borders (33)
要快速为一个单元格边框选择一个线条样式和颜色,请点击格式工具栏上线条样式和线条颜色图标旁边的小箭头。在两种情况下,会显示一个选择调色板。 To quickly choose a line style and color for the borders of a cell, click the small arrows next to the Line Style and Line Color icons on the Formatting toolbar. In each case, a palette of choices is displayed. (34)
欲了解更多的控制,包括单元格边界和文字之间的间距,使用单元格格式对话框的边界选项卡。在那里,您还可以定义阴影。详见Calc指南第10章。For more control, including the spacing between the cell borders and the text, use the Borders tab of the Format Cells dialog. There you can also define a shadow. See Chapter 10 of the Calc Guide for details. (35)
[编辑] 格式化单元格的背景 Formatting the cell background (37)
要快速为一个单元格选择背景颜色,按一下格式工具栏上背景颜色图标旁边的小箭头。显示一个颜色选择的调色板,类似于字体颜色的调色板。To quickly choose a background color for a cell, click the small arrow next to the Background Color icon on the Formatting toolbar. A palette of color choices, similar to the Font Color palette, is displayed. (38)
(要定义自定义颜色,请使用工具 > 选项 > OpenOffice.org > 颜色。更多信息见第14章。) (To define custom colors, use Tools > Options > OpenOffice.org > Colors. See Chapter 14 for more information.) (39)
您还可以使用单元格格式对话框的背景选项卡。详见第10章。 You can also use the Background tab of the Format Cells dialog. See Chapter 10 for details. (40)


