IXamlDirect.SetRectProperty(Object, XamlPropertyIndex, Rect) 方法

定义

设置特定 IXamlDirectRect 属性的值。

本文档适用于 Windows 应用 SDKWinUI 的 WinUI 2 for UWP (,请参阅Windows 应用 SDK命名空间) 。

public:
 void SetRectProperty(Platform::Object ^ xamlDirectObject, XamlPropertyIndex propertyIndex, Rect value);
void SetRectProperty(IInspectable const& xamlDirectObject, XamlPropertyIndex const& propertyIndex, Rect const& value);
public void SetRectProperty(object xamlDirectObject, XamlPropertyIndex propertyIndex, Rect value);
Public Sub SetRectProperty (xamlDirectObject As Object, propertyIndex As XamlPropertyIndex, value As Rect)

参数

xamlDirectObject
Object

对特定 IXamlDirect 的引用。

propertyIndex
XamlPropertyIndex

Rect 属性的引用,在 XamlPropertyIndex 枚举中设置受支持属性的值。

value
Rect

要在指定属性上设置的 Rect 值。

适用于

另请参阅