IVsTextSpanSet.AttachTextImage(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.