IXamlDirect.SetCornerRadiusProperty 方法

定義

設定特定IXamlDirectCornerRadius屬性值。

本檔適用于 Windows 應用程式 SDK 中適用于 WinUI 的 WinUI 2 for UWP (,請參閱Windows 應用程式 SDK命名空間) 。

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

參數

xamlDirectObject
Object

Platform::Object

IInspectable

特定 IXamlDirect的參考。

propertyIndex
XamlPropertyIndex

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

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

value
CornerRadius

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

適用於

另請參閱