Share via


XamlDirect.SetDurationProperty Method

Definition

Sets the value of a Duration property for a specific IXamlDirectObject.

void SetDurationProperty(IXamlDirectObject const& xamlDirectObject, XamlPropertyIndex const& propertyIndex, Duration const& value);
public void SetDurationProperty(IXamlDirectObject xamlDirectObject, XamlPropertyIndex propertyIndex, Duration value);
function setDurationProperty(xamlDirectObject, propertyIndex, value)
Public Sub SetDurationProperty (xamlDirectObject As IXamlDirectObject, propertyIndex As XamlPropertyIndex, value As Duration)

Parameters

xamlDirectObject
IXamlDirectObject

A reference to the specific IXamlDirectObject.

propertyIndex
XamlPropertyIndex

A reference to the Duration property to set the value of from the list of supported properties in XamlPropertyIndex enum.

value
Duration

Duration value to set to the specified property.

Applies to

See also