Sets whether an item is selected or cleared in a list box enabled for multiple selection.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function SetSelectedItem( _
ByVal Item As System.Short, _
ByVal Selected As System.Boolean _
) As System.Boolean |
Visual Basic (Usage) | |
---|
Dim instance As IPropertyManagerPageListbox
Dim Item As System.Short
Dim Selected As System.Boolean
Dim value As System.Boolean
value = instance.SetSelectedItem(Item, Selected) |
C# | |
---|
System.bool SetSelectedItem(
System.short Item,
System.bool Selected
) |
C++/CLI | |
---|
System.bool SetSelectedItem(
& System.short Item,
& System.bool Selected
) |
Parameters
- Item
- Index of the item to select or clear
- Selected
True to select the item, false to not
Return Value
True if the item was selected or cleared, false if not
Example
Create PropertyManager Page (VBA)
Create PropertyManager Page (VB.NET)
Create PropertyManager Page (C#)
Remarks
See Also
Availability
SolidWorks 2007 FCS, Revision Number 15.0