IVisualTreeService2::GetPropertyIndex method (xamlom.h)
Gets the property index for the specified property name.
Syntax
HRESULT GetPropertyIndex(
[in] InstanceHandle object,
[in] LPCWSTR propertyName,
[out] unsigned int *pPropertyIndex
);
Parameters
[in] object
The dependency object to get the property index from.
[in] propertyName
The name of the dependency property for which to get the index.
[out] pPropertyIndex
The index of the specified property.
Return value
The possible return codes include, but are not limited to, the values shown in the following table.
Return code | Description |
---|---|
|
The method succeeded. |
|
No property with propertyName was found, or the property cannot be applied to object. |
Remarks
This index can be passed to the GetProperty method in order to retrieve a specific property on an object.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | xamlom.h |