TextBatchPrimitiveOptionalParametersSetColors Method |
Defines a collection of colors, one for each string in the batch.
Namespace:
AGI.Foundation.Graphics
Assembly:
AGI.Foundation.Graphics (in AGI.Foundation.Graphics.dll) Version: 24.3.420.0 (24.3.420.0)
Syntax public void SetColors(
IEnumerable<Color> colors
)
Public Sub SetColors (
colors As IEnumerable(Of Color)
)
public:
void SetColors(
IEnumerable<Color>^ colors
)
member SetColors :
colors : IEnumerable<Color> -> unit
Parameters
- colors
- Type: System.Collections.GenericIEnumerableColor
The colors for each string in the batch. There must be one color for
each string passed to the
TextBatchPrimitive's
Set or SetPartial method.
Remarks
Per-string colors override the per-batch color. Therefore, when
per-string colors are defined with this method, the text batch's
Color
property is ignored.
See Also