SelectionContainer Constructors

Definition

This constructor initializes a new SelectionContainer object on creation.

Overloads

SelectionContainer()

Initializes a new SelectionContainer object. The overload provides the ability to restrict user control over the SelectableObjects and SelectedObjects collections.

SelectionContainer(Boolean, Boolean)

Creates a new SelectionContainer object with the ability to restrict user control over the SelectableObjects and SelectedObjects collections.

Remarks

Calling the constructor of the SelectionContainer class creates a selection container, but does not populate it.

SelectionContainer()

Initializes a new SelectionContainer object. The overload provides the ability to restrict user control over the SelectableObjects and SelectedObjects collections.

public:
 SelectionContainer();
public:
 SelectionContainer();
 SelectionContainer();
public SelectionContainer ();
Public Sub New ()

Remarks

Calling the constructor of the SelectionContainer class creates a selection container, but does not populate it.

Applies to

SelectionContainer(Boolean, Boolean)

Creates a new SelectionContainer object with the ability to restrict user control over the SelectableObjects and SelectedObjects collections.

public:
 SelectionContainer(bool selectableReadOnly, bool selectedReadOnly);
public:
 SelectionContainer(bool selectableReadOnly, bool selectedReadOnly);
 SelectionContainer(bool selectableReadOnly, bool selectedReadOnly);
public SelectionContainer (bool selectableReadOnly, bool selectedReadOnly);
new Microsoft.VisualStudio.Shell.SelectionContainer : bool * bool -> Microsoft.VisualStudio.Shell.SelectionContainer
Public Sub New (selectableReadOnly As Boolean, selectedReadOnly As Boolean)

Parameters

selectableReadOnly
Boolean

Specifies if the collection of the selectable objects is read only.

selectedReadOnly
Boolean

Specifies if the selection is read only.

Remarks

The values of the selectableReadOnly and selectedReadOnly parameters only affect external requests through ISelectionContainer.

Applies to