TextShape ClearHatchPatterns
Clears all the associated hatch patterns from the shape
public void ClearHatchPatterns() |
Return value
void |
Example
Copy
TextShape textShape = new TextShape();
textShape.AddText("Sample text Sample text", "Arial", FontStyle.Regular, 10f, 1f);
textShape.TextBoxHeight = 20;
textShape.TextBoxWidth = 60;
textShape.Angle = 30;
textShape.ItalicAngle = 1.1f;
textShape.HorizontalAlign = TextHorizontalAlign.Left;
textShape.VerticalAlign = TextVerticalAlign.Center;
textShape.WordWrap = true;
textShape.LineSpaceStyle = TextLineSpaceStyle.Factor;
textShape.LineSpace = 1f;
textShape.AddHatchPatternLine(0.125f, HatchLineBorderGapDirection.Inward, .1f, 1.57079f, 0, 0,
HatchLineStyle.Unidirectional, true, HatchOffsetAlgorithm.DirectOffset, HatchCornerStyle.SmoothWithLines);
textShape.AddHatchPatternHelixFilling(0.2f, HelixStyle.InwardToOut, HatchOffsetAlgorithm.DirectOffset,
HatchCornerStyle.SmoothWithArcs);
int i = textShape.HatchPatternList.Count();
textShape.ClearHatchPatterns();