IVsTextEditorPropertyContainer.GetProperty(VSEDITPROPID, Object) Method

Definition

Returns the specified text editor property.

public:
 int GetProperty(Microsoft::VisualStudio::TextManager::Interop::VSEDITPROPID idProp, [Runtime::InteropServices::Out] System::Object ^ % pvar);
int GetProperty(Microsoft::VisualStudio::TextManager::Interop::VSEDITPROPID idProp, [Runtime::InteropServices::Out] winrt::Windows::Foundation::IInspectable const & & pvar);
public int GetProperty (Microsoft.VisualStudio.TextManager.Interop.VSEDITPROPID idProp, out object pvar);
abstract member GetProperty : Microsoft.VisualStudio.TextManager.Interop.VSEDITPROPID * obj -> int
Public Function GetProperty (idProp As VSEDITPROPID, ByRef pvar As Object) As Integer

Parameters

idProp
VSEDITPROPID

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

pvar
Object

[out] Variant containing the returned property information.

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::GetProperty(  
   [in] VSEDITPROPID idProp,   
   [out] VARIANT *pvar  
);  

Applies to