IVisualTreeService::GetPropertyValuesChain method (xamlom.h)

Gets an array of all the properties set on the element passed in, and an array of all the styles involved in setting the effective values of the properties.

Syntax

HRESULT GetPropertyValuesChain(
  [in]  InstanceHandle      instanceHandle,
  [out] unsigned int        *pSourceCount,
  [out] PropertyChainSource **ppPropertySources,
  [out] unsigned int        *pPropertyCount,
  [out] PropertyChainValue  **ppPropertyValues
);

Parameters

[in] instanceHandle

A handle to the element to query properties on.

[out] pSourceCount

The count of the property sources array.

[out] ppPropertySources

An array of property sources.

[out] pPropertyCount

The count of the property values array.

[out] ppPropertyValues

An array of property values.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. This method should not fail in normal conditions.

Remarks

GetPropertyValuesChain returns an array of PropertyChainValue structs that represents all the properties set on the element passed in. It also returns an array of PropertyChainSource structs that represents all the styles involved in setting the effective value of each property.

Requirements

Requirement Value
Minimum supported client Windows 10 [desktop apps only]
Minimum supported server Windows Server 2016 [desktop apps only]
Target Platform Windows
Header xamlom.h

See also

IVisualTreeService