共用方式為


RevealBrush.SetState(UIElement, RevealBrushState) 方法

定義

重要

RevealBrush 可用於需求一節中指定的作業系統。 不過,我們不建議使用,因為它可能會在後續版本中改變或無法使用。

設定目標專案的 RevealBrush.State XAML 附加屬性的值。

適用于 UWP 的對等 WinUI 2 APIMicrosoft.UI.Xaml.Media.RevealBrush.SetState (Windows.UI.Xaml.UIElement,Microsoft.UI.Xaml.Media.RevealBrushState) Windows 應用程式 SDK (,請參閱Windows 應用程式 SDK命名空間) 。

public:
 static void SetState(UIElement ^ element, RevealBrushState value);
 static void SetState(UIElement const& element, RevealBrushState const& value);
public static void SetState(UIElement element, RevealBrushState value);
function setState(element, value)
Public Shared Sub SetState (element As UIElement, value As RevealBrushState)

參數

element
UIElement

寫入屬性值的物件。

value
RevealBrushState

要設定的值。

適用於

另請參閱