Share via


DocumentProperties.SelectObjects(UInt32, Object[], UInt32) Method

Definition

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

public:
 virtual int SelectObjects(System::UInt32 sel, cli::array <System::Object ^> ^ selobj, System::UInt32 flags);
public:
 virtual int SelectObjects(unsigned int sel, Platform::Array <Platform::Object ^> ^ selobj, unsigned int flags);
 virtual int SelectObjects(unsigned int sel, std::Array <winrt::Windows::Foundation::IInspectable const &> const & selobj, unsigned int flags);
public virtual int SelectObjects (uint sel, object[] selobj, uint flags);
abstract member SelectObjects : uint32 * obj[] * uint32 -> int
override this.SelectObjects : uint32 * obj[] * uint32 -> int
Public Overridable Function SelectObjects (sel As UInteger, selobj As Object(), flags As UInteger) As Integer

Parameters

sel
UInt32

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

selobj
Object[]

[in] An array of objects returned from the GetObjects(UInt32, UInt32, Object[]) method.

flags
UInt32

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

Returns

If successful, returns S_OK; otherwise, returns an error code.

Implements

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.

Applies to