Item Property
Description
Returns a constraint from the collection specified by index.
Property Type
Read-only property
Syntax (Visual Basic)
Public Property Item( _
ByVal Index As Long _
) As PropertyGridItemConstraint
Parameters
- Index: The index of the constraint which is to be retrieved.
Example
Constraint Item Sample (Visual Basic)
This sample code illustrates how to access a constraint item from the collection of constraints.
Dim Item As PropertyGridItem
Dim Count As Long
' Finds the PropertyGridItem with Caption or Tag value of "Language"
Set Item = wndPropertyGrid.FindItem("Language")
' Gets the number of constraints
Count = Item.Constraints.Count
For x = 1 To Count
' Illustrates how to access a constraint from the collection
Debug.Print Item.Constraints(x)
Next
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.