IXamlDirect.SetBooleanProperty(Object, XamlPropertyIndex, Boolean) Methode

Definition

Legt den Wert einer booleschen Eigenschaft für eine bestimmte IXamlDirect fest.

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

public:
 void SetBooleanProperty(Platform::Object ^ xamlDirectObject, XamlPropertyIndex propertyIndex, bool value);
void SetBooleanProperty(IInspectable const& xamlDirectObject, XamlPropertyIndex const& propertyIndex, bool const& value);
public void SetBooleanProperty(object xamlDirectObject, XamlPropertyIndex propertyIndex, bool value);
Public Sub SetBooleanProperty (xamlDirectObject As Object, propertyIndex As XamlPropertyIndex, value As Boolean)

Parameter

xamlDirectObject
Object

Platform::Object

IInspectable

Ein Verweis auf den spezifischen IXamlDirect.

propertyIndex
XamlPropertyIndex

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

value
Boolean

bool

Boolescher Wert, der für die angegebene Eigenschaft festgelegt werden soll.

Gilt für:

Weitere Informationen