Param

Method

Event

 

 

HeadValue

현재 편집 중인 문서의 HTML head정보(<head>~</head>)를 얻거나 설정합니다.

 

Syntax

    [get] HRESULT HeadValue(
    BSTR* pVal
    );
    [put] HRESULT HeadValue(
    BSTR newVal
    );

 

Parameters

[get] pVal

[out, retval] 현재 문서의 head 정보를 HTML 형식으로 출력합니다.

[put] newVal

[in] 현재 문서에 적용할 head 정보를 HTML 형식으로 입력합니다.

 

Return Values

항상 : 0

 

Sample Codes

VBScript [get]

dim object
set object = document.editForm
edit = object.wec.HeadValue

VBScript [put]

dim object
set object = document.editForm
object.Wec.HeadValue = "<head><title></title><meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
<style>p,td,ul,ol,li{font-family:맑은 고딕; font-size:10pt; line-height:1.2; margin-top:0; margin-bottom:0;}
body{font-family:맑은 고딕; font-size:10pt;}</style></head>"

 

JavaScript [get]

var object = document.getElementById('Wec');
object.HeadValue;

JavaScript [put]

var object = document.getElementById('Wec');
object.HeadValue = "<head><title></title><meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
<style>p,td,ul,ol,li{font-family:맑은 고딕; font-size:10pt; line-height:1.2; margin-top:0; margin-bottom:0;}
body{font-family:맑은 고딕; font-size:10pt;}</style></head>";

 

See Also

Value, BodyValue, TextValue, MIMEValue, SelectedValue, SelectedTextValue, InsertValue