ITfContextOwner::GetAttribute method

The ITfContextOwner::GetAttribute method returns the value of a supported attribute. If the attribute is unsupported, the pvarValue parameter is set to VT_EMPTY.

Syntax


HRESULT GetAttribute(
  [in]   REFGUID rguidAttribute,
  [out]  VARIANT *pvarValue
);

Parameters

rguidAttribute [in]

Specifies the attribute GUID.

pvarValue [out]

Receives the attribute value. If the attribute is unsupported, this parameter is set to VT_EMPTY.

Return value

This method can return one of these values.

ValueDescription
S_OK

The method was successful.

 

Remarks

Context owners using the default text store of the TSF manager can implement a simplified version of attributes with this method. The supported attributes are application or text service dependent. For more information about predefined attributes recognized in TSF, see the following topics.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Redistributable

TSF 1.0 on Windows 2000 Professional

Header

Msctf.h

IDL

Msctf.idl

DLL

Msimtf.dll

See also

ITfContextOwner
Other Predefined Attributes
Predefined Font Attributes
Predefined List Attributes
Predefined Text Attributes

 

 

Community Additions

ADD
Show:
© 2014 Microsoft