TextObjectMoveToNextLineAndSetLeading Method

Apitron PDF Kit help
Apitron.PDF.Kit library for .NET
Moves to next line and as a side effect sets the leading .

Namespace:  Apitron.PDF.Kit.FixedLayout.Content
Assembly:  Apitron.PDF.Kit (in Apitron.PDF.Kit.dll) Version: 2.0.37.0 (2.0.37.0)
Syntax

public void MoveToNextLineAndSetLeading(
	double tx,
	double ty
)

Parameters

tx
Type: SystemDouble
The tx.
ty
Type: SystemDouble
The ty.
Remarks

Examples

C#
TextObject text = new TextObject(StandardFonts.CourierBold, 20);
text.SetTextRenderingMode(RenderingMode.FillAndStrokeText);
text.SetTextMatrix(1, 0, 0, 1, 10, (Boundaries.A4).Height - 50);
text.AppendText("A B C");
// to obtain the 3D effect we add text above the same text with minimal offset
text.MoveToNextLineAndSetLeading(-1, 1); 
text.AppendText("A B C");
See Also

Reference