Metodo IUIAutomationTextRange::GetText (uiautomationclient.h)

Restituisce il testo normale dell'intervallo di testo.

Sintassi

HRESULT GetText(
  [in]          int  maxLength,
  [out, retval] BSTR *text
);

Parametri

[in] maxLength

Tipo: int

Lunghezza massima della stringa da restituire oppure -1 se non è necessario alcun limite.

[out, retval] text

Tipo: BSTR*

Riceve un puntatore alla stringa, possibilmente troncato al valore maxLength specificato.

Valore restituito

Tipo: HRESULT

Se questo metodo ha esito positivo, restituisce S_OK. In caso contrario, restituisce un codice di errore HRESULT .

Requisiti

   
Client minimo supportato Windows 7, Windows Vista con SP2 e Aggiornamento della piattaforma per Windows Vista, Windows XP con SP3 e Platform Update per Windows Vista [solo app desktop]
Server minimo supportato Windows Server 2008 R2, Windows Server 2008 con SP2 e Platform Update per Windows Server 2008, Windows Server 2003 con SP2 e Platform Update per Windows Server 2008 [solo app desktop]
Piattaforma di destinazione Windows
Intestazione uiautomationclient.h (include UIAutomation.h)

Vedi anche

IUIAutomationTextRange

supporto di Automazione interfaccia utente per il contenuto testuale