Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Obtains a text property.
Syntax
HRESULT GetProperty(
  [in]  REFGUID     guidProp,
  [out] ITfProperty **ppProp
);
Parameters
[in] guidProp
Specifies the property identifier. This can be a custom identifier or one of the predefined property identifiers.
[out] ppProp
Pointer to an ITfProperty interface pointer that receives the property object.
Return value
This method can return one of these values.
| Value | Description | 
|---|---|
  | 
The method was successful. | 
  | 
The context is not on a document stack. | 
  | 
One or more parameters are invalid. | 
  | 
A memory allocation failure occurred. | 
  | 
An unspecified error occurred. | 
Remarks
An application or text service can define unique properties identified by a GUID. Properties are stored as VARIANT data, so the caller must recognize the format and meaning of unique properties to be able to use them.
Requirements
| Requirement | Value | 
|---|---|
| Minimum supported client | Windows 2000 Professional [desktop apps | UWP apps] | 
| Minimum supported server | Windows 2000 Server [desktop apps | UWP apps] | 
| Target Platform | Windows | 
| Header | msctf.h | 
| DLL | Msctf.dll | 
| Redistributable | TSF 1.0 on Windows 2000 Professional | 
See also
ITfContext interface, ITfProperty interface, Predefined Properties