Method SetGradientColors
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
SetGradientColors(DxfGradientColor[])
Gives the gradient its colours, as AutoCAD's SetGradientColors: their count (group 453) and, for each, its value
(463), its index where it is a colour of the index (63) and its red, green and blue (421). The colours it has change
nothing.
public void SetGradientColors(DxfGradientColor[] value)
Parameters
valueDxfGradientColor[]The colours, one or two: a true colour or one of AutoCAD's index.
Exceptions
- ArgumentNullException
Thrown when the colours are null.
- ArgumentException
Thrown when there are none or more than two, or a colour is BYLAYER, BYBLOCK or of no red, green and blue.
- InvalidOperationException
Thrown when the HATCH has no gradient data, or is erased.