Class DefaultSplitCharacter
- Namespace
- iTextSharp.text.pdf
- Assembly
- iTextSharp.LGPLv2.Core.dll
The default class that is used to determine whether or not a character is a split character. You can subclass this class to define your own split characters. @since 2.1.2
public class DefaultSplitCharacter : ISplitCharacter
- Inheritance
-
DefaultSplitCharacter
- Implements
- Inherited Members
Constructors
DefaultSplitCharacter()
public DefaultSplitCharacter()
Fields
Default
An instance of the default SplitCharacter.
public static readonly ISplitCharacter Default
Field Value
Methods
GetCurrentCharacter(int, char[], PdfChunk[])
Returns the current character
protected static char GetCurrentCharacter(int current, char[] cc, PdfChunk[] ck)
Parameters
current
intcurrent position in the array
cc
char[]array that has to be checked
ck
PdfChunk[]chunk array
Returns
- char
current character
IsSplitCharacter(int, int, int, char[], PdfChunk[])
Checks if a character can be used to split a PdfString . for the moment every character less than or equal to SPACE, the character '-' and some specific unicode ranges are 'splitCharacters'.
public bool IsSplitCharacter(int start, int current, int end, char[] cc, PdfChunk[] ck)
Parameters
start
intstart position in the array
current
intcurrent position in the array
end
intend position in the array
cc
char[]array that has to be checked
ck
PdfChunk[]chunk array
Returns
- bool
if the character can be used to split a string, false otherwise