# IPCB\_PrimitiveAttribute class

属性图元

## Signature

```typescript
declare class IPCB_PrimitiveAttribute implements IPCB_Primitive 
```
**Implements:** [IPCB\_Primitive](../interfaces/IPCB_Primitive.md)

## Constructors

<table><thead><tr><th>

Constructor


</th><th>

Modifiers


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

[(constructor)(layer, x, y, key, value, keyVisible, valueVisible, fontFamily, fontSize, lineWidth, alignMode, rotation, reverse, expansion, mirror, primitiveLock, primitiveId, parentPrimitiveId)](./IPCB_PrimitiveAttribute.md)


</td><td>


</td><td>

Constructs a new instance of the `IPCB_PrimitiveAttribute` class


</td></tr>
</tbody></table>

## Methods

<table><thead><tr><th>

Method


</th><th>

Modifiers


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

[getState\_AlignMode()](./IPCB_PrimitiveAttribute.md)


</td><td>


</td><td>

获取属性状态：对齐模式


</td></tr>
<tr><td>

[getState\_Expansion()](./IPCB_PrimitiveAttribute.md)


</td><td>


</td><td>

获取属性状态：反相扩展


</td></tr>
<tr><td>

[getState\_FontFamily()](./IPCB_PrimitiveAttribute.md)


</td><td>


</td><td>

获取属性状态：字体


</td></tr>
<tr><td>

[getState\_FontSize()](./IPCB_PrimitiveAttribute.md)


</td><td>


</td><td>

获取属性状态：字号


</td></tr>
<tr><td>

[getState\_Key()](./IPCB_PrimitiveAttribute.md)


</td><td>


</td><td>

获取属性状态：Key


</td></tr>
<tr><td>

[getState\_KeyVisible()](./IPCB_PrimitiveAttribute.md)


</td><td>


</td><td>

获取属性状态：Key 是否可见


</td></tr>
<tr><td>

[getState\_Layer()](./IPCB_PrimitiveAttribute.md)


</td><td>


</td><td>

获取属性状态：层


</td></tr>
<tr><td>

[getState\_LineWidth()](./IPCB_PrimitiveAttribute.md)


</td><td>


</td><td>

获取属性状态：线宽


</td></tr>
<tr><td>

[getState\_Mirror()](./IPCB_PrimitiveAttribute.md)


</td><td>


</td><td>

获取属性状态：是否镜像


</td></tr>
<tr><td>

[getState\_ParentPrimitiveId()](./IPCB_PrimitiveAttribute.md)


</td><td>


</td><td>

获取属性状态：关联的父图元 ID


</td></tr>
<tr><td>

[getState\_PrimitiveId()](./IPCB_PrimitiveAttribute.md)


</td><td>


</td><td>

获取属性状态：图元 ID


</td></tr>
<tr><td>

[getState\_PrimitiveLock()](./IPCB_PrimitiveAttribute.md)


</td><td>


</td><td>

获取属性状态：是否锁定


</td></tr>
<tr><td>

[getState\_PrimitiveType()](./IPCB_PrimitiveAttribute.md)


</td><td>


</td><td>

获取属性状态：图元类型


</td></tr>
<tr><td>

[getState\_Reverse()](./IPCB_PrimitiveAttribute.md)


</td><td>


</td><td>

获取属性状态：是否反相


</td></tr>
<tr><td>

[getState\_Rotation()](./IPCB_PrimitiveAttribute.md)


</td><td>


</td><td>

获取属性状态：旋转角度


</td></tr>
<tr><td>

[getState\_Value()](./IPCB_PrimitiveAttribute.md)


</td><td>


</td><td>

获取属性状态：Value


</td></tr>
<tr><td>

[getState\_ValueVisible()](./IPCB_PrimitiveAttribute.md)


</td><td>


</td><td>

获取属性状态：Value 是否可见


</td></tr>
<tr><td>

[getState\_X()](./IPCB_PrimitiveAttribute.md)


</td><td>


</td><td>

获取属性状态：坐标 X


</td></tr>
<tr><td>

[getState\_Y()](./IPCB_PrimitiveAttribute.md)


</td><td>


</td><td>

获取属性状态：坐标 Y


</td></tr>
<tr><td>

[isAsync()](./IPCB_PrimitiveAttribute.md)


</td><td>


</td><td>

查询图元是否为异步图元


</td></tr>
<tr><td>

[setState\_AlignMode(alignMode)](./IPCB_PrimitiveAttribute.md)


</td><td>


</td><td>

**_(BETA)_** 设置属性状态：对齐模式


</td></tr>
<tr><td>

