IXamlDirect.GetColorProperty(Object, XamlPropertyIndex) Methode

Definition

Ruft den Wert einer Color-Eigenschaft für eine bestimmte IXamlDirect ab.

Diese Dokumentation gilt für WinUI 2 für UWP (für WinUI im Windows App SDK, siehe Windows App SDK Namespaces).

public:
 Color GetColorProperty(Platform::Object ^ xamlDirectObject, XamlPropertyIndex propertyIndex);
Color GetColorProperty(IInspectable const& xamlDirectObject, XamlPropertyIndex const& propertyIndex);
public Color GetColorProperty(object xamlDirectObject, XamlPropertyIndex propertyIndex);
Public Function GetColorProperty (xamlDirectObject As Object, propertyIndex As XamlPropertyIndex) As Color

Parameter

xamlDirectObject
Object

Platform::Object

IInspectable

Ein Verweis auf den spezifischen IXamlDirect.

propertyIndex
XamlPropertyIndex

Ein Verweis auf die Color-Eigenschaft , auf der der Wert aus der Liste der unterstützten Eigenschaften in xamlPropertyIndex-Enumeration abgerufen werden soll.

Gibt zurück

Farbwert der angegebenen Eigenschaft.

Gilt für:

Weitere Informationen