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
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.
Remarks
COM Signature
From textmgr.idl:
HRESULT IVsTextEditorPropertyContainer::SetProperty(
   [in] VSEDITPROPID idProp, 
   [in] VARIANT var
);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.