Table of Contents

Interface IHyphenationEvent

Namespace
iTextSharp.text.pdf
Assembly
iTextSharp.LGPLv2.Core.dll

Called by Chunk to hyphenate a word. @author Paulo Soares (psoares@consiste.pt)

public interface IHyphenationEvent

Properties

HyphenSymbol

Gets the hyphen symbol.

string HyphenSymbol { get; }

Property Value

string

the hyphen symbol

HyphenatedWordPost

Gets the second part of the hyphenated word. Must be called after getHyphenatedWordPre() .

string HyphenatedWordPost { get; }

Property Value

string

the second part of the hyphenated word

Methods

GetHyphenatedWordPre(string, BaseFont, float, float)

Hyphenates a word and returns the first part of it. To get the second part of the hyphenated word call getHyphenatedWordPost() . the hyphen symbol, if any

string GetHyphenatedWordPre(string word, BaseFont font, float fontSize, float remainingWidth)

Parameters

word string

the word to hyphenate

font BaseFont

the font used by this word

fontSize float

the font size used by this word

remainingWidth float

the width available to fit this word in

Returns

string

the first part of the hyphenated word including