IVsTextEditorPropertyContainer.SetProperty(VSEDITPROPID, Object) Method

Definition

Sets the specified property for the text editor.

public:
 int SetProperty(Microsoft::VisualStudio::TextManager::Interop::VSEDITPROPID idProp, Platform::Object ^ var);

Parameters

idProp
VSEDITPROPID

[in] Specified property to set. For a list of idprop values, see VSEDITPROPID.

var
Object

[in] Variant containing the property information to set.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsTextEditorPropertyContainer::SetProperty(  
   [in] VSEDITPROPID idProp,   
   [in] VARIANT var  
);  

Applies to