Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AF SDK Reference

AFPlugIn.CreateControlInstance Method

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFPlugIn.CreateControlInstance Method
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: Control
Returns 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.

Version Information

AFSDK


See Also

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in