Freigeben über


IVsTextEditorPropertyContainer.SetProperty-Methode

Legt die angegebene Eigenschaft für den Text-Editor festgelegt.

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

Parameter

  • var
    Typ: Object

    [in] Variante, die die festzulegende Eigenschaft enthält.

Rückgabewert

Typ: Int32
Wenn die Methode erfolgreich ausgeführt, gibt sie S_OKzurück.Bei einem Fehler wird ein Fehlercode zurückgegeben.

Hinweise

COM-Signatur

Von textmgr.idl:

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

.NET Framework-Sicherheit

Siehe auch

Referenz

IVsTextEditorPropertyContainer Schnittstelle

Microsoft.VisualStudio.TextManager.Interop-Namespace