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
- name
Type: System.String
A name that describes this RelativePosition. This is only used for diagnostic purposes.
- values
Type: array<Microsoft.Windows.Design.Interaction.RelativePosition[]
An array of RelativePosition objects included in a composite.
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
- 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