IMyTerminalControlsAddControlTBlock Method |
v01.180.0 (Beta)[This is preliminary documentation and is subject to change.]
Adds a terminal control to a block.
Namespace: Sandbox.ModAPIAssembly: Sandbox.Common (in Sandbox.Common.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax void AddControl<TBlock>(
IMyTerminalControl item
)
Sub AddControl(Of TBlock) (
item As IMyTerminalControl
)
generic<typename TBlock>
void AddControl(
IMyTerminalControl^ item
)
abstract AddControl :
item : IMyTerminalControl -> unit
Parameters
- item
- Type: Sandbox.ModAPI.Interfaces.TerminalIMyTerminalControl
This is the control you're adding, created with CreateControl or CreateProperty
Type Parameters
- TBlock
- This is the ModAPI interface of the associated block you want to add a terminal control to
See Also