Character AddHatchPatternOffsetInOut
Adds an Offset In Out filling type pattern to the character
public void AddHatchPatternOffsetInOut(float insideOffsetGap, int insideOffsetCount, float outsideOffsetGap, int outsideOffsetCount, HatchOffsetAlgorithm algorithm, HatchCornerStyle cornerStyle, int repeatCount) |
Return value
void |
Parameters
float | insideOffsetGap | Set the gap between the border of the object and the hatch lines that are inside the shape |
float | outsideOffsetGap | Set the gap between the border of the object and the hatch lines that are on the outside of the Shape |
int | insideOffsetCount | Set the number of hatch lines inside the Shape |
int | outsideOffsetCount | Set the number of hatch lines outside the Shape |
HatchOffsetAlgorithm | algorithm | Set the offset hatching algorithm |
HatchCornerStyle | cornerStyle | Set the corner style of the hatching |
bool | applySmoothing | Set whether the hatching lines should be smoothen |
int | repeatCount | Set the repeat count |
Example
Copy
TextShape text = new TextShape();
Character character = new Character();
character.CharacterUnicode = 'A';
character.Height = 10;
character.FontName = "Arial";
character.FontStyle = FontStyle.Regular;
character.AddHatchPatternOffsetInOut(0.2f, 5, 0.2f, 5, HatchOffsetAlgorithm.DirectOffset, HatchCornerStyle.Sharp, 1);
text.Characters.Add(character);