Get a Paragraph Introduction
Aspose.Slides.Cloud API allows retrieving table cell paragraph info.
GetTableCellParagraph
API
Type
Description
Resource
/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/rows/{rowIndex}/cells/{cellIndex}/paragraphs/{paragraphIndex}
GET
Returns paragraph info
GetTableCellParagraph
Examples
cURL Example
The code example below shows how to retrieve table cell paragraph info. Assume that the target paragraph is located in the first cell of the first row at the first position.
SDK Examples
C#
SlidesApi api = new SlidesApi ( "MyClientId" , "MyClientSecret" );
int slideIndex = 9 ;
int shapeIndex = 1 ;
int rowIndex = 1 ;
int cellIndex = 1 ;
int paragraphIndex = 1 ;
Paragraph response = api . GetTableCellParagraph ( "MyPresentation.pptx" , slideIndex , shapeIndex , rowIndex , cellIndex , paragraphIndex );
Console . WriteLine ( "Paragraph's portions count: " + response . PortionList . Count );
Java
SlidesApi api = new SlidesApi ( "MyClientId" , "MyClientSecret" );
int slideIndex = 9 ;
int shapeIndex = 1 ;
int rowIndex = 1 ;
int cellIndex = 1 ;
int paragraphIndex = 1 ;
Paragraph response = api . getTableCellParagraph ( "MyPresentation.pptx" , slideIndex , shapeIndex , rowIndex , cellIndex , paragraphIndex , null , null , null );
System . out . println ( "Paragraph's portions count: " + response . getPortionList (). size ());
PHP
use Aspose\Slides\Cloud\Sdk\Api\Configuration ;
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi ;
$config = new Configuration ();
$config -> setAppSid ( "MyClientId" );
$config -> setAppKey ( "MyClientSecret" );
$api = new SlidesApi ( null , $config );
$slideIndex = 9 ;
$shapeIndex = 1 ;
$rowIndex = 1 ;
$cellIndex = 1 ;
$paragraphIndex = 1 ;
$result = $api -> getTableCellParagraph ( "MyPresentation.pptx" , $slideIndex , $shapeIndex , $rowIndex , $cellIndex , $paragraphIndex );
print ( "Paragraph's portions count: " . count ( $result -> getPortionList ()));
Ruby
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
result = api . get_table_cell_paragraph ( "MyPresentation.pptx" , slide_index , shape_index , row_index , cell_index , paragraph_index )
puts "Paragraph's portions count: #{ result . portion_list . length } "
Python
import asposeslidescloud
from asposeslidescloud.configuration import Configuration
from asposeslidescloud.apis.slides_api import SlidesApi
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
response = api . get_table_cell_paragraph ( "MyPresentation.pptx" , slide_index , shape_index , row_index , cell_index , paragraph_index )
print ( f "Paragraph's portions count: {len(response.portion_list)}" )
Node.js
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 ;
const result = await api . getTableCellParagraph ( "MyPresentation.pptx" , slideIndex , shapeIndex , rowIndex , cellIndex , paragraphIndex );
console . log ( "Paragraph's portions count: " + result . body . portionList . length );
Go
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
result , _ , e := api . SlidesApi . GetTableCellParagraph ( fileName , slideIndex , shapeIndex , rowIndex , cellIndex , paragraphIndex , "" , "" , "" )
if e != nil {
fmt . Printf ( "Error: %v." , e )
return
}
fmt . Printf ( "Paragraph's portions count: %v" , len ( result . GetPortionList ()))
C++
Perl
use AsposeSlidesCloud::Configuration ;
use AsposeSlidesCloud::SlidesApi ;
my $config = AsposeSlidesCloud::Configuration -> new ();
$config -> { app_sid } = "MyClientId" ;
$config -> { app_key } = "MyClientSecret" ;
my $api = AsposeSlidesCloud::SlidesApi -> new ( config => $config );
my %params = (
'name' => "MyPresentation.pptx" ,
'slide_index' => 9 ,
'shape_index' => 1 ,
'row_index' => 1 ,
'cell_index' => 1 ,
'paragraph_index' => 1 );
my $response = $api -> get_table_cell_paragraph ( %params );
print "Paragraph's portions count: scalar @{$response->{portion_list}} \n" ;
Swift
SDK Source
The Aspose for Cloud SDKs can be downloaded from the following page: Available SDKs