STK Graphics PrimitivesSend comments on this topic.
Size Property (IAgStkGraphicsMarkerBatchPrimitive)
See Also
Windows





Windows & Linux

Description

Gets or sets the per-batch size, which is applied to each marker in the batch. The array contains one width followed by one height.

Property type

Read-write property

Syntax

[Visual Basic .NET]
Public Property Size() As System.Array
[C#]
public System.Array Size {get; set;}
[Managed C++]
public: __property System::Array get_Size();
public: __property void set_Size( System::Array );
[Unmanaged C++]
public: HRESULT get_Size(
    SAFEARRAY * * ppRetVal
);
public: HRESULT put_Size(
    SAFEARRAY * Size
);
[Java]
public AgSafeArray getSize();
public void setSize(
    AgSafeArray
);
[Python - STK API ]
@property
def Size(self) -> list:

@Size.setter
def Size(self, Size:list) -> None:

Remarks

To use user-defined per-marker sizes, the marker batch must be constructed with MarkerBatchSizeSource.UserDefined, otherwise each marker's size is its texture's size.

The size may be interpreted to be pixels or meters depending on MarkerBatchPrimitive.SizeUnit.

If per-marker sizes were specified with MarkerBatchPrimitiveOptionalParameters.SetSizes, the per-batch size is ignored.

See Also

Example

Shows the format of the marker batch's Size property.
[C#]
Array size = new object[]
{
    256,
    128
};

markerBatch.Size = size;
Shows the format of the marker batch's Size property.
[Visual Basic .NET]
Dim size As Array = New Object() {256, 128}

markerBatch.Size = size
© 2024 Analytical Graphics, Inc. All Rights Reserved.