IMyTerminalControlsCreateControlTControl, TBlock Method |
v01.180.0 (Beta)[This is preliminary documentation and is subject to change.]
This creates a control that can be added to a block.
Namespace: Sandbox.ModAPIAssembly: Sandbox.Common (in Sandbox.Common.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax TControl CreateControl<TControl, TBlock>(
string id
)
Function CreateControl(Of TControl, TBlock) (
id As String
) As TControl
generic<typename TControl, typename TBlock>
TControl CreateControl(
String^ id
)
abstract CreateControl :
id : string -> 'TControl
Parameters
- id
- Type: SystemString
A unique identifier for this control
Type Parameters
- TControl
- The type of control you're creating
- TBlock
- The ModAPI interface of the associated block
Return Value
Type:
TControlReturns an interface to the control you've created depending on TControl
See Also