DynamicTextShape SetLineHatchPattern

Set a primitive line hatch pattern to the dynamic text shape. The primitive line hatch pattern is a simplified but efficient pattern that allows for faster processing during the preparation of the pattern for marking.

public void SetLineHatchPattern(float lineSpace, float angle, HatchLineStyle style, int repeatCount)

 

Return value

void  

 

Parameters

float lineSpace Set the line spacing between hatching
float angle Set the angle of the hatching lines
HatchLineStyle style Set the line style
int repeatCount Set the number of repetitions for each hatch line

 

Example

Copy
DynamicTextShape dynamicText = new DynamicTextShape();
dynamicText.Height = 10f;
dynamicText.VariableName = "arcText1";
dynamicText.Text = "SAMPLE";
dynamicText.EvaluateVariableTags = true;
dynamicText.FontName = "Arial";
dynamicText.MarkingOrder = MarkingOrder.HatchBeforeOutline;

dynamicText.SetLineHatchPattern(0.5f, 0, HatchLineStyle.Unidirectional, 1);

if (!dynamicText.IsPrimitiveLineHatchPatternSet)
{
    HatchPatternLine lineHatchPat = dynamicText.GetPrimitiveLineHatchPattern();
}