GetHatchOrSolidData Method (IHatchPattern) Send Feedback
See Also  Example
PatternName[out]
Name of the Hatch pattern
Angle[out]
Angle of the Hatch pattern lines; values are between 0 and 360° in 15° increments; a positive angle rotates the pattern counter-clockwise
Scale[out]
Value by which to scale the Hatch pattern; values are between .25 and 2 in .25 unit increments; default is 1; for example, 2 doubles the distances in the pattern, and .25 reduces the original dimensions by 1/4; only valid if HatchPatternType not dsHatchPatternType_e.dsHatchPatternType_UserDefined; for user-defined Hatch patterns use Spacing to change Hatch pattern line distances
HatchPatternType[out]
Hatch pattern type as defined in dsHatchPatternType_e
Spacing[out]
Distance between Hatch pattern lines in drawing units; default is 1; change the line spacing to customize the pattern proportions for specific graphics areas
Gets the specified Hatch pattern data.

Syntax

Visual Basic 
Sub GetHatchOrSolidData( _
   ByRef PatternName As System.String, _
   ByRef Angle As System.Double, _
   ByRef Scale As System.Double, _
   ByRef HatchPatternType As dsHatchPatternType_e, _
   ByRef Spacing As System.Double _
) 
C# 
void GetHatchOrSolidData( 
   out System.string PatternName,
   out System.double Angle,
   out System.double Scale,
   out dsHatchPatternType_e HatchPatternType,
   out System.double Spacing
)
JavaScript 
GetHatchOrSolidData(
) : {
   PatternName : String,
   Angle : Number,
   Scale : Number,
   HatchPatternType : String,
   Spacing : Number
}
COM native C++ 
HRESULT GetHatchOrSolidData( 
   BSTR* PatternName,
   DOUBLE* Angle,
   DOUBLE* Scale,
   dsHatchPatternType_e* HatchPatternType,
   DOUBLE* Spacing
) 
C++ 
DSRESULT GetHatchOrSolidData( 
   dsString* PatternName,
   double* Angle,
   double* Scale,
   dsHatchPatternType_e* HatchPatternType,
   double* Spacing
) 

Parameters

PatternName[out]
Name of the Hatch pattern
Angle[out]
Angle of the Hatch pattern lines; values are between 0 and 360° in 15° increments; a positive angle rotates the pattern counter-clockwise
Scale[out]
Value by which to scale the Hatch pattern; values are between .25 and 2 in .25 unit increments; default is 1; for example, 2 doubles the distances in the pattern, and .25 reduces the original dimensions by 1/4; only valid if HatchPatternType[out] not dsHatchPatternType_e.dsHatchPatternType_UserDefined; for user-defined Hatch patterns use Spacing to change Hatch pattern line distances
HatchPatternType
Hatch pattern type as defined in dsHatchPatternType_e
Spacing[out] or Return Value
Distance between Hatch pattern lines in drawing units; default is 1; change the line spacing to customize the pattern proportions for specific graphics areas

Example

Remarks

This method is valid only when IHatchPattern:GetFillType is dsHatchFillType_e.dsHatchFillType_Hatch or dsHatchFillType_e.dsHatchFillType_Solid.
 

See Also

Availability

DraftSight V1R1.3