Gets the number of components in the specified configuration.
.NET Syntax
Visual Basic (Declaration) | |
---|
ReadOnly Property ComponentCount( _
ByVal Config As System.String _
) As System.Integer |
Visual Basic (Usage) | |
---|
Dim instance As IEModelViewControl
Dim Config As System.String
Dim value As System.Integer
value = instance.ComponentCount(Config) |
C# | |
---|
System.int ComponentCount(
System.string Config
) {get;} |
C++/CLI | |
---|
property System.int ComponentCount {
System.int get(System.String^ Config);
} |
Parameters
- Config
- Name of the configuration for which to get the number of components or an empty string ("") or an asterisk ("*") (see Remarks)
Property Value
Number of components in Config
Example
Visual Basic code snippet that shows how to get the names of the components and the names of their component configurations in a top-level assembly configuration named Level1_Config2:
count = Document.EModelViewControl.ComponentCount("Level1_Config2")
for index = 0 to count
componentName = Document.EModelViewControl.ComponentName("Level1_Config2", index)
configurationName = Document.EModelViewControl.ComponentConfigurationName ("Level1_Config2", index)
Debug.Print "Component name: " & componentName & " , Component configuration name: " & configurationName
next
Remarks
See Also
Availability
eDrawings API 2005 SP0