共用方式為


RevealBrush.GetState(UIElement) 方法

定義

重要

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

取得目標專案的 RevealBrush.State XAML 附加屬性的值。

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

public:
 static RevealBrushState GetState(UIElement ^ element);
 static RevealBrushState GetState(UIElement const& element);
public static RevealBrushState GetState(UIElement element);
function getState(element)
Public Shared Function GetState (element As UIElement) As RevealBrushState

參數

element
UIElement

要讀取屬性值的物件。

傳回

所指定物件的 RevealBrush.State XAML 附加屬性值。

適用於

另請參閱