Skip to content

SelectedBlocks Property

Description

Collection of selected blocks and keys in the track control. (Track Control)

Property Type

Read-only property

Syntax (Visual Basic)

Public Property SelectedBlocks() As [SelectedTrackBlocks](XtremeGridControl~SelectedTrackBlocks.md)

Return Type

Reference to the collection of all selected blocks and keys in the track control.

Remarks

This is the collection of blocks and keys that are currently selected in the track control. It can be useful to perform operations such as deleting all selected blocks.

Private Sub mnuDeleteAllBlocks_Click()  
    Dim Block As TrackBlock  

    For Each Block In TrackControl.SelectedBlocks  
        Block.Item.RemoveBlock Block.Index  
    Next  
End Sub

A block or key uses the Selected property to show when it is selected.

See Also


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.