getpinxy.txt
来自「自动化控制visio」· 文本 代码 · 共 24 行
TXT
24 行
// Gets a shape's PinX and PinY
function getShapePinXmm(shape: Visio_TLB.shape): double;
function getShapePinYmm(shape: Visio_TLB.shape): double;
// Get PinX result in mm for shape
function getShapePinXmm(shape: Visio_TLB.shape): double;
begin
result := 0;
try
result := shape.CellsU['PinX'].Result['mm'];
except;
end;
end;
// Get PinY result in mm for shape
function getShapePinYmm(shape: Visio_TLB.shape): double;
begin
result := 0;
try
result := shape.CellsU['PinY'].Result['mm'];
except;
end;
end;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?