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