Get template of document

cyuksel

Newcomer
Joined
Mar 14, 2003
Messages
18
Location
turkey
hi,
i develop an addin project. i want to find the template of a
document when document is opened. i could catch event when a
document activated with below event handler.

public void WindowActivated(EnvDTE.Window gotFocus, EnvDTE.Window
lostFocus){

gotFocus.Document.???
}
in the event handler, i want to determine template kind of document.
I used gotFocus.Document.Kind property ,but it returns same result
for different templates.

how can i find out document's template kind?
Thanks...
 
Back
Top