AFPlugIn.CreateControlInstance Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Create an instance of a plugin editor control.
Namespace: OSIsoft.AF
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public Control CreateControlInstance( Type type, Object plugIn, bool readOnly )
Public Function CreateControlInstance ( type As Type, plugIn As Object, readOnly As Boolean ) As Control Dim instance As AFPlugIn Dim type As Type Dim plugIn As Object Dim readOnly As Boolean Dim returnValue As Control returnValue = instance.CreateControlInstance(type, plugIn, readOnly)
public: Control^ CreateControlInstance( Type^ type, Object^ plugIn, bool readOnly )
member CreateControlInstance : type : Type * plugIn : Object * readOnly : bool -> Control
Parameters
- type
- Type: SystemType
The Type of the editor form to create. - plugIn
- Type: SystemObject
The plugin instance being configured by the editor control. - readOnly
- Type: SystemBoolean
If , then the editor form will be read-only. If , then the values can be modified.
Return Value
Type: ControlReturns the newly created plugin editor control instance.
Remarks
Typically, it is not necessary to invoke this method. The UsesAControl can be called prior
to this method to determine if the plugin supports a control.