Description
Defines a collection of colors, one for each marker in the batch.
Syntax
[Visual Basic .NET] |
---|
Public Sub SetColors( _
ByVal Colors As System.Array _
)
|
[C#] |
---|
public void SetColors(
System.Array Colors
);
|
[Managed C++] |
---|
public: void SetColors(
System::Array ^ Colors
);
|
[Unmanaged C++] |
---|
public: HRESULT SetColors(
SAFEARRAY * * Colors
);
|
[Java] |
---|
public void setColors(
AgSafeArray Colors
);
|
[Python - STK API ] |
---|
def SetColors(self, Colors:list) -> None:
|
Parameters
Remarks
See Also
Example
Shows the format of the Colors parameter when setting per marker colors.
[C#] |
---|
Array colors = new object[]
{
Color.Red.ToArgb(),
Color.Green.ToArgb(),
Color.Blue.ToArgb(),
Color.White.ToArgb()
};
IAgStkGraphicsMarkerBatchPrimitiveOptionalParameters parameters = sceneManager.Initializers.MarkerBatchPrimitiveOptionalParameters.Initialize();
parameters.SetColors(ref colors);
|
|
Shows the format of the Colors parameter when setting per marker colors.
[Visual Basic .NET] |
---|
Dim colors As Array = New Object() {Color.Red.ToArgb(), Color.Green.ToArgb(), Color.Blue.ToArgb(), Color.White.ToArgb()}
Dim parameters As IAgStkGraphicsMarkerBatchPrimitiveOptionalParameters = sceneManager.Initializers.MarkerBatchPrimitiveOptionalParameters.Initialize()
parameters.SetColors(colors)
|
|