获取Width

GetWidth()++EMU系统}

返回当前绘图宽度

参数:

这种方法没有任何参数

返回时间 :

类型
EMU系统

实例

拷贝代码
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvarolements=ODocument.GetEplement0Var OGs1 = Api.CreateGradientStopVar OGS2 = Api.CreateGradient StopVaroFinll=Api.CreateLinearGradientFillvarostroke=api.CreatestrokeVar ODrawing=api.CreateShapeoParagraph.AddDrawing(oDrawing)!varnwidth =odrawing.getwidthvaroccontent=odrawing.etcontentodeptes = Api.Createlementsodision.adText (Lawing宽度:+ndth/36000+M)oDocContent.AddElement(0, oParagraph)!builder.SaveFile("docx", "GetWidth.docx")!builder.CloseFile();

结果文档