## ShapeCollection.CopyCommentsInRange method

Скопировать все комментарии в диапазоне.

```csharp
public void CopyCommentsInRange(ShapeCollection shapes, CellArea ca, int destRow, int destColumn)
```

| Параметр | Тип | Описание |
| --- | --- | --- |
| shapes | ShapeCollection | Исходные формы. |
| ca | CellArea | Исходный диапазон. |
| destRow | Int32 | Начальная строка диапазона назначения. |
| destColumn | Int32 | Начальный столбец диапазона назначения. |

### Примеры

```csharp

[C#]
CommentCollection comments = workbook.Worksheets[0].Comments;

//Добавить комментарий к ячейке A1
int commentIndex = comments.Add(0, 0);
Comment comment = comments[commentIndex];
comment.Note = "First note.";
comment.Font.Name = "Times New Roman";

//Добавить комментарий к ячейке B2
comments.Add("B2");
comment = comments["B2"];
comment.Note = "Second note.";

CellArea area1 = new CellArea();
area1.StartColumn = 1;
area1.StartRow = 1;
area1.EndColumn = 5;
area1.EndRow = 4;

// копируем
shapes.CopyCommentsInRange(shapes, area1, 5, 1);

```

### Смотрите также

* struct [CellArea](../../../aspose.cells/cellarea)
* class [ShapeCollection](../../shapecollection)
* пространство имен [Aspose.Cells.Drawing](../../shapecollection)
* сборка [Aspose.Cells](../../../)

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