TextStamp
Vue de l’ensemble
‘TextStamp’ est une classe dans Aspose.PDF FOSS pour .NET. Il s’agit de : `Stampa.TexStemp’.
Compatible re-exportation de code afin que les références Aspose.Pdf.TextStamp (de avant le type a été déplacé à Asposa.Fdf Stamps) continue de compiler.
Cette classe fournit 4 méthodes pour travailler avec les objets TextStamp dans des programmes .NET. Les méthodologies disponibles comprennent : ‘Put’, ‘TextStump’. 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: ‘AutoAdjustFontSizePrecision’, `A AutoAdjusterFonSiseToFitStempRectangle’, ‘Draw’, ‘FonsSite’, ’Height’, ‘Justify’ et 11 autres.
Propriétés
| Name | Type | Access | Description |
|---|---|---|---|
Height | double | Read/Write | Gets or sets the height. |
Scale | bool | Read/Write | Gets or sets the scale. |
TextAlignment | Aspose.Pdf.HorizontalAlignment | Read/Write | Gets or sets the text alignment. |
Value | string | Read/Write | Gets or sets the value. |
Width | double | Read/Write | Gets or sets the width. |
WordWrap | bool | Read/Write | Gets or sets the word wrap. |
WordWrapMode | Aspose.Pdf.Text.TextFormattingOptions.WordWrapMode | Read/Write | Gets or sets the word wrap mode. |
TextState | Aspose.Pdf.Text.TextState | Read | Text-state snapshot. |
FontSize | float | Read | Font size in points. |
AutoAdjustFontSizePrecision | float | Read/Write | When auto-adjusting font size to fit the stamp rectangle, the precision (in points). |
AutoAdjustFontSizeToFitStampRectangle | bool | Read/Write | When true, the renderer shrinks the font size until the text fits the stamp’s Width/Height. |
Draw | bool | Read/Write | When false, the stamp records intent but skips drawing. |
Justify | bool | Read/Write | When true, the stamp’s text is full-justified within the stamp width. |
MaxRowWidth | double | Read/Write | Maximum row width before wrapping. |
NoCharacterBehavior | NoCharacterAction | Read/Write | Strategy used when a character has no glyph in the configured font. |
ReplacementFont | Aspose.Pdf.Text.Font | Read/Write | Fallback font used when the main font lacks a required glyph; consulted only when NoCharacterBehavior is UseReplacementFont. |
TreatYIndentAsBaseLine | bool | Read/Write | When true, the stamp’s Y-indent is treated as the text baseline rather than the bounding-box top. |
méthodes
| Signature | Description |
|---|---|
TextStamp(value: string) | Calls TextStamp on this TextStamp instance. |
TextStamp(formattedText: Aspose.Pdf.Facades.FormattedText) | Construct a text stamp from a FormattedText template — copies its text, font, size and colour. |
TextStamp(value: string, textState: Aspose.Pdf.Text.TextState) | Construct a text stamp from a value and a precomputed TextState. |
Put(page: Page) | Add this stamp to a page. |
Voir aussi
- Aspose.PDF pour .NET — API d’entreprise