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





Description

Gets or sets the pinning position of the overlay, relative to the overlay, which determines the point on the overlay that corresponds to the Position property. The array represents the pinning 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 PinningPosition() As System.Array

[C#]
public System.Array PinningPosition {get; set;}

[Managed C++]
public: __property System::Array^ get_PinningPosition();
public: __property void set_PinningPosition(
System::Array ^
);

[Unmanaged C++]
public: HRESULT get_PinningPosition(
SAFEARRAY ** ppRetVal
);
public: HRESULT put_PinningPosition(
SAFEARRAY * pNewPinningPosition
);

[Java]
public Object[] getPinningPosition();public void setPinningPosition(
Object[]
);

Example

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

    5
    5
    AgEStkGraphicsScreenOverlayUnit.eStkGraphicsScreenOverlayUnitPixels, 
    AgEStkGraphicsScreenOverlayUnit.eStkGraphicsScreenOverlayUnitPixels 
}; 
 
overlay.PinningPosition = pinningPosition; 
 

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

overlay.PinningPosition = pinningPosition

See Also

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1