ArcObjects Library Reference (Framework)  

IDocument.Title Property

The title of this document.

[Visual Basic .NET]
Public ReadOnly Property Title As String
[C#]
public string Title {get;}

Product Availability

Available with ArcGIS Desktop.

Remarks

Title returns the name of the currently loaded document or template. It returns "Untitled" if the document has never been saved. If the document object is the Normal template, Title returns Normal.mxt.

Note that file extension is included with the name (e.g. MyDocument.mxd) if the Windows Explorer Folder Option "Hide extensions for known file types" is unchecked when the document is opened. Otherwise, Title returns the name without the file extension.

See Also

IDocument Interface