PdfBaseTextShapeGetTextStartOffset Method (Double, Double, PdfTextAlignment) |
Gets the text start offset for a line of text. This is used to align text based on the alignment.
Namespace:
Atalasoft.PdfDoc.Generating.Shapes
Assembly:
Atalasoft.PdfDoc (in Atalasoft.PdfDoc.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax public static double GetTextStartOffset(
double textLength,
double spaceLength,
PdfTextAlignment alignment
)
Public Shared Function GetTextStartOffset (
textLength As Double,
spaceLength As Double,
alignment As PdfTextAlignment
) As Double
Parameters
- textLength
- Type: SystemDouble
Length of the text. - spaceLength
- Type: SystemDouble
Length of the space. - alignment
- Type: Atalasoft.PdfDoc.Generating.ShapesPdfTextAlignment
The alignment.
Return Value
Type:
DoubleThe offset for the line start
See Also