IVsTextEditorPropertyContainer::SetProperty Method (VSEDITPROPID, Object^)

 

Sets the specified property for the text editor.

Namespace:   Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

int SetProperty(
	VSEDITPROPID idProp,
	Object^ var
)

Parameters

idProp
Type: Microsoft.VisualStudio.TextManager.Interop::VSEDITPROPID

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

var
Type: System::Object^

[in] Variant containing the property information to set.

Return Value

Type: System::Int32

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

From textmgr.idl:

HRESULT IVsTextEditorPropertyContainer::SetProperty(
   [in] VSEDITPROPID idProp, 
   [in] VARIANT var
);
Return to top
Show: