# Javascript: Annotations.setStampList Method

> Replaces the toolbar's stamp definitions.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 29.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API - Document Viewer > Javascript: Annotations.setStampList Method
- **240 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript-document-viewer/annotations/setstamplist-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript-document-viewer/annotations/setstamplist-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript-document-viewer/annotations/setstamplist-method/llms-full.txt

---

### Description

Replaces the toolbar's stamp definitions.

### Syntax

```javascript
<void> Annotations.setStampList(<StampDefinition[]> stamps)
```

### Parameters

| Parameter | Description |
|---|---|
| stamps | Stamp definitions that replace the current list. |

### Return Value

Replaces the toolbar's stamp definitions.

### Examples

The following example demonstrates `annotations.setStampList` in a practical Document Viewer workflow. Loads a custom stamp list into the annotations.

```javascript
function configureAnnotationStamps(stamps) {
    TXDocumentViewer.annotations.setStampList(stamps);
    console.log("Configured annotation stamps:", stamps.length);
}
```

---

## Nearby

- **Previous:** [Javascript: Annotations.load Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript-document-viewer/annotations/load-method/llms-full.txt)
- **Next:** [Javascript: Annotations.showSidebar Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript-document-viewer/annotations/showsidebar-method/llms-full.txt)