[setState\_Expansion(expansion)](./IPCB_PrimitiveAttribute.md)


</td><td>


</td><td>

**_(BETA)_** 设置属性状态：反相扩展


</td></tr>
<tr><td>

[setState\_FontFamily(fontFamily)](./IPCB_PrimitiveAttribute.md)


</td><td>


</td><td>

**_(BETA)_** 设置属性状态：字体


</td></tr>
<tr><td>

[setState\_FontSize(fontSize)](./IPCB_PrimitiveAttribute.md)


</td><td>


</td><td>

**_(BETA)_** 设置属性状态：字号


</td></tr>
<tr><td>

[setState\_Key(key)](./IPCB_PrimitiveAttribute.md)


</td><td>


</td><td>

**_(BETA)_** 设置属性状态：Key


</td></tr>
<tr><td>

[setState\_KeyVisible(keyVisible)](./IPCB_PrimitiveAttribute.md)


</td><td>


</td><td>

**_(BETA)_** 设置属性状态：Key 是否可见


</td></tr>
<tr><td>

[setState\_Layer(layer)](./IPCB_PrimitiveAttribute.md)


</td><td>


</td><td>

**_(BETA)_** 设置属性状态：层


</td></tr>
<tr><td>

[setState\_LineWidth(lineWidth)](./IPCB_PrimitiveAttribute.md)


</td><td>


</td><td>

**_(BETA)_** 设置属性状态：线宽


</td></tr>
<tr><td>

[setState\_Mirror(mirror)](./IPCB_PrimitiveAttribute.md)


</td><td>


</td><td>

**_(BETA)_** 设置属性状态：是否镜像


</td></tr>
<tr><td>

[setState\_PrimitiveLock(primitiveLock)](./IPCB_PrimitiveAttribute.md)


</td><td>


</td><td>

**_(BETA)_** 设置属性状态：是否锁定


</td></tr>
<tr><td>

[setState\_Reverse(reverse)](./IPCB_PrimitiveAttribute.md)


</td><td>


</td><td>

**_(BETA)_** 设置属性状态：是否反相


</td></tr>
<tr><td>

[setState\_Rotation(rotation)](./IPCB_PrimitiveAttribute.md)


</td><td>


</td><td>

**_(BETA)_** 设置属性状态：旋转角度


</td></tr>
<tr><td>

[setState\_Value(value)](./IPCB_PrimitiveAttribute.md)


</td><td>


</td><td>

**_(BETA)_** 设置属性状态：Value


</td></tr>
<tr><td>

[setState\_ValueVisible(valueVisible)](./IPCB_PrimitiveAttribute.md)


</td><td>


</td><td>

**_(BETA)_** 设置属性状态：Value 是否可见


</td></tr>
<tr><td>

[setState\_X(x)](./IPCB_PrimitiveAttribute.md)


</td><td>


</td><td>

**_(BETA)_** 设置属性状态：坐标 X


</td></tr>
<tr><td>

[setState\_Y(y)](./IPCB_PrimitiveAttribute.md)


</td><td>


</td><td>

**_(BETA)_** 设置属性状态：坐标 Y


</td></tr>
<tr><td>

[toAsync()](./IPCB_PrimitiveAttribute.md)


</td><td>


</td><td>

将图元转换为异步图元


</td></tr>
<tr><td>

[toSync()](./IPCB_PrimitiveAttribute.md)


</td><td>


</td><td>

将图元转换为同步图元


</td></tr>
</tbody></table>

---

## 构造函数详情

### _constructor_

# IPCB\_PrimitiveAttribute.(constructor)

Constructs a new instance of the `IPCB_PrimitiveAttribute` class

## Signature

