Home > PCB_Net > setNetColor
PCB_Net.setNetColor() method
This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
设置指定网络的颜色
Signature
typescript
setNetColor(net: string, color: IPCB_NetInfo['color']): Promise<boolean>;1
Parameters
Parameter | Type | Description |
|---|---|---|
net | string | 网络名称 |
color | IPCB_NetInfo['color'] | 网络颜色 |
Returns
Promise<boolean>
是否设置成功, false 为不存在该网络