Share via


RelativePosition Constructor (String, array<RelativePosition )

Initializes a new instance of the RelativePosition class that contains zero or more existing reference positions.

Namespace:  Microsoft.Windows.Design.Interaction
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
Public Sub New ( _
    name As String, _
    ParamArray values As RelativePosition() _
)
public RelativePosition(
    string name,
    params RelativePosition[] values
)
public:
RelativePosition(
    String^ name, 
    ... array<RelativePosition^>^ values
)
new : 
        name:string * 
        values:RelativePosition[] -> RelativePosition
public function RelativePosition(
    name : String, 
    ... values : RelativePosition[]
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

values is nulla null reference (Nothing in Visual Basic).

Remarks

If you specify more than one reference point, the relative position is considered to be a composite position. For example, TopLeft is a composite position that is composed of Top and Left.

.NET Framework Security

See Also

Reference

RelativePosition Class

RelativePosition Overload

Microsoft.Windows.Design.Interaction Namespace

Other Resources

WPF Designer Extensibility