Home > IPCB_PrimitiveString > (constructor)
IPCB_PrimitiveString.(constructor)
Constructs a new instance of the IPCB_PrimitiveString class
签名
typescript
function constructor(
layer: TPCB_LayersOfImage,
x: number,
y: number,
text: string,
fontFamily?: string,
fontSize?: number,
lineWidth?: number,
alignMode?: EPCB_PrimitiveStringAlignMode,
rotation?: number,
reverse?: boolean,
expansion?: number,
mirror?: boolean,
primitiveLock?: boolean,
primitiveId?: string,
);1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
参数名
参数 | 类型 | 描述 |
|---|---|---|
layer | ||
x | number | |
y | number | |
text | string | |
fontFamily | string | (Optional) |
fontSize | number | (Optional) |
lineWidth | number | (Optional) |
alignMode | (Optional) | |
rotation | number | (Optional) |
reverse | boolean | (Optional) |
expansion | number | (Optional) |
mirror | boolean | (Optional) |
primitiveLock | boolean | (Optional) |
primitiveId | string | (Optional) |