MESCIUS.ActiveReports.Design.Win Assembly / GrapeCity.ActiveReports.Design Namespace / Selection Class / Select Method / Select(Object) Method
Object to select.
Example

Select(Object) Method
Allows one object to be selected in the designer.
Syntax
'Declaration
 
Public Overloads Sub Select( _
   ByVal selectedObject As Object _
) 
 

Parameters

selectedObject
Object to select.
Remarks
This method changes the current selection to the specified object, effectively deselecting any previously selected objects. It is equivalent to setting the selection with System.ComponentModel.Design.SelectionTypes.Replace, which means the new selection replaces the old one entirely.
Example
/// <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);
}
'cboPropList_SelectedIndexChanged - runs with the Property List Drop Down is changed
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)
End Sub 'cboPropList_SelectedIndexChanged
See Also