AGI STK Graphics 11 Send comments on this topic.
Position Property (IAgStkGraphicsOverlay)
See Also  Example

Description

Gets or sets the position of the overlay relative to its parent. The array represents the position of the overlay and has a size of 4. The elements are in the order x position, y position, x Screen Overlay Unit, y Screen Overlay Unit.

Property type

Read-write property

Syntax

[Visual Basic .NET]
Public Property Position() As Variant()

Example

Shows the format of the overlay's Position property.
[C#] Copy Code
Array position = new object[] 

    50, 
    50, 
    AgEStkGraphicsScreenOverlayUnit.eStkGraphicsScreenOverlayUnitPixels, 
    AgEStkGraphicsScreenOverlayUnit.eStkGraphicsScreenOverlayUnitPixels 
}; 
 
overlay.Position = position; 
 
Shows the format of the overlay's Position property.
[Visual Basic .NET] Copy Code
Dim position As Array = New Object() {50, 50, AgEStkGraphicsScreenOverlayUnit.eStkGraphicsScreenOverlayUnitPixels, AgEStkGraphicsScreenOverlayUnit.eStkGraphicsScreenOverlayUnitPixels}

overlay.Position = position

See Also

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK 11.1 Programming Interface