테이블뷰 » Api
createshapeex
Description
Parameters
Parameters |
Type |
Description |
nRowIndex |
long |
행 인덱스 (Zero-Based) |
nColumnIndex |
long |
열 인덱스 (Zero-Based) |
nShapeKind |
short |
생성할 도형 종류 |
objProp |
class |
도형 속성 |
Return Value
Type |
Description |
INSTANCE |
생성된 도형의 Instance |
Remark
** nShapeKind 상수값
XFD_SHAPEKIND_ELLIPSE = 1
XFD_SHAPEKIND_LINE = 2
XFD_SHAPEKIND_RECT = 3
XFD_SHAPEKIND_ROUNDRECT = 4
XFD_SHAPEKIND_DIAMOND = 5
XFD_SHAPEKIND_TRIANGLE = 6
XFD_SHAPEKIND_CAPTION = 7
XFD_SHAPEKIND_IMAGE = 8
Example
function btn_createshapeex_on_mouseup(objInst)
{
var objProp = {
x: 10,
y: 100,
width: 200,
height: 100,
ellipse_width: 30,
border_width: 2,
border_color: "00FF0000"
};
var instNewObj = tableview.createshapeex(0, 0, XFD_SHAPEKIND_ROUNDRECT, objProp);
if(instNewObj != null) {
factory.consoleprint("-->> create success");
} else {
factory.consoleprint("-->> create fail..");
}
}
See Also
createobject
createshape
createobjectex
Viewer Ver.
9.1.1.1
Update Date
20181219