```typescript
constructor(layer: TPCB_LayersOfImage, x: number | null, y: number | null, key: string, value: string, keyVisible: boolean, valueVisible: boolean, fontFamily: string, fontSize: number, lineWidth: number, alignMode: EPCB_PrimitiveStringAlignMode, rotation: number, reverse: boolean, expansion: number, mirror: boolean, primitiveLock: boolean, primitiveId: string, parentPrimitiveId: string);
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

layer


</td><td>

[TPCB\_LayersOfImage](../types/TPCB_LayersOfImage.md)


</td><td>


</td></tr>
<tr><td>

x


</td><td>

number \| null


</td><td>


</td></tr>
<tr><td>

y


</td><td>

number \| null


</td><td>


</td></tr>
<tr><td>

key


</td><td>

string


</td><td>


</td></tr>
<tr><td>

value


</td><td>

string


</td><td>


</td></tr>
<tr><td>

keyVisible


</td><td>

boolean


</td><td>


</td></tr>
<tr><td>

valueVisible


</td><td>

boolean


</td><td>


</td></tr>
<tr><td>

fontFamily


</td><td>

string


</td><td>


</td></tr>
<tr><td>

fontSize


</td><td>

number


</td><td>


</td></tr>
<tr><td>

lineWidth


</td><td>

number


</td><td>


</td></tr>
<tr><td>

alignMode


</td><td>

[EPCB\_PrimitiveStringAlignMode](../enums/EPCB_PrimitiveStringAlignMode.md)


</td><td>


</td></tr>
<tr><td>

rotation


</td><td>

number


</td><td>


</td></tr>
<tr><td>

reverse


</td><td>

boolean


</td><td>


</td></tr>
<tr><td>

expansion


</td><td>

number


</td><td>


</td></tr>
<tr><td>

mirror


</td><td>

boolean


</td><td>


</td></tr>
<tr><td>

primitiveLock


</td><td>

boolean


</td><td>


</td></tr>
<tr><td>

primitiveId


</td><td>

string


</td><td>


</td></tr>
<tr><td>

parentPrimitiveId


</td><td>

string


</td><td>


</td></tr>
</tbody></table>


---

## 方法详情

### getstate_alignmode

# IPCB\_PrimitiveAttribute.getState\_AlignMode() method

获取属性状态：对齐模式

## Signature

```typescript
getState_AlignMode(): EPCB_PrimitiveStringAlignMode;
```


## Returns

[EPCB\_PrimitiveStringAlignMode](../enums/EPCB_PrimitiveStringAlignMode.md)

对齐模式

### getstate_expansion

# IPCB\_PrimitiveAttribute.getState\_Expansion() method

获取属性状态：反相扩展

## Signature

```typescript
getState_Expansion(): number;
```


## Returns

number

反相扩展

### getstate_fontfamily

# IPCB\_PrimitiveAttribute.getState\_FontFamily() method

获取属性状态：字体

## Signature

```typescript
getState_FontFamily(): string;
```


## Returns

string

字体

### getstate_fontsize

# IPCB\_PrimitiveAttribute.getState\_FontSize() method

获取属性状态：字号

## Signature

```typescript
getState_FontSize(): number;
```


## Returns

number

字号

### getstate_key

# IPCB\_PrimitiveAttribute.getState\_Key() method

获取属性状态：Key

## Signature

```typescript
getState_Key(): string;
```


## Returns

string

Key

### getstate_keyvisible

# IPCB\_PrimitiveAttribute.getState\_KeyVisible() method

获取属性状态：Key 是否可见

## Signature

```typescript
getState_KeyVisible(): boolean;
```


## Returns

boolean

Key 是否可见

### getstate_layer

# IPCB\_PrimitiveAttribute.getState\_Layer() method

获取属性状态：层

## Signature

```typescript
getState_Layer(): TPCB_LayersOfImage;
```


## Returns

[TPCB\_LayersOfImage](../types/TPCB_LayersOfImage.md)

层

### getstate_linewidth

# IPCB\_PrimitiveAttribute.getState\_LineWidth() method

获取属性状态：线宽

## Signature

```typescript
getState_LineWidth(): number;
```


## Returns

number

线宽

### getstate_mirror

# IPCB\_PrimitiveAttribute.getState\_Mirror() method

获取属性状态：是否镜像

## Signature

```typescript
getState_Mirror(): boolean;
```


## Returns

boolean

是否镜像

### getstate_parentprimitiveid

# IPCB\_PrimitiveAttribute.getState\_ParentPrimitiveId() method

获取属性状态：关联的父图元 ID

## Signature

```typescript
getState_ParentPrimitiveId(): string;
```


## Returns

string

关联的父图元 ID

### getstate_primitiveid

# IPCB\_PrimitiveAttribute.getState\_PrimitiveId() method

获取属性状态：图元 ID

## Signature

```typescript
getState_PrimitiveId(): string;
```


## Returns

string

图元 ID

### getstate_primitivelock

# IPCB\_PrimitiveAttribute.getState\_PrimitiveLock() method

获取属性状态：是否锁定

## Signature

```typescript
getState_PrimitiveLock(): boolean;
```


## Returns

boolean

是否锁定

### getstate_primitivetype

# IPCB\_PrimitiveAttribute.getState\_PrimitiveType() method

获取属性状态：图元类型

## Signature

```typescript
getState_PrimitiveType(): EPCB_PrimitiveType;
```


## Returns

[EPCB\_PrimitiveType](../enums/EPCB_PrimitiveType.md)

图元类型

### getstate_reverse

# IPCB\_PrimitiveAttribute.getState\_Reverse() method

获取属性状态：是否反相

## Signature

```typescript
getState_Reverse(): boolean;
```


## Returns

boolean

是否反相

### getstate_rotation

# IPCB\_PrimitiveAttribute.getState\_Rotation() method

获取属性状态：旋转角度

## Signature

```typescript
getState_Rotation(): number;
```


## Returns

number

旋转角度

### getstate_value

# IPCB\_PrimitiveAttribute.getState\_Value() method

获取属性状态：Value

## Signature

```typescript
getState_Value(): string;
```


## Returns

string

Value

### getstate_valuevisible

# IPCB\_PrimitiveAttribute.getState\_ValueVisible() method

获取属性状态：Value 是否可见

## Signature

```typescript
getState_ValueVisible(): boolean;
```


## Returns

boolean

Value 是否可见

### getstate_x

# IPCB\_PrimitiveAttribute.getState\_X() method

获取属性状态：坐标 X

## Signature

```typescript
getState_X(): number | null;
```


## Returns

number \| null

坐标 X

### getstate_y

# IPCB\_PrimitiveAttribute.getState\_Y() method

获取属性状态：坐标 Y

## Signature

```typescript
getState_Y(): number | null;
```


## Returns

number \| null

坐标 Y

### isasync

# IPCB\_PrimitiveAttribute.isAsync() method

查询图元是否为异步图元

## Signature

```typescript
isAsync(): boolean;
```


## Returns

boolean

是否为异步图元

### setstate_alignmode

# IPCB\_PrimitiveAttribute.setState\_AlignMode() 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
setState_AlignMode(alignMode: EPCB_PrimitiveStringAlignMode): IPCB_PrimitiveAttribute;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

alignMode


</td><td>

[EPCB\_PrimitiveStringAlignMode](../enums/EPCB_PrimitiveStringAlignMode.md)


</td><td>

对齐模式


</td></tr>
</tbody></table>



## Returns

[IPCB\_PrimitiveAttribute](./IPCB_PrimitiveAttribute.md)

属性图元对象

### setstate_expansion

# IPCB\_PrimitiveAttribute.setState\_Expansion() 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
setState_Expansion(expansion: number): IPCB_PrimitiveAttribute;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

expansion


</td><td>

number


</td><td>

反相扩展


</td></tr>
</tbody></table>



## Returns

[IPCB\_PrimitiveAttribute](./IPCB_PrimitiveAttribute.md)

属性图元对象

### setstate_fontfamily

# IPCB\_PrimitiveAttribute.setState\_FontFamily() 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
setState_FontFamily(fontFamily: string): IPCB_PrimitiveAttribute;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

fontFamily


</td><td>

string


</td><td>

字体


</td></tr>
</tbody></table>



## Returns

[IPCB\_PrimitiveAttribute](./IPCB_PrimitiveAttribute.md)

属性图元对象

### setstate_fontsize

# IPCB\_PrimitiveAttribute.setState\_FontSize() 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
setState_FontSize(fontSize: number): IPCB_PrimitiveAttribute;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

fontSize


</td><td>

number


</td><td>

字号


</td></tr>
</tbody></table>



## Returns

[IPCB\_PrimitiveAttribute](./IPCB_PrimitiveAttribute.md)

属性图元对象

### setstate_key

# IPCB\_PrimitiveAttribute.setState\_Key() 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.

设置属性状态：Key

## Signature

```typescript
setState_Key(key: string): IPCB_PrimitiveAttribute;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

