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 = ""
)
Public Function AddGradientHatch (
GradientType As HatchGradientPatternType,
Position As Vector2,
Optional AciColor1 As Short = 1,
Optional AciColor2 As Short = 5,
Optional Rotation As Double = 0,
Optional Centered As Boolean = true,
Optional LayerName As String = ""
) As EntityObject
public:
EntityObject^ AddGradientHatch(
HatchGradientPatternType GradientType,
Vector2 Position,
short AciColor1 = 1,
short AciColor2 = 5,
double Rotation = 0,
bool Centered = true,
String^ LayerName = L""
)
member AddGradientHatch :
GradientType : HatchGradientPatternType *
Position : Vector2 *
?AciColor1 : int16 *
?AciColor2 : int16 *
?Rotation : float *
?Centered : bool *
?LayerName : string
(* Defaults:
let _AciColor1 = defaultArg AciColor1 1
let _AciColor2 = defaultArg AciColor2 5
let _Rotation = defaultArg Rotation 0
let _Centered = defaultArg Centered true
let _LayerName = defaultArg LayerName ""
*)
-> EntityObject
METHOD AddGradientHatch(
GradientType AS HatchGradientPatternType,
Position AS Vector2,
AciColor1 AS SHORT := 1,
AciColor2 AS SHORT := 5,
Rotation AS REAL8 := 0,
Centered AS LOGIC := TRUE,
LayerName AS STRING := ""
) AS EntityObject
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:
EntityObjectThe new added
Hatch.
See Also