AdornerPanel.SetHorizontalStretch Method
Sets the value of the HorizontalStretch attached property for the provided element.
Namespace: Microsoft.Windows.Design.Interaction
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Public Shared Sub SetHorizontalStretch ( _
adorner As UIElement, _
value As AdornerStretch _
)
public static void SetHorizontalStretch(
UIElement adorner,
AdornerStretch value
)
public:
static void SetHorizontalStretch(
UIElement^ adorner,
AdornerStretch value
)
static member SetHorizontalStretch :
adorner:UIElement *
value:AdornerStretch -> unit
public static function SetHorizontalStretch(
adorner : UIElement,
value : AdornerStretch
)
Parameters
- adorner
Type: System.Windows.UIElement
The UIElement to which the HorizontalStretch attached property is written.
- value
Type: Microsoft.Windows.Design.Interaction.AdornerStretch
The AdornerStretch value for the horizontal dimension.
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