key


</td><td>

string


</td><td>

Key


</td></tr>
</tbody></table>



## Returns

[IPCB\_PrimitiveAttribute](./IPCB_PrimitiveAttribute.md)

属性图元对象

### setstate_keyvisible

# IPCB\_PrimitiveAttribute.setState\_KeyVisible() 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.

设置属性状态：Key 是否可见

## Signature

```typescript
setState_KeyVisible(keyVisible: boolean): IPCB_PrimitiveAttribute;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

keyVisible


</td><td>

boolean


</td><td>

Key 是否可见


</td></tr>
</tbody></table>



## Returns

[IPCB\_PrimitiveAttribute](./IPCB_PrimitiveAttribute.md)

属性图元对象

### setstate_layer

# IPCB\_PrimitiveAttribute.setState\_Layer() 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
setState_Layer(layer: TPCB_LayersOfImage): IPCB_PrimitiveAttribute;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

layer


</td><td>

[TPCB\_LayersOfImage](../types/TPCB_LayersOfImage.md)


</td><td>

层


</td></tr>
</tbody></table>



## Returns

[IPCB\_PrimitiveAttribute](./IPCB_PrimitiveAttribute.md)

属性图元对象

### setstate_linewidth

# IPCB\_PrimitiveAttribute.setState\_LineWidth() 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
setState_LineWidth(lineWidth: number): IPCB_PrimitiveAttribute;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

lineWidth


</td><td>

number


</td><td>

线宽


</td></tr>
</tbody></table>



## Returns

[IPCB\_PrimitiveAttribute](./IPCB_PrimitiveAttribute.md)

属性图元对象

### setstate_mirror

# IPCB\_PrimitiveAttribute.setState\_Mirror() 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
setState_Mirror(mirror: boolean): IPCB_PrimitiveAttribute;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

mirror


</td><td>

boolean


</td><td>

是否镜像


</td></tr>
</tbody></table>



## Returns

[IPCB\_PrimitiveAttribute](./IPCB_PrimitiveAttribute.md)

属性图元对象

### setstate_primitivelock

# IPCB\_PrimitiveAttribute.setState\_PrimitiveLock() 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
setState_PrimitiveLock(primitiveLock: boolean): IPCB_PrimitiveAttribute;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

primitiveLock


</td><td>

boolean


</td><td>

是否锁定


</td></tr>
</tbody></table>



## Returns

[IPCB\_PrimitiveAttribute](./IPCB_PrimitiveAttribute.md)

属性图元对象

### setstate_reverse

# IPCB\_PrimitiveAttribute.setState\_Reverse() 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
setState_Reverse(reverse: boolean): IPCB_PrimitiveAttribute;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

reverse


</td><td>

boolean


</td><td>

是否反相


</td></tr>
</tbody></table>



## Returns

[IPCB\_PrimitiveAttribute](./IPCB_PrimitiveAttribute.md)

属性图元对象

### setstate_rotation

# IPCB\_PrimitiveAttribute.setState\_Rotation() 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
setState_Rotation(rotation: number): IPCB_PrimitiveAttribute;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

rotation


</td><td>

number


</td><td>

旋转角度


</td></tr>
</tbody></table>



## Returns

[IPCB\_PrimitiveAttribute](./IPCB_PrimitiveAttribute.md)

属性图元对象

### setstate_value

# IPCB\_PrimitiveAttribute.setState\_Value() 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.

设置属性状态：Value

## Signature

```typescript
setState_Value(value: string): IPCB_PrimitiveAttribute;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

value


</td><td>

string


</td><td>

Value


</td></tr>
</tbody></table>



## Returns

[IPCB\_PrimitiveAttribute](./IPCB_PrimitiveAttribute.md)

属性图元对象

### setstate_valuevisible

# IPCB\_PrimitiveAttribute.setState\_ValueVisible() 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.

设置属性状态：Value 是否可见

## Signature

```typescript
setState_ValueVisible(valueVisible: boolean): IPCB_PrimitiveAttribute;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

valueVisible


</td><td>

boolean


</td><td>

Value 是否可见


</td></tr>
</tbody></table>



## Returns

[IPCB\_PrimitiveAttribute](./IPCB_PrimitiveAttribute.md)

属性图元对象

### setstate_x

# IPCB\_PrimitiveAttribute.setState\_X() 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.

设置属性状态：坐标 X

## Signature

```typescript
setState_X(x: number): IPCB_PrimitiveAttribute;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

x


</td><td>

number


</td><td>

坐标 X


</td></tr>
</tbody></table>



## Returns

[IPCB\_PrimitiveAttribute](./IPCB_PrimitiveAttribute.md)

属性图元对象

### setstate_y

# IPCB\_PrimitiveAttribute.setState\_Y() 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.

设置属性状态：坐标 Y

## Signature

```typescript
setState_Y(y: number): IPCB_PrimitiveAttribute;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

y


</td><td>

number


</td><td>

坐标 Y


</td></tr>
</tbody></table>



## Returns

[IPCB\_PrimitiveAttribute](./IPCB_PrimitiveAttribute.md)

属性图元对象

### toasync

# IPCB\_PrimitiveAttribute.toAsync() method

将图元转换为异步图元

## Signature

```typescript
toAsync(): IPCB_PrimitiveAttribute;
```


## Returns

[IPCB\_PrimitiveAttribute](./IPCB_PrimitiveAttribute.md)

属性图元对象

### tosync

# IPCB\_PrimitiveAttribute.toSync() method

将图元转换为同步图元

## Signature

```typescript
toSync(): IPCB_PrimitiveAttribute;
```


## Returns

[IPCB\_PrimitiveAttribute](./IPCB_PrimitiveAttribute.md)

属性图元对象
