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






Windows & Linux

Description

Gets or sets the maximum size of the overlay. The overlay will never be larger than this size, even if the overlay's Size is specified as a percentage of its parent and its parent is very large. It will also not become larger than this size as a result of a Scale transformation. The array elements represent the size of the overlay in the order width, height, width Screen Overlay Unit, height Screen Overlay Unit.

Property type

Read-write property

Syntax

[Visual Basic .NET]
Public Property MaximumSize() As System.Array

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

[Managed C++]
public: __property System::Array^ get_MaximumSize();
public: __property void set_MaximumSize(
System::Array ^
);

[Unmanaged C++]
public: HRESULT get_MaximumSize(
SAFEARRAY ** ppRetVal
);
public: HRESULT put_MaximumSize(
SAFEARRAY * pNewMaximumSize
);

[Java]
public Object[] getMaximumSize();public void setMaximumSize(
Object[]
);

Example

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

    500
    500
    AgEStkGraphicsScreenOverlayUnit.eStkGraphicsScreenOverlayUnitPixels, 
    AgEStkGraphicsScreenOverlayUnit.eStkGraphicsScreenOverlayUnitPixels 
}; 
 
overlay.MaximumSize = maximumSize; 
 

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

overlay.MaximumSize = maximumSize

See Also

© 2017 Analytical Graphics, Inc. All Rights Reserved.

STK 11.2.1 Programming Interface