📄 getmastername.txt
字号:
// Gets a shape's master name
function getMasterName(shape: Visio_TLB.Shape): widestring;
function getMasterName(shape: Visio_TLB.Shape): widestring;
var
startPos: integer;
begin
try
result := shape.Master.Name;
except
result := shape.Name;
end;
startPos := pos('.', result);
if (startPos > 0) then
result := leftStr(result, startPos-1);
end;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -