OPC Studio User's Guide and Reference
GetExtensions Method



OpcLabs.BaseLibPresentation Assembly > OpcLabs.BaseLib.Presentation.ComponentModel Namespace > Live Class : GetExtensions Method
The element from which the property value is read.

The value of this parameter cannot be null (Nothing in Visual Basic).

Gets the value of the Extensions attached property for a specified System.Windows.UIElement.
Syntax
'Declaration
 
<CanBeNullAttribute()>
<BrowsableAttribute(False)>
<AttachedPropertyBrowsableForTypeAttribute(System.Windows.UIElement)>
Public Shared Function GetExtensions( _
   ByVal element As UIElement _
) As ElementExtensions
'Usage
 
Dim element As UIElement
Dim value As ElementExtensions
 
value = Live.GetExtensions(element)
[CanBeNull()]
[Browsable(false)]
[AttachedPropertyBrowsableForType(System.Windows.UIElement)]
public static ElementExtensions GetExtensions( 
   UIElement element
)
[CanBeNull()]
[Browsable(false)]
[AttachedPropertyBrowsableForType(System.Windows.UIElement)]
public:
static ElementExtensions^ GetExtensions( 
   UIElement^ element
) 

Parameters

element
The element from which the property value is read.

The value of this parameter cannot be null (Nothing in Visual Basic).

Return Value

The Extensions property value for the element.

This method can return null (Nothing in Visual Basic).

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