Partager via


IVsTextEditorPropertyContainer.SetProperty(VSEDITPROPID, Object) Method

Definition

Sets the specified property for the text editor.

public:
 int SetProperty(Microsoft::VisualStudio::TextManager::Interop::VSEDITPROPID idProp, System::Object ^ var);
public:
 int SetProperty(Microsoft::VisualStudio::TextManager::Interop::VSEDITPROPID idProp, Platform::Object ^ var);
int SetProperty(Microsoft::VisualStudio::TextManager::Interop::VSEDITPROPID idProp, winrt::Windows::Foundation::IInspectable const & var);
public int SetProperty (Microsoft.VisualStudio.TextManager.Interop.VSEDITPROPID idProp, object var);
abstract member SetProperty : Microsoft.VisualStudio.TextManager.Interop.VSEDITPROPID * obj -> int
Public Function SetProperty (idProp As VSEDITPROPID, var As Object) As Integer

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