Block Property
See Also

| Grid Control ActiveX Control v24.0 |
|---|
Description
Gets a reference to the Block at the given X and Y coordinates. (Track Control)
Property Type
Read-only property
Syntax (Visual Basic)
Public Property Block() As [TrackBlock](XtremeGridControl~TrackBlock.md)
Return Type
This will return a reference to the TrackBlock at the given X and Y coordinates.
Remarks
This is useful if you need to get the reference to a block inside a track at a given point, like in a MouseDown event.
Example
Private Sub TrackControl_MouseDown(Button As Integer, Shift As Integer, x As Long, y As Long)
Select Case TrackControl.HitTest(x, y).ht
Case xtpHitTestBlock:
Debug.Print "MouseDown on " & TrackControl.HitTest(x, y).Block.Tooltip & " Block"
End Select
End Sub
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.