Skip to content

Remove Method

Description

Removes a single constraint from the property grid item's collection of constraints.

Syntax

Public Sub Remove( _
    ByVal [Index](#) As Long _
)

Parameters

  • Index: The index of the constraint which you want to remove.

Example

Removing a Single Constraint (Visual Basic)

This sample illustrates how to remove a single constraint from a PropertyGridItem's collection of constraints.

Dim Item As PropertyGridItem

' Finds the PropertyGridItem with Caption or Tag value of "Language"
Set Item = wndPropertyGrid.FindItem("Language")

' Removes the 3rd constraint from the PropertyGridItem's collection of constraints
Item.Constraints.Remove(3)

See Also


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