Condividi tramite


Metodo ITextStoreACP2::QueryInsertEmbedded (textstor.h)

Ottiene un valore che indica se l'oggetto specificato può essere inserito nel documento.

Sintassi

HRESULT QueryInsertEmbedded(
  [in]  const GUID      *pguidService,
  [in]  const FORMATETC *pFormatEtc,
  [out] BOOL            *pfInsertable
);

Parametri

[in] pguidService

Puntatore al tipo di oggetto. Può essere NULL.

[in] pFormatEtc

Puntatore alla struttura FORMATETC che contiene i dati di formato dell'oggetto. Questo parametro non può essere NULL se il parametro pguidService è NULL.

[out] pfInsertable

Riceve TRUE se il tipo di oggetto può essere inserito nel documento o FALSE se il tipo di oggetto non può essere inserito nel documento.

Valore restituito

Questo metodo può restituire uno di questi valori.

Valore Descrizione
S_OK
Il metodo è stato eseguito correttamente.
E_INVALIDARG
Il parametro pFormatEtc è NULL.

Commenti

I formati degli Appunti supportati dal documento dipendono dall'applicazione.

Requisiti

Requisito Valore
Client minimo supportato Windows 8 [app desktop | App UWP]
Server minimo supportato Windows Server 2012 [app desktop | App UWP]
Piattaforma di destinazione Windows
Intestazione textstor.h
DLL Msctf.dll

Vedi anche

FORMATETC

ITextStoreACP2

InsertEmbedded

InsertEmbeddedAtSelection