SetTop边界

SetTopFrontive(sType,nSize,nSpace,r,g,b)

指定边界显示于一组带同组段边框设置上方 同一样式逐行的段落被视为单块,因此边界添加到整块中,而不是插入到本块中的每一段中。

参数:

名称 类型 描述性
sType系统 边框类型

边框样式

nSize Pt_8

当前顶端边界宽度以点 八分测量

空间 平方公尺

间距偏上段用点测量

R 字节

红色组件值

g级 字节

绿色分量值

b/ 字节

蓝色组件值

返回时间 :

方法不返回数据

实例

拷贝代码
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvaromyStyle=ODocument.CreateStylevar OParaPr=omyStyle.GetParaPrOParaPr.SetTopFrontivarolements=ODocument.GetEplement0oParagraph.SetStyle(oMyStyle)!odText ("这是第一段)odtext ("上段样式设置边框")builder.SaveFile("docx", "SetTopBorder.docx")!builder.CloseFile();

结果文档