Gets or sets whether the same entity can be selected multiple times in this selection box.
.NET Syntax
Visual Basic (Declaration) | |
---|
Property AllowMultipleSelectOfSameEntity As System.Boolean |
Visual Basic (Usage) | |
---|
Dim instance As IPropertyManagerPageSelectionbox
Dim value As System.Boolean
instance.AllowMultipleSelectOfSameEntity = value
value = instance.AllowMultipleSelectOfSameEntity |
C# | |
---|
System.bool AllowMultipleSelectOfSameEntity {get; set;} |
C++/CLI | |
---|
property System.bool AllowMultipleSelectOfSameEntity {
System.bool get();
void set ( & System.bool value);
} |
Property Value
True if the same entity can be selected multiple times in this selection box, false if not
Example
Id = ID_SELECTION2
controlType = swControlType_Selectionbox
caption = "Multi-Select"
alignment = swControlAlign_Indent
options = swControlOptions_Visible + swControlOptions_Enabled
tip = "Select faces and vertices"
Set swControl = m_Group1.AddControl(Id, controlType, caption, alignment, options, tip)
If Not swControl Is Nothing Then
Set m_Selection2 = swControl
' Both of the following properties must be set to
' allow multiple selections.
' Use the control key or the Append parameter in the
' appropriate Select method or IModelDocExtension::SelectById2
' to select multiple items in this selection box.
m_Selection2.AllowMultipleSelectOfSameEntity = True
m_Selection2.SingleEntityOnly = false
filterArray(0) = swSelFACES
filterArray(1) = swSelVERTICES
m_Selection2.SetSelectionFilters (filterArray)
m_Selection2.Height = 50
m_Selection2.mark = 2
End If
Example
Create PropertyManager Page (C#)
Create PropertyManager Page (VB.NET)
Create PropertyManager Page (VBA)
Remarks
See Also
Availability
SolidWorks 2006 FCS, Revision Number 14.0