共用方式為


AdornerPanel.FromVisual 方法

傳回 AdornerPanel,它是指定之 Visual 的父代。

命名空間:  Microsoft.Windows.Design.Interaction
組件:  Microsoft.Windows.Design.Interaction (在 Microsoft.Windows.Design.Interaction.dll 中)

語法

'宣告
Public Shared Function FromVisual ( _
    visual As DependencyObject _
) As AdornerPanel
public static AdornerPanel FromVisual(
    DependencyObject visual
)
public:
static AdornerPanel^ FromVisual(
    DependencyObject^ visual
)
static member FromVisual : 
        visual:DependencyObject -> AdornerPanel 
public static function FromVisual(
    visual : DependencyObject
) : AdornerPanel

參數

傳回值

型別:Microsoft.Windows.Design.Interaction.AdornerPanel
Visual 之父代的 AdornerPanel,如果 Visual 沒有父代檢視則為 nullNull 參照 (即 Visual Basic 中的 Nothing)。

例外狀況

例外狀況 條件
ArgumentNullException

visual 為 nullNull 參照 (即 Visual Basic 中的 Nothing)。

.NET Framework 安全性

請參閱

參考

AdornerPanel 類別

Microsoft.Windows.Design.Interaction 命名空間

其他資源

裝飾項架構

功能提供者和功能連接器