Adds an object to a specific location on a layer
Namespace: Ico.EwxAssembly: EwxLayer (in EwxLayer.dll) Version: 10.97.212.0 (10.97.212.00)
Syntax
C# |
---|
public void AddToLocation(
GwxElement element,
double latitude,
double longitude,
string layerName,
VerticalAlignment verticalAlignment,
HorizontalAlignment horizontalAlignment
) |
Visual Basic |
---|
Public Sub AddToLocation ( _
element As GwxElement, _
latitude As Double, _
longitude As Double, _
layerName As String, _
verticalAlignment As VerticalAlignment, _
horizontalAlignment As HorizontalAlignment _
) |
JScript |
---|
public function AddToLocation(
element : GwxElement,
latitude : double,
longitude : double,
layerName : String,
verticalAlignment : VerticalAlignment,
horizontalAlignment : HorizontalAlignment
) |
Parameters
- element
- Type: Ico.Gwx..::..GwxElement
The element to add
- latitude
- Type: System..::..Double
The latitude of the element
- longitude
- Type: System..::..Double
The longitude of the element
- layerName
- Type: System..::..String
The layer where to add the element. If Null or Empty the element is added to the root
- verticalAlignment
- Type: System.Windows..::..VerticalAlignment
The vertical alignment of the anchor of the element
- horizontalAlignment
- Type: System.Windows..::..HorizontalAlignment
The horizontal alignment of the anchor of the element
Remarks
Exceptions
Exception | Condition |
---|
System..::..InvalidOperationException |
The EwxLayer should be part of a GraphWorX display to perform this operation
|
See Also