Adds a control to this PropertyManager page.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function AddControl( _
ByVal ID As Integer, _
ByVal ControlType As Short, _
ByVal Caption As String, _
ByVal LeftAlign As Short, _
ByVal Options As Integer, _
ByVal Tip As String _
) As Object |
Visual Basic (Usage) | |
---|
Dim instance As IPropertyManagerPage2
Dim ID As Integer
Dim ControlType As Short
Dim Caption As String
Dim LeftAlign As Short
Dim Options As Integer
Dim Tip As String
Dim value As Object
value = instance.AddControl(ID, ControlType, Caption, LeftAlign, Options, Tip)
|
Parameters
- ID
Resource ID of this control; API passes this user-defined value back to the add-in through the IPropertyManagerPage2Handler8 interface
- ControlType
Type of control as defined in swPropertyManagerPageControlType_e
- Caption
Caption of this control
- LeftAlign
Left-align property of this control as defined in swPropertyManagerPageControlLeftAlign_e
- Options
Options as defined in swAddControlOptions_e
- Tip
ToolTip for this control
Return Value
Newly created
PropertyManager page control
Remarks
See Also
Availability
SolidWorks 2001Plus FCS, Revision Number 10.0