Adds a control to this PropertyManager page.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function AddControl2( _
ByVal ID As System.Integer, _
ByVal ControlType As System.Short, _
ByVal Caption As System.String, _
ByVal LeftAlign As System.Short, _
ByVal Options As System.Integer, _
ByVal Tip As System.String _
) As System.Object |
Visual Basic (Usage) | |
---|
Dim instance As IPropertyManagerPage2
Dim ID As System.Integer
Dim ControlType As System.Short
Dim Caption As System.String
Dim LeftAlign As System.Short
Dim Options As System.Integer
Dim Tip As System.String
Dim value As System.Object
value = instance.AddControl2(ID, ControlType, Caption, LeftAlign, Options, Tip) |
Parameters
- ID
- Resource ID of this control whose value is passed back to the add-in through the IPropertyManagerPage2Handler9 interface
- ControlType
- Type of control as defined in swPropertyManagerPageControlType_e
- Caption
- Caption of this control
- LeftAlign
- Left alignment of this control as defined in swPropertyManagerPageControlLeftAlign_e
- Options
- Options as defined in swAddControlOptions_e (see Remarks)
- Tip
- ToolTip for this control
Return Value
Newly created
PropertyManager page control
Example
Remarks
See Also
Availability
SOLIDWORKS 2014 SP1, Revision Number 22.1