IVsLayeredTextView::GetSelectedAtom Method (UInt32, Object^)
Visual Studio 2015
Tells a client when the selection is "at" an atomic object. The selection flags determine what “at” means.
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Parameters
- dwFlags
-
Type:
System::UInt32
[in] Selection flags. Values are taken from GetSelectedAtomFlags.
- ppunkAtom
-
Type:
System::Object^
[out] The atomic object the selection is “at”.
Return Value
Type: System::Int32If an atomic object is found, the method returns S_OK. If an atomic object is not found, the method returns S_FALSE.
From textmgr.idl:
HRESULT IVsLayeredTextView::GetSelectedAtom(
[in] DWORD dwFlags,
[out] IUnknown **ppunkAtom
);
GetSelectedAtom tells a client when the selection is "at" an atomic object, "at" being defined by dwFlags. An atomic object is a special object inserted into the regular text stream, such as a hidden text banner. The returned IUnknown is a pointer to the object that corresponds to the atom; QI it for whatever custom interface might be of interest.
Show: