다음을 통해 공유


IVsTextSpanSet.AttachTextImage(Object) Method

Definition

Passes a text image to the environment.

public:
 int AttachTextImage(System::Object ^ pText);
public:
 int AttachTextImage(Platform::Object ^ pText);
int AttachTextImage(winrt::Windows::Foundation::IInspectable const & pText);
public int AttachTextImage (object pText);
abstract member AttachTextImage : obj -> int
Public Function AttachTextImage (pText As Object) As Integer

Parameters

pText
Object

[in] Pointer to a text image.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsTextSpanSet::AttachTextImage(  
   [in] IUnknown * pText  
);  

IVsTextSpanSet, when attached to a text image, sinks change events to track changes in the text image. Instances are available through the global service provider of the shell.

Applies to