OPC Studio User's Guide and Reference
SetComponentBag Method



OpcLabs.BaseLibPresentation Assembly > OpcLabs.BaseLib.Presentation.ComponentModel Namespace > Live Class : SetComponentBag Method
The element to which the attached property is written.
The needed ComponentBag value.
Sets the value of the ComponentBag attached property to a specified element.
Syntax
'Declaration
 
Public Shared Sub SetComponentBag( _
   ByVal element As FrameworkElement, _
   ByVal componentBag As ComponentBag _
) 
'Usage
 
Dim element As FrameworkElement
Dim componentBag As ComponentBag
 
Live.SetComponentBag(element, componentBag)
public static void SetComponentBag( 
   FrameworkElement element,
   ComponentBag componentBag
)
public:
static void SetComponentBag( 
   FrameworkElement^ element,
   ComponentBag^ componentBag
) 

Parameters

element
The element to which the attached property is written.
componentBag
The needed ComponentBag value.
Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also