TextSegment
Vue de l’ensemble
‘TextSegment’ est une classe dans Aspose.PDF FOSS pour .NET.
Un seul segment dans un textFragment.
Cette classe fournit 3 méthodes pour travailler avec les objets TextSegment dans des programmes .NET. Les méthodologies disponibles comprennent: ‘MyHtmlEncode’, ‘TextSecment’. Tous les membres publics sont accessibles à n’importe quelle application .Net après l’installation de l’Aspose.PDF FOSS pour le package .net. Propriétés: BaselinePosition, Caracters , EndCharIndex., Hyperlink et 4 autres.
Propriétés
| Name | Type | Access | Description |
|---|---|---|---|
Text | string | Read/Write | The text of this segment. |
Position | Position? | Read/Write | The position of this segment on the page. |
BaselinePosition | Position? | Read/Write | Gets or sets the baseline position. |
TextState | TextState | Read/Write | The text state (font, size, colour, etc.) for this segment. |
StartCharIndex | int | Read | The starting character index of this segment within the source text run on the page. |
EndCharIndex | int | Read | The ending character index of this segment within the source text run on the page. |
Rectangle | Rectangle? | Read | The bounding rectangle of this segment on the page. |
Characters | CharInfoCollection | Read | Per-character layout information for this segment: one CharInfo per character, in text order, populated when the segment is produced by a text absorber. |
Hyperlink | Hyperlink? | Read/Write | Optional hyperlink associated with this segment. |
TextEditOptions | TextEditOptions | Read/Write | Edit options applied during text replacement / font substitution. |
méthodes
| Signature | Description |
|---|---|
TextSegment() | Calls TextSegment on this TextSegment instance. |
TextSegment(text: string) | |
MyHtmlEncode(value: string) | HTML-encode a string by replacing &, <, >, “, and ’ with their entity references. |
Voir aussi
- Aspose.PDF pour .NET — API d’entreprise