SetCellMarginLeft

SetCellMarginLeft(nValue)

指定数位空间,在单元格内容左侧范围与表内特定表单元格边框间保留

参数:

名称 类型 描述性
svalue语言 树枝

数值乘以单位左位范围 20s测取点(1/1440英吋)。if this值空号后会使用默认表单元格左边距,否则表左边距将随当前单元格指定值而覆盖

返回时间 :

方法不返回数据

实例

拷贝代码
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvarolements=ODocument.GetEplement0var表Style=ODocument.CreateStyleoTableStyle.SetBasedOn(oDocument.GetStyle("Bordered"))!varo表=api.Criate表(3,3)varocell =otable.GetRow0.GetCell0oCell.GetContent ().GetEplement(0)AddText ("这只是样本文本显示所有表单元格左差为36分")oTable.SetWidth("percent", 100)!var tableCellPr =otableStyle.GettableCellProTableCellPr.SetCellMarginLeft(720)!oTable.SetStyle(oTableStyle)!oDocument.Push(oTable)!builder.SaveFile("docx", "SetCellMarginLeft.docx")!builder.CloseFile();

结果文档