设置偏差

SetDistances(nLeft,nTop,nRights,nBottom)

指定最小距离在当前绘图对象与后续文本边缘间保持

参数:

名称 类型 描述性
左转 EMU系统

距离当前对象左侧和随后文本以英语测量单元

NTop EMU系统

距离当前对象顶端和前文用英语测量单元

右转 EMU系统

距离当前对象右侧和随后文本以英语测量单元

NBOTOM EMU系统

距离当前对象底侧和随后文本以英文度量单元

返回时间 :

方法不返回数据

实例

拷贝代码
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvarolements=ODocument.GetEplement0oclipse.adText)oclipse.adText)od.adText(“形状与文本间距离为1英寸(914400英文度量单元)”)Var OGs1 = Api.CreateGradientStopVar OGS2 = Api.CreateGradient StopvaroFinll =api.CriateRadialGratientFillvarostroke=api.CreatestrokevaroDrawing=api.CreateShapeODrawing.SetDistances9140009144000oDrawing.SetWrappingStyle("square")!oParagraph.AddDrawing(oDrawing)!odeptes = Api.CreatelementsodText ("这是另一段.")oDocument.Push(oParagraph)!builder.SaveFile("docx", "SetDistances.docx")!builder.CloseFile();

结果文档