Click or drag to resize

DXFReaderNETControlAddGradientHatch Method (HatchGradientPatternType, Vector2, Int16, Int16, Double, Boolean, String)

Adds a new gradient hatch to the current drawing giving a point inside.

Namespace:  DXFReaderNET
Assembly:  DXFReaderNET (in DXFReaderNET.dll) Version: 20.10.54
Syntax
public EntityObject AddGradientHatch(
	HatchGradientPatternType GradientType,
	Vector2 Position,
	short AciColor1 = 1,
	short AciColor2 = 5,
	double Rotation = 0,
	bool Centered = true,
	string LayerName = ""
)

Parameters

GradientType
Type: DXFReaderNET.EntitiesHatchGradientPatternType
The hatch gradient type.
Position
Type: DXFReaderNETVector2
Point inside the hatch.
AciColor1 (Optional)
Type: SystemInt16
Starting AutoCAD Color Index of the gradient (Default value = 1 Red).
AciColor2 (Optional)
Type: SystemInt16
Ending AutoCAD Color Index of the gradient (Default value = 5 Blue).
Rotation (Optional)
Type: SystemDouble
Specifies the angle of the gradient fill (Default value = 0).
Centered (Optional)
Type: SystemBoolean
Specifies a symmetrical gradient configuration (Default value = true).
LayerName (Optional)
Type: SystemString
The layer name. If omitted, or layername doesn't exist, the CurrentLayer will be used.

Return Value

Type: EntityObject
The new added Hatch.
See Also