Block Property
Description
Collection of currently selected blocks and keys.
Property Type
Read-only property
Syntax (Visual Basic)
Public Property Block( _
ByVal [Index](#) As Integer _
) As [TrackBlock](XtremeGridControl~TrackBlock.md)
Parameters
- Index: Index of a block or key to return.
Return Type
Reference to the specified TrackBlock.
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
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.