Home > ISCH_PrimitiveText > getState_Bold
ISCH_PrimitiveText.getState_Bold() method
获取属性状态:是否加粗
签名
typescript
function getState_Bold(): boolean;1
返回值
boolean
是否加粗
示例
javascript
// 1. 创建一个加粗的测试文本(第 8 参是是否加粗)
const text = await eda.sch_PrimitiveText.create(400, 300, '嘉立创示例_重点', 0, null, null, null, true);
// 2. 读取是否加粗
const bold = text.getState_Bold();
// 3. 清理测试图元(查询类案例不留测试对象)
await eda.sch_PrimitiveText.delete([text.getState_PrimitiveId()]);
console.log('bold:', bold);1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10