SlidesApi api = new SlidesApi("MyClientId", "MyClientSecret");
int slideIndex = 9;
int shapeIndex = 1;
int rowIndex = 1;
int cellIndex = 1;
int paragraphIndex = 1;
Paragraph dto = new Paragraph()
{
PortionList = new List<Portion>
{
new Portion {Text = "Portion 1"},
new Portion {Text = "Portion 2"}
}
};
Paragraph response = api.UpdateTableCellParagraph("MyPresentation.pptx", slideIndex, shapeIndex, rowIndex, cellIndex, paragraphIndex, dto);
Console.WriteLine("The paragraph has been updated.");
SlidesApi api = new SlidesApi("MyClientId", "MyClientSecret");
int slideIndex = 9;
int shapeIndex = 1;
int rowIndex = 1;
int cellIndex = 1;
int paragraphIndex = 1;
Portion portion0 = new Portion();
portion0.setText("Portion 1");
Portion portion1 = new Portion();
portion1.setText("Portion 2");
Paragraph dto = new Paragraph();
dto.setPortionList(new ArrayList(Arrays.asList(portion0, portion1)));
Paragraph response = api.updateTableCellParagraph("MyPresentation.pptx", slideIndex, shapeIndex, rowIndex, cellIndex, paragraphIndex, dto, null, null, null);
System.out.println("The paragraph has been updated.");
use Aspose\Slides\Cloud\Sdk\Api\Configuration;
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi;
use Aspose\Slides\Cloud\Sdk\Model\Paragraph;
use Aspose\Slides\Cloud\Sdk\Model\Portion;
$config = new Configuration();
$config->setAppSid("MyClientId");
$config->setAppKey("MyClientSecret");
$api = new SlidesApi(null, $config);
$slideIndex = 9;
$shapeIndex = 1;
$rowIndex = 1;
$cellIndex = 1;
$paragraphIndex = 1;
$portion0 = new Portion();
$portion0->setText("Portion 1");
$portion1 = new Portion();
$portion1->setText("Portion 2");
$dto = new Paragraph();
$dto->setPortionList([$portion0, $portion1]);
$result = $api->updateTableCellParagraph("MyPresentation.pptx", $slideIndex, $shapeIndex, $rowIndex, $cellIndex, $paragraphIndex, $dto);
print("The paragraph has been updated.");
configuration = AsposeSlidesCloud::Configuration.new
configuration.app_sid = "MyClientId"
configuration.app_key = "MyClientSecret"
api = AsposeSlidesCloud::SlidesApi.new(configuration)
slide_index = 9
shape_index = 1
row_index = 1
cell_index = 1
paragraph_index = 1
portion0 = AsposeSlidesCloud::Portion.new
portion0.text = "Portion 1"
portion1 = AsposeSlidesCloud::Portion.new
portion1.text = "Portion 2"
dto = AsposeSlidesCloud::Paragraph.new
dto.portion_list = [portion0, portion1]
result = api.update_table_cell_paragraph("MyPresentation.pptx", slide_index, shape_index, row_index, cell_index, paragraph_index, dto)
print "The paragraph has been updated."
import asposeslidescloud
from asposeslidescloud.configuration import Configuration
from asposeslidescloud.apis.slides_api import SlidesApi
from asposeslidescloud.models.paragraph import Paragraph
from asposeslidescloud.models.portion import Portion
configuration = Configuration()
configuration.app_sid = 'MyClientId'
configuration.app_key = 'MyClientSecret'
api = SlidesApi(configuration)
slide_index = 9
shape_index = 1
row_index = 1
cell_index = 1
paragraph_index = 1
portion_0 = Portion()
portion_0.text = "Portion 1"
portion_1 = Portion()
portion_1.text = "Portion 2"
dto = Paragraph()
dto.portion_list = [portion_0, portion_1]
response = api.update_table_cell_paragraph("MyPresentation.pptx", slide_index, shape_index, row_index, cell_index, paragraph_index, dto)
print(f"The paragraph has been updated.")
const CloudSdk = require("asposeslidescloud");
const api = new CloudSdk.SlidesApi("MyClientId", "MyClientSecret");
let slideIndex = 9;
let shapeIndex = 1;
let rowIndex = 1;
let cellIndex = 1;
let paragraphIndex = 1;
let portion1 = new CloudSdk.Portion();
portion1.text = "Portion 1";
let portion2 = new CloudSdk.Portion();
portion2.text = "Portion 2";
let dto = new CloudSdk.Paragraph();
dto.portionList = [portion1, portion2];
const result = await api.updateTableCellParagraph("MyPresentation.pptx", slideIndex, shapeIndex, rowIndex, cellIndex, paragraphIndex, dto);
console.log("The paragraph has been updated.");
cfg := asposeslidescloud.NewConfiguration()
cfg.AppSid = "MyClientId"
cfg.AppKey = "MyClientSecret"
api := asposeslidescloud.NewAPIClient(cfg)
fileName := "MyPresentation.pptx"
var slideIndex int32 = 9
var shapeIndex int32 = 1
var rowIndex int32 = 1
var cellIndex int32 = 1
var paragraphIndex int32 = 1
portion0 := asposeslidescloud.NewPortion()
portion0.SetText("Portion 1")
portion1 := asposeslidescloud.NewPortion()
portion1.SetText("Portion 2")
dto := asposeslidescloud.NewParagraph()
dto.SetPortionList([]asposeslidescloud.IPortion{portion0, portion1})
result, _, e := api.SlidesApi.UpdateTableCellParagraph(fileName, slideIndex, shapeIndex, rowIndex, cellIndex, paragraphIndex, dto, "", "", "")
if e != nil {
fmt.Printf("Error: %v.", e)
return
}
fmt.Printf("The paragraph has been updated^ %v portions.", len(result.GetPortionList()))
use AsposeSlidesCloud::Configuration;
use AsposeSlidesCloud::SlidesApi;
use AsposeSlidesCloud::Object::Portion;
use AsposeSlidesCloud::Object::Paragraph;
my $config = AsposeSlidesCloud::Configuration->new();
$config->{app_sid} = "MyClientId";
$config->{app_key} = "MyClientSecret";
my $api = AsposeSlidesCloud::SlidesApi->new(config => $config);
my $portion0 = AsposeSlidesCloud::Object::Portion->new();
$portion0->{text} = "Portion 1";
my $portion1 = AsposeSlidesCloud::Object::Portion->new();
$portion1->{text} = "Portion 2";
my @portions = ($portion0, $portion1);
my $dto = AsposeSlidesCloud::Object::Paragraph->new();
$dto->{portion_list} = \@portions;
my %params = (
'name' => "MyPresentation.pptx",
'slide_index' => 9,
'shape_index' => 1,
'row_index' => 1,
'cell_index' => 1,
'paragraph_index' => 1,
'dto' => $dto);
my $response = $api->update_table_cell_paragraph(%params);
print "The paragraph has been updated. \n";