Help Center

CTextDocument2.Attachmethod

Attaches an **ITextDocument2** interface pointer to the class.

Windowsmethoddoc-orphan
No implementation located. This member is documented, but the source scan found no matching declaration. It is likely declared in a header this scan does not resolve, or provided by a macro.

Syntax

FUNCTION Attach (BYVAL pTextDocument2 AS ITextDocument2 PTR, BYVAL fAddRef AS BOOLEAN = FALSE) AS HRESULT

Parameters

NameDescription
pTextDocument2The ITextDocument2 interface pointer to attach.
fAddRefTRUE to increment the reference count of the object. Default is FALSE.

Description

Attaches an ITextDocument2 interface pointer to the class.

Reference