AdornerPanel.GetHorizontalStretch Method
Gets the value of the HorizontalStretch attached property for the specified DependencyObject.
Namespace: Microsoft.Windows.Design.Interaction
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
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
Parameters
- adorner
Type: System.Windows.UIElement
The UIElement from which to read the HorizontalStretch attached property.
Return Value
Type: Microsoft.Windows.Design.Interaction.AdornerStretch
An AdornerStretch for the adorner panel along the x-axis. The default value is None.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | adorner is nulla null reference (Nothing in Visual Basic). |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Windows.Design.Interaction Namespace