共用方式為


AdornerPanel.GetHorizontalStretch 方法

針對指定的 DependencyObject,取得 HorizontalStretch 附加屬性的值。

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

語法

'宣告
Public Shared Function GetHorizontalStretch ( _
    adorner As UIElement _
) As AdornerStretch
public static AdornerStretch GetHorizontalStretch(
    UIElement adorner
)
public:
static AdornerStretch GetHorizontalStretch(
    UIElement^ adorner
)
static member GetHorizontalStretch : 
        adorner:UIElement -> AdornerStretch 
public static function GetHorizontalStretch(
    adorner : UIElement
) : AdornerStretch

參數

傳回值

型別:Microsoft.Windows.Design.Interaction.AdornerStretch
裝飾項面板沿著 X 軸的 AdornerStretch。預設值是 None

例外狀況

例外狀況 條件
ArgumentNullException

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

.NET Framework 安全性

請參閱

參考

AdornerPanel 類別

Microsoft.Windows.Design.Interaction 命名空間

其他資源

裝飾項架構

功能提供者和功能連接器