Class Word
Represents a word on the page.
Inheritance
System.Object
Word
Namespace: PSPDFKit.Pdf
Assembly: PSPDFKit.dll
Syntax
public sealed class Word
Properties
Content
The content of the word (all glyphs merged together).
Declaration
public string Content { get; }
Property Value
Type | Description |
---|---|
System.String |
Frame
All glyphs merged together in the smallest possible bounding box. As an optimization, only the first and last glyph will be used for frame calculations.
Declaration
public Rect Frame { get; }
Property Value
Type | Description |
---|---|
Rect |
Range
The range of glyphs that the word is representing.
Declaration
public Range Range { get; }
Property Value
Type | Description |
---|---|
Range |
Methods
WordFromGlyphs(IList<Glyph>, Boolean)
Declaration
public static Word WordFromGlyphs(IList<Glyph> wordGlyphs, bool trimPunctuation)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IList<Glyph> | wordGlyphs | The glyphs that make up the word. Must have at least one glyph. |
System.Boolean | trimPunctuation | Trim leading and trailing punctuation glyphs. |
Returns
Type | Description |
---|---|
Word | A Word that the glyphs represent. |