CompositionPropertySet.TryGetColor(String, Color) CompositionPropertySet.TryGetColor(String, Color) CompositionPropertySet.TryGetColor(String, Color) CompositionPropertySet.TryGetColor(String, Color) Method

Definition

Retrieves the specified Color property value.

public : CompositionGetValueStatus TryGetColor(Platform::String propertyName, Color value)
CompositionGetValueStatus TryGetColor(winrt::hstring propertyName, Color const& value) const;
public CompositionGetValueStatus TryGetColor(String propertyName, Color value)
Public Function TryGetColor(propertyName As String, value As Color) As CompositionGetValueStatus

Parameters

propertyName
String String

The name of the property to retrieve.

value
Color Color

If the operation is successful, this parameter will contain the specified Color property value when the method returns.

Returns

Returns a CompositionGetValueStatus value indicating the outcome of retrieving the key-value pair.

Additional features and requirements

Device family
Windows 10 (introduced v10.0.10586.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v2)