This documentation is archived and is not being maintained.

CDocItem::GetDocument

Call this function to get the document that contains the item.

CDocument* GetDocument( ) const;

Return Value

A pointer to the document that contains the item; NULL, if the item is not part of a document.

Remarks

This function is overridden in the derived classes COleClientItem and COleServerItem, returning a pointer to either a COleDocument, a COleLinkingDoc, or a COleServerDoc object.

See Also

CDocItem Overview | Class Members | Hierarchy Chart | COleDocument | COleLinkingDoc | COleServerDoc | COleClientItem | COleServerItem

Show: