Compartir a través de


DocumentProperties.SelectObjects Method

Called to manage the selection of multiple objects in the Properties window.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)

Syntax

'Declaration
Public Overridable Function SelectObjects ( _
    sel As UInteger, _
    selobj As Object(), _
    flags As UInteger _
) As Integer
public virtual int SelectObjects(
    uint sel,
    Object[] selobj,
    uint flags
)
public:
virtual int SelectObjects(
    unsigned int sel, 
    array<Object^>^ selobj, 
    unsigned int flags
)
abstract SelectObjects : 
        sel:uint32 * 
        selobj:Object[] * 
        flags:uint32 -> int  
override SelectObjects : 
        sel:uint32 * 
        selobj:Object[] * 
        flags:uint32 -> int
public function SelectObjects(
    sel : uint, 
    selobj : Object[], 
    flags : uint
) : int

Parameters

  • sel
    Type: UInt32

    [in] The number of objects in the selobj array.

  • selobj
    Type: array<Object[]

    [in] An array of objects returned from the GetObjects method.

  • flags
    Type: UInt32

    [in] This is SELOBJS_ACTIVATE_WINDOW to select the objects in the array; otherwise, the objects are de-selected.

Return Value

Type: Int32
If successful, returns S_OK; otherwise, returns an error code.

Implements

ISelectionContainer.SelectObjects(UInt32, array<Object[], UInt32)

Remarks

This method is used in managing multiple objects in the Properties window. A language service typically needs only the one DocumentProperties object and the base method handles this automatically.

This method is an implementation of the SelectObjects method on the ISelectionContainer interface.

The base method does nothing and always returns a success code of S_OK.

.NET Framework Security

See Also

Reference

DocumentProperties Class

Microsoft.VisualStudio.Package Namespace