IText Class
Contents
[
Hide
]Summary: Interface for Text Editing for Text Layers
Module: aspose.psd.fileformats.psd.layers.text
Full Name: aspose.psd.fileformats.psd.layers.text.IText
Aspose.PSD Version: 24.12.0
Properties
Name | Type | Access | Description |
---|---|---|---|
items | ITextPortion[] | r | Gets the items. |
text | string | r | Gets the text. |
text_orientation | TextOrientation | r/w | Gets or sets the text orientation. |
Methods
Name | Description |
---|---|
add_portion(portion) | Adds the portion of text to the end |
insert_portion(portion, index) | Inserts the ITextPortion to specified position |
produce_portion() | Produces the new portion with default parameters |
produce_portions(portions_of_text, style_prototype, paragraph_prototype) | Produces the new portions with input or default parameters. |
remove_portion(index) | Removes the portion in specified index |
update_layer_data() | Updates the layer data. |
Method: add_portion(portion)
add_portion(portion)
Adds the portion of text to the end
Parameters:
Parameter | Type | Description |
---|---|---|
portion | ITextPortion | The portion. |
Method: insert_portion(portion, index)
insert_portion(portion, index)
Inserts the ITextPortion to specified position
Parameters:
Parameter | Type | Description |
---|---|---|
portion | ITextPortion | The portion. |
index | int | The index. |
Method: produce_portion()
produce_portion()
Produces the new portion with default parameters
Returns
Type | Description |
---|---|
ITextPortion | Reference to newly created ITextPortion. |
Method: produce_portions(portions_of_text, style_prototype, paragraph_prototype)
produce_portions(portions_of_text, style_prototype, paragraph_prototype)
Produces the new portions with input or default parameters.
Parameters:
Parameter | Type | Description |
---|---|---|
portions_of_text | string | The portions of text to create new ITextPortion. |
style_prototype | ITextStyle | A style that, if not null, will be applied in the new ITextPortion, otherwise will be default. |
paragraph_prototype | ITextParagraph | A paragraph that, if not null, will be applied in the new ITextPortion, otherwise will be default. |
Returns
Type | Description |
---|---|
ITextPortion[] | Returns the new portions ITextPortion based on input parameters. |
Method: remove_portion(index)
remove_portion(index)
Removes the portion in specified index
Parameters:
Parameter | Type | Description |
---|---|---|
index | int | The index. |