IVsTextEditorPropertyContainer.SetProperty Method

Sets the specified property for the text editor.

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

Syntax

'Declaration
Function SetProperty ( _
    idProp As VSEDITPROPID, _
    var As Object _
) As Integer
int SetProperty(
    VSEDITPROPID idProp,
    Object var
)
int SetProperty(
    [InAttribute] VSEDITPROPID idProp, 
    [InAttribute] Object^ var
)
abstract SetProperty : 
        idProp:VSEDITPROPID * 
        var:Object -> int
function SetProperty(
    idProp : VSEDITPROPID, 
    var : Object
) : int

Parameters

  • 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.

Remarks

COM Signature

From textmgr.idl:

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

.NET Framework Security

See Also

Reference

IVsTextEditorPropertyContainer Interface

Microsoft.VisualStudio.TextManager.Interop Namespace