[vb.net]风水 18:34:00
找到了Kean写的代码,贴上来,有用到着的就拿去吧。
public void DrawingPath()
{
Document doc =
Application.DocumentManager.MdiActiveDocument;
HostApplicationServices hs =
HostApplicationServices.Current;
string path =
hs.FindFile(
doc.Name,
doc.Database,
FindFileHint.Default
);
doc.Editor.WriteMessage(
"\nFile was found in: " + path
);
}
}
} |