Allows more than one item to be selected in the designer.
Syntax
| Visual Basic (Declaration) | |
|---|
Overloads Public Sub Select( _
ByVal selectedObject As Object, _
ByVal continous As Boolean _
) |
| Visual Basic (Usage) | Copy Code |
|---|
Dim instance As Selection
Dim selectedObject As Object
Dim continous As Boolean
instance.Select(selectedObject, continous)
|
Parameters
- selectedObject
- Object to select.
- continous
- Boolean.
Return Value
Boolean value. If
true, more than one object can be selected in the designer. If
false, only one object can be selected in the designer.
Example
| C# | Copy Code |
|---|
/// <summary>
/// cboPropList_SelectedIndexChanged - runs with the Property List Drop Down is changed
/// </summary> private void cboPropList_SelectedIndexChanged(object sender, System.EventArgs e)
{
this.ardMain.Selection.Select(((ARComboItem)this.comboHashTable[this.cboPropList.SelectedItem.ToString()]).Item,
false);
} |
| Visual Basic | Copy Code |
|---|
Private Sub cboPropList_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles cboPropList.SelectedIndexChanged
Me.ardMain.Selection.Select(CType(Me.comboHashTable(Me.cboPropList.SelectedItem.ToString()), ARComboItem).Item, False)
End Sub |
See Also