GetWidth 方法

返回多段线的起始和终止宽度。

参阅 | 示例

语法

object.GetWidth Index, StartWidth, EndWidth

Object

LightweightPolyline, Polyline
使用该方法的对象。

Index

Integer[整数]; 仅用于输入
需要返回宽度的多段线的索引位置。该索引必须是从0开始的正整数。

StartWidth

Double[双精度]; 仅用于输出
多段线上给定索引的起始宽度。

EndWidth

Double[双精度]; 仅用于输出
多段线上给定索引的终止宽度。

说明

Polyline: 如果多段线的 Type 属性为 acCubicSplinePoly acQuadSplinePoly,则该方法失败。