返回用户文档首页
获取或设置向量的坐标。
Namespace: LoongCAD.GeometryAssembly: LoongSDKCore (in LoongSDKCore.dll) Version: 2025.0.9.7 (2025.0.9.7)
Syntaxpublic int this[
int idx
] { get; set; }
Parameters
- idx Int32
- 坐标索引。0代表X坐标,1代表Y坐标。
Property Value
Int32
当获取时,如果
idx为0,返回X坐标的值;如果为1,返回Y坐标的值;如果为其他值,返回0。
当设置时,如果
idx为0,设置X坐标的值;如果为1,设置Y坐标的值。
ExceptionsException | Condition |
---|
ArgumentOutOfRangeException | 如果idx不是0或1,将抛出异常。 |
See Also