Param

Method

Event

 

 

GetDocumentSizev1.1 or higher

현재 작성 중인 문서의 크기를 구하여 byte 단위로 반환합니다. 이 때 현재 문서에 포함된 이미지와 flash 파일의 크기 까지 합산 됩니다.

 

Syntax

    HRESULT GetDocumentSize();

Parameters

없음

 

Return Values

현재 작성 중인 문서의 크기

정상적으로 실행한 경우

0

정상적으로 실행되지 않은 경우

 

Remarks

메소드는 Main class 호출 후 에디터가 로드된 다음 실행해야 정상적으로 실행됩니다.

 

Sample Codes

JavaScript

var object = new NamoSE("test");
object.editorStart();
var returnValue = object.GetDocumentSize();
alert(returnValue);