Share via


XamlDirect.GetTimeSpanProperty(IXamlDirectObject, XamlPropertyIndex) 方法

定义

获取特定 IXamlDirectObjectTimeSpan 属性的值。

public:
 virtual TimeSpan GetTimeSpanProperty(IXamlDirectObject ^ xamlDirectObject, XamlPropertyIndex propertyIndex) = GetTimeSpanProperty;
TimeSpan GetTimeSpanProperty(IXamlDirectObject const& xamlDirectObject, XamlPropertyIndex const& propertyIndex);
public System.TimeSpan GetTimeSpanProperty(IXamlDirectObject xamlDirectObject, XamlPropertyIndex propertyIndex);
function getTimeSpanProperty(xamlDirectObject, propertyIndex)
Public Function GetTimeSpanProperty (xamlDirectObject As IXamlDirectObject, propertyIndex As XamlPropertyIndex) As TimeSpan

参数

xamlDirectObject
IXamlDirectObject

对特定 IXamlDirectObject 的引用。

propertyIndex
XamlPropertyIndex

TimeSpan 属性的引用,用于从 XamlPropertyIndex 枚举中支持的属性列表中获取 的值。

返回

指定属性的 TimeSpan 值。

适用于

另请参阅