DIV » Api

getrectex

Description

컴포넌트 좌표 정보 오브젝트를 반환하는 API이다.

Return Value

Type Description
class 컴포넌트 좌표 정보 오브젝트

Remark

classRect = {
	this.nleft = -1;   // 부모 기준 좌측 좌표
	this.ntop = -1;    // 부모 기준 상단 좌표
	this.nright = -1;  // 컴포넌트 좌측 기준 우측 좌표
	this.nbottom = -1; // 컴포넌트 상단 기준 하단 좌표
}

Example

function btn_getrect_on_mouseup() { // 필드 instField를 우측으로 50pixel이동 var classRect = instField.getrectex(); if(classRect != null) { classRect.nleft += 50; classRect.nright += 50; instField.setrectex(classRect); } }

See Also

getrect

Viewer Ver.

9.1.1.1

Update Date

20230926