GetValue<T> Method
Gets a AvaloniaProperty value.
Definition
Namespace: Avalonia
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public static T GetValue<T>(
this AvaloniaObject target,
AvaloniaProperty<T> property
)
<ExtensionAttribute>
Public Shared Function GetValue(Of T) (
target As AvaloniaObject,
property As AvaloniaProperty(Of T)
) As T
[<ExtensionAttribute>]
static member GetValue :
target : AvaloniaObject *
property : AvaloniaProperty<'T> -> 'T
Parameters
- AvaloniaObject
- The object.
- AvaloniaProperty(T)
- The property.
Type Parameters
- The type of the property.
Return Value
T
The value.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type AvaloniaObject. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).