> For AI agents: the complete documentation index is available at /next/zh/llms.txt, the full documentation bundle is available at /next/zh/llms-full.txt.

# getTemplateSize

APISummary
获取当前模板的大小。

## 语法

### Harmony

```typescript
public getTemplateSize(): number;
```

#### 返回值

- 模板大小。

## 兼容性

**Compatibility Table**

**Query:** `lynx-native-api.template-bundle.get-template-size`

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-native-api/template-bundle/get-template-size.json)

| Feature | Android | HarmonyOS | iOS | macOS | Windows | Web |
| --- | --- | --- | --- | --- | --- | --- |
| get-template-size | Yes (2.8) | Yes (3.4) | No | No | No | No |

**`get-template-size`**

Get the size of current template.

**Specifications:**

