ActiveReports 18 .NET Edition
MESCIUS.ActiveReports.Design.Win Assembly / GrapeCity.ActiveReports.Design Namespace / Selection Class / Select Method / Select(Object,Boolean) Method
Object to select.
Boolean.
Example

In This Topic
    Select(Object,Boolean) Method
    In This Topic
    Allows more than one item to be selected in the designer.
    Syntax
    'Declaration
     
    Public Overloads Sub Select( _
       ByVal selectedObject As Object, _
       ByVal continuous As Boolean _
    ) 
    public void Select( 
       object selectedObject,
       bool continuous
    )

    Parameters

    selectedObject
    Object to select.
    continuous
    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
    /// <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);
    }
    '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, False)
    End Sub 'cboPropList_SelectedIndexChanged
    See Also