## Cell.Characters method

返回一个 Characters 对象，该对象表示单元格文本中的一系列字符。

```csharp
public FontSetting Characters(int startIndex, int length)
```

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| startIndex | Int32 | 字符开头的索引。 |
| length | Int32 | 字符数。 |

### 返回值

字符对象。

### 评论

此方法仅适用于具有字符串值的单元格。

### 例子

```csharp
[C#]
Workbook excel = new Workbook();
Cells cells = excel.Worksheets[0].Cells;
cells["A1"].PutValue("Helloworld");
cells["A1"].Characters(5, 5).Font.IsBold = true;
cells["A1"].Characters(5, 5).Font.Color = Color.Blue;

[Visual Basic]
Dim excel as Workbook = new Workbook()
Dim cells as Cells = exce.Worksheets(0).Cells
cells("A1").PutValue("Helloworld")
cells("A1").Characters(5, 5).Font.IsBold = True
cells("A1").Characters(5, 5).Font.Color = Color.Blue
```

### 也可以看看

* class [FontSetting](../../fontsetting)
* class [Cell](../../cell)
* 命名空间 [Aspose.Cells](../../cell)
* 部件 [Aspose.Cells](../../../)

<!-- DO NOT EDIT: generated by xmldocmd for Aspose.Cells.dll -->
