Moves an object to a new location

Namespace: Ico.Ewx
Assembly: EwxLayer (in EwxLayer.dll) Version: 10.97.212.0 (10.97.212.00)

Syntax

C#
public void MoveToLocation(
	string elementName,
	double latitude,
	double longitude,
	HorizontalAlignment horizontalAlignment,
	VerticalAlignment verticalAlignment
)
Visual Basic
Public Sub MoveToLocation ( _
	elementName As String, _
	latitude As Double, _
	longitude As Double, _
	horizontalAlignment As HorizontalAlignment, _
	verticalAlignment As VerticalAlignment _
)
JScript
public function MoveToLocation(
	elementName : String, 
	latitude : double, 
	longitude : double, 
	horizontalAlignment : HorizontalAlignment, 
	verticalAlignment : VerticalAlignment
)

Parameters

elementName
Type: System..::..String
The name of the object to move
latitude
Type: System..::..Double
The latitude of the element
longitude
Type: System..::..Double
The longitude of the element
horizontalAlignment
Type: System.Windows..::..HorizontalAlignment
The horizontal alignment of the anchor of the element
verticalAlignment
Type: System.Windows..::..VerticalAlignment
The vertical alignment of the anchor of the element

Exceptions

ExceptionCondition
System..::..ArgumentOutOfRangeException Fires an exception if the lat/long coordinate are not valid, for example if they are out of the bounds of the default region or if they are higher than MaxLatitude/MaxLongitude or lower then MinLatitude/MinLongitude
System..::..InvalidOperationException The EwxLayer should be part of a GraphWorX display to perform this operation

See Also