Description
Defines a collection of colors, one for each string 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 string colors.
[C#] |
---|
Array colors = new object[]
{
Color.Red.ToArgb(),
Color.Green.ToArgb(),
Color.Blue.ToArgb(),
Color.White.ToArgb()
};
IAgStkGraphicsTextBatchPrimitiveOptionalParameters parameters = sceneManager.Initializers.TextBatchPrimitiveOptionalParameters.Initialize();
parameters.SetColors(ref colors);
|
|
Shows the format of the Colors parameter when setting per string 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 IAgStkGraphicsTextBatchPrimitiveOptionalParameters = sceneManager.Initializers.TextBatchPrimitiveOptionalParameters.Initialize()
parameters.SetColors(colors)
|
|