共用方式為


XamlDirect.SetTimeSpanProperty 方法

定義

設定特定IXamlDirectObject的 TimeSpan屬性值。

public:
 virtual void SetTimeSpanProperty(IXamlDirectObject ^ xamlDirectObject, XamlPropertyIndex propertyIndex, TimeSpan value) = SetTimeSpanProperty;
void SetTimeSpanProperty(IXamlDirectObject const& xamlDirectObject, XamlPropertyIndex const& propertyIndex, TimeSpan const& value);
public void SetTimeSpanProperty(IXamlDirectObject xamlDirectObject, XamlPropertyIndex propertyIndex, System.TimeSpan value);
function setTimeSpanProperty(xamlDirectObject, propertyIndex, value)
Public Sub SetTimeSpanProperty (xamlDirectObject As IXamlDirectObject, propertyIndex As XamlPropertyIndex, value As TimeSpan)

參數

xamlDirectObject
IXamlDirectObject

特定 IXamlDirectObject的參考。

propertyIndex
XamlPropertyIndex

TimeSpan屬性的參考,可從XamlPropertyIndex列舉中支援的屬性清單中設定 的值。

value
TimeSpan TimeSpan

要設定為指定屬性的TimeSpan值。

適用於

另請參閱