Class Page

पेज

प्रज़ेंटेशन में मौजूद कोई पेज.

तरीके

तरीकारिटर्न टाइपसंक्षिप्त विवरण
asLayout()Layoutपेज को लेआउट के तौर पर दिखाता है.
asMaster()Masterपेज को मास्टर के तौर पर दिखाता है.
asSlide()Slideपेज को स्लाइड के तौर पर दिखाता है.
getBackground()PageBackgroundपेज के बैकग्राउंड की जानकारी मिलती है.
getColorScheme()ColorSchemeपेज से जुड़ा ColorScheme पाता है.
getGroups()Group[]पेज पर Group ऑब्जेक्ट की सूची दिखाता है.
getImages()Image[]पेज पर Image ऑब्जेक्ट की सूची दिखाता है.
getLines()Line[]पेज पर Line ऑब्जेक्ट की सूची दिखाता है.
getObjectId()Stringपेज का यूनीक आईडी मिलता है.
getPageElementById(id)PageElementदिए गए आईडी वाले पेज पर PageElement दिखाता है या कोई आईडी मौजूद न होने पर null दिखाता है.
getPageElements()PageElement[]पेज पर रेंडर किए गए PageElement ऑब्जेक्ट की सूची दिखाता है.
getPageType()PageTypeपेज का टाइप पता चलता है.
getPlaceholder(placeholderType)PageElementकिसी PlaceholderType या null के लिए प्लेसहोल्डर PageElement ऑब्जेक्ट दिखाता है. ऐसा तब होता है, जब मिलता-जुलता कोई प्लेसहोल्डर मौजूद न हो.
getPlaceholder(placeholderType, placeholderIndex)PageElementकिसी खास PlaceholderType और प्लेसहोल्डर इंडेक्स के लिए, प्लेसहोल्डर PageElement ऑब्जेक्ट दिखाता है. अगर प्लेसहोल्डर मौजूद नहीं है, तो null दिखाता है.
getPlaceholders()PageElement[]पेज में प्लेसहोल्डर PageElement ऑब्जेक्ट की सूची दिखाता है.
getShapes()Shape[]पेज पर Shape ऑब्जेक्ट की सूची दिखाता है.
getSheetsCharts()SheetsChart[]पेज पर SheetsChart ऑब्जेक्ट की सूची दिखाता है.
getTables()Table[]पेज पर Table ऑब्जेक्ट की सूची दिखाता है.
getVideos()Video[]पेज पर Video ऑब्जेक्ट की सूची दिखाता है.
getWordArts()WordArt[]पेज पर WordArt ऑब्जेक्ट की सूची दिखाता है.
group(pageElements)Groupपेज के सभी एलिमेंट को ग्रुप में रखता है.
insertGroup(group)Groupदिए गए Group की कॉपी को पेज पर शामिल करता है.
insertImage(blobSource)Imageपेज के सबसे ऊपर बाएं कोने में, दिए गए इमेज ब्लॉब से डिफ़ॉल्ट साइज़ वाला एक इमेज डालता है.
insertImage(blobSource, left, top, width, height)Imageदिए गए चित्र ब्लॉब से दी गई स्थिति और आकार के साथ पेज पर एक चित्र सम्मिलित करता है.
insertImage(image)Imageदिए गए Image की कॉपी को पेज पर शामिल करता है.
insertImage(imageUrl)Imageपेज के सबसे ऊपर बाएं कोने में दिए गए यूआरएल से डिफ़ॉल्ट साइज़ के साथ एक इमेज इंसर्ट करता है.
insertImage(imageUrl, left, top, width, height)Imageदिए गए यूआरएल से, पेज पर इमेज की दी गई जगह और साइज़ शामिल करता है.
insertLine(line)Lineदिए गए Line की कॉपी को पेज पर शामिल करता है.
insertLine(lineCategory, startConnectionSite, endConnectionSite)Lineदो connection sites को जोड़ने वाले पेज पर एक लाइन डालता है.
insertLine(lineCategory, startLeft, startTop, endLeft, endTop)Lineपेज पर लाइन शामिल करता है.
insertPageElement(pageElement)PageElementदिए गए PageElement की कॉपी को पेज पर शामिल करता है.
insertShape(shape)Shapeदिए गए Shape की कॉपी को पेज पर शामिल करता है.
insertShape(shapeType)Shapeपेज पर आकार डालता है.
insertShape(shapeType, left, top, width, height)Shapeपेज पर आकार डालता है.
insertSheetsChart(sourceChart)SheetsChartपेज पर Google Sheets चार्ट शामिल करता है.
insertSheetsChart(sourceChart, left, top, width, height)SheetsChartदी गई पोज़िशन और साइज़ के साथ, पेज पर Google Sheets चार्ट को शामिल करता है.
insertSheetsChart(sheetsChart)SheetsChartदिए गए SheetsChart की कॉपी को पेज पर शामिल करता है.
insertSheetsChartAsImage(sourceChart)ImageGoogle Sheets चार्ट को पेज पर Image के तौर पर शामिल करता है.
insertSheetsChartAsImage(sourceChart, left, top, width, height)Imageदी गई पोज़िशन और साइज़ के साथ, पेज पर Image के तौर पर Google Sheets चार्ट को शामिल करता है.
insertTable(numRows, numColumns)Tableपेज पर टेबल शामिल करता है.
insertTable(numRows, numColumns, left, top, width, height)Tableदी गई जगह और साइज़ की जानकारी के साथ, पेज पर एक टेबल शामिल करता है.
insertTable(table)Tableदिए गए Table की कॉपी को पेज पर शामिल करता है.
insertTextBox(text)Shapeपेज पर दी गई स्ट्रिंग वाले टेक्स्ट बॉक्स Shape को डालता है.
insertTextBox(text, left, top, width, height)Shapeपेज पर दी गई स्ट्रिंग वाले टेक्स्ट बॉक्स Shape को डालता है.
insertVideo(videoUrl)Videoपेज के सबसे ऊपर बाएं कोने में, डिफ़ॉल्ट साइज़ के साथ वीडियो डालता है.
insertVideo(videoUrl, left, top, width, height)Videoदी गई पोज़िशन और साइज़ के साथ पेज पर वीडियो डालता है.
insertVideo(video)Videoदिए गए Video की कॉपी को पेज पर शामिल करता है.
insertWordArt(wordArt)WordArtदिए गए WordArt की कॉपी को पेज पर शामिल करता है.
remove()voidपेज को हटा देता है.
replaceAllText(findText, replaceText)Integerटेक्स्ट ढूंढने वाले टेक्स्ट के सभी इंस्टेंस को, टेक्स्ट बदलें वाले टेक्स्ट से बदलता है.
replaceAllText(findText, replaceText, matchCase)Integerटेक्स्ट ढूंढने वाले टेक्स्ट के सभी इंस्टेंस को, टेक्स्ट बदलें वाले टेक्स्ट से बदलता है.
selectAsCurrentPage()voidयह चालू प्रज़ेंटेशन में Page को current page selection के तौर पर चुनता है और पहले चुने गए सभी विकल्प हटा देता है.

ज़्यादा जानकारी के साथ दस्तावेज़

asLayout()

पेज को लेआउट के तौर पर दिखाता है.

रिटर्न

Layout — पेज, लेआउट के तौर पर.

अनुमति देना

इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या ज़्यादा स्कोप से अनुमति देने की ज़रूरत होती है:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

asMaster()

पेज को मास्टर के तौर पर दिखाता है.

रिटर्न

Master — मास्टर के तौर पर पेज.

अनुमति देना

इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या ज़्यादा स्कोप से अनुमति देने की ज़रूरत होती है:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

asSlide()

पेज को स्लाइड के तौर पर दिखाता है.

रिटर्न

Slide — पेज को स्लाइड के तौर पर.

अनुमति देना

इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या ज़्यादा स्कोप से अनुमति देने की ज़रूरत होती है:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

getBackground()

पेज के बैकग्राउंड की जानकारी मिलती है.

रिटर्न

PageBackground — पेज का बैकग्राउंड.

अनुमति देना

इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या ज़्यादा स्कोप से अनुमति देने की ज़रूरत होती है:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

getColorScheme()

पेज से जुड़ा ColorScheme पाता है.

रिटर्न

ColorScheme — पेज की कलर स्कीम.

अनुमति देना

इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या ज़्यादा स्कोप से अनुमति देने की ज़रूरत होती है:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

getGroups()

पेज पर Group ऑब्जेक्ट की सूची दिखाता है.

रिटर्न

Group[]

अनुमति देना

इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या ज़्यादा स्कोप से अनुमति देने की ज़रूरत होती है:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

getImages()

पेज पर Image ऑब्जेक्ट की सूची दिखाता है.

रिटर्न

Image[]

अनुमति देना

इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या ज़्यादा स्कोप से अनुमति देने की ज़रूरत होती है:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

getLines()

पेज पर Line ऑब्जेक्ट की सूची दिखाता है.

रिटर्न

Line[]

अनुमति देना

इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या ज़्यादा स्कोप से अनुमति देने की ज़रूरत होती है:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

getObjectId()

पेज का यूनीक आईडी मिलता है. पेज और पेज एलिमेंट के लिए इस्तेमाल किए जाने वाले ऑब्जेक्ट आईडी का नेमस्पेस एक जैसा होता है.

रिटर्न

String

अनुमति देना

इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या ज़्यादा स्कोप से अनुमति देने की ज़रूरत होती है:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

getPageElementById(id)

दिए गए आईडी वाले पेज पर PageElement दिखाता है या कोई आईडी मौजूद न होने पर null दिखाता है.

पैरामीटर

नामTypeब्यौरा
idStringउस पेज एलिमेंट का आईडी जिसे वापस लाया जा रहा है.

रिटर्न

PageElement — दिए गए आईडी वाला पेज एलिमेंट.

अनुमति देना

इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या ज़्यादा स्कोप से अनुमति देने की ज़रूरत होती है:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

getPageElements()

पेज पर रेंडर किए गए PageElement ऑब्जेक्ट की सूची दिखाता है.

रिटर्न

PageElement[]

अनुमति देना

इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या ज़्यादा स्कोप से अनुमति देने की ज़रूरत होती है:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

getPageType()

पेज का टाइप पता चलता है.

रिटर्न

PageType — पेज टाइप.

अनुमति देना

इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या ज़्यादा स्कोप से अनुमति देने की ज़रूरत होती है:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

getPlaceholder(placeholderType)

किसी PlaceholderType या null के लिए प्लेसहोल्डर PageElement ऑब्जेक्ट दिखाता है. ऐसा तब होता है, जब मिलता-जुलता कोई प्लेसहोल्डर मौजूद न हो.

अगर एक ही टाइप वाले कई प्लेसहोल्डर हैं, तो यह कम से कम प्लेसहोल्डर इंडेक्स वाला प्लेसहोल्डर दिखाता है. अगर एक ही इंडेक्स में मैच करने वाले कई प्लेसहोल्डर हैं, तो यह पेज के पेज एलिमेंट कलेक्शन से पहला प्लेसहोल्डर दिखाता है.

var slide = SlidesApp.getActivePresentation().getSlides()[0];
var placeholder = slide.getPlaceholder(SlidesApp.PlaceholderType.CENTERED_TITLE);

पैरामीटर

नामTypeब्यौरा
placeholderTypePlaceholderType

रिटर्न

PageElement

अनुमति देना

इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या ज़्यादा स्कोप से अनुमति देने की ज़रूरत होती है:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

getPlaceholder(placeholderType, placeholderIndex)

किसी खास PlaceholderType और प्लेसहोल्डर इंडेक्स के लिए, प्लेसहोल्डर PageElement ऑब्जेक्ट दिखाता है. अगर प्लेसहोल्डर मौजूद नहीं है, तो null दिखाता है.

अगर एक ही टाइप और इंडेक्स वाले कई प्लेसहोल्डर हैं, तो यह पेज के पेज एलिमेंट कलेक्शन से पहला प्लेसहोल्डर दिखाता है.

var slide = SlidesApp.getActivePresentation().getSlides()[0];
var placeholder = slide.getPlaceholder(SlidesApp.PlaceholderType.CENTERED_TITLE, 0);

पैरामीटर

नामTypeब्यौरा
placeholderTypePlaceholderType
placeholderIndexInteger

रिटर्न

PageElement

अनुमति देना

इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या ज़्यादा स्कोप से अनुमति देने की ज़रूरत होती है:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

getPlaceholders()

पेज में प्लेसहोल्डर PageElement ऑब्जेक्ट की सूची दिखाता है.

var master = SlidesApp.getActivePresentation().getMasters()[0];
Logger.log('Number of placeholders in the master: ' + master.getPlaceholders().length);

रिटर्न

PageElement[]

अनुमति देना

इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या ज़्यादा स्कोप से अनुमति देने की ज़रूरत होती है:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

getShapes()

पेज पर Shape ऑब्जेक्ट की सूची दिखाता है.

रिटर्न

Shape[]

अनुमति देना

इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या ज़्यादा स्कोप से अनुमति देने की ज़रूरत होती है:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

getSheetsCharts()

पेज पर SheetsChart ऑब्जेक्ट की सूची दिखाता है.

रिटर्न

SheetsChart[]

अनुमति देना

इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या ज़्यादा स्कोप से अनुमति देने की ज़रूरत होती है:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

getTables()

पेज पर Table ऑब्जेक्ट की सूची दिखाता है.

रिटर्न

Table[]

अनुमति देना

इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या ज़्यादा स्कोप से अनुमति देने की ज़रूरत होती है:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

getVideos()

पेज पर Video ऑब्जेक्ट की सूची दिखाता है.

रिटर्न

Video[]

अनुमति देना

इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या ज़्यादा स्कोप से अनुमति देने की ज़रूरत होती है:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

getWordArts()

पेज पर WordArt ऑब्जेक्ट की सूची दिखाता है.

रिटर्न

WordArt[]

अनुमति देना

इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या ज़्यादा स्कोप से अनुमति देने की ज़रूरत होती है:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

group(pageElements)

पेज के सभी एलिमेंट को ग्रुप में रखता है.

एक ही पेज पर ऐसे कम से कम दो पेज एलिमेंट होने चाहिए, जो पहले से किसी दूसरे ग्रुप में न हों. पेज के कुछ एलिमेंट, जैसे कि Videos, Tables, और placeholder Shapes को ग्रुप नहीं किया जा सकता.

पैरामीटर

नामTypeब्यौरा
pageElementsPageElement[]एलिमेंट, जिन्हें एक साथ ग्रुप करना है.

रिटर्न

Group — नया ग्रुप.

अनुमति देना

इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या ज़्यादा स्कोप से अनुमति देने की ज़रूरत होती है:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

insertGroup(group)

दिए गए Group की कॉपी को पेज पर शामिल करता है.

इस पेज पर शामिल किए गए एलिमेंट की स्थिति, सोर्स एलिमेंट की स्थिति से तय होती है.

अगर दिया गया एलिमेंट कोई प्लेसहोल्डर है, जिसे मौजूदा प्रज़ेंटेशन में कॉपी किया जा रहा है, तो मास्टर या लेआउट पेजों से इनहेरिट की जाने वाली प्रॉपर्टी, शामिल किए गए एलिमेंट पर भी लागू होती हैं.

अगर दिया गया एलिमेंट एक प्लेसहोल्डर है, जिसे किसी दूसरे प्रज़ेंटेशन से कॉपी किया जा रहा है, तो मास्टर या लेआउट पेजों से इनहेरिट की जाने वाली प्रॉपर्टी, सोर्स प्रज़ेंटेशन से एलिमेंट पर कॉपी की जाती हैं.

// Copy a group between presentations.
var otherPresentationSlide = SlidesApp.openById('presentationId').getSlides()[0];
var currentPresentationSlide = SlidesApp.getActivePresentation().getSlides()[0];
var group = otherPresentationSlide.getGroups()[0];
currentPresentationSlide.insertGroup(group); // Also available for Layout, Master, and Page.

पैरामीटर

नामTypeब्यौरा
groupGroupकॉपी करके शामिल किया जाने वाला ग्रुप.

रिटर्न

Group — डाला गया ग्रुप.

अनुमति देना

इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या ज़्यादा स्कोप से अनुमति देने की ज़रूरत होती है:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

insertImage(blobSource)

पेज के सबसे ऊपर बाएं कोने में, दिए गए इमेज ब्लॉब से डिफ़ॉल्ट साइज़ वाला एक इमेज डालता है.

इमेज को शामिल करने से वह BlobSource से एक बार फ़ेच हो जाती है और प्रज़ेंटेशन में दिखाने के लिए उसकी एक कॉपी सेव कर ली जाती है. इमेज का साइज़ 50 एमबी से कम, 25 मेगापिक्सल से ज़्यादा नहीं होना चाहिए. साथ ही, इमेज PNG, JPEG या GIF फ़ॉर्मैट में होनी चाहिए.

var slide = SlidesApp.getActivePresentation().getSlides()[0];
// Get the Drive image file with the given ID.
var image = DriveApp.getFileById(fileId);
slide.insertImage(image);

पैरामीटर

नामTypeब्यौरा
blobSourceBlobSourceइमेज का डेटा.

रिटर्न

Image — शामिल की गई इमेज.

अनुमति देना

इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या ज़्यादा स्कोप से अनुमति देने की ज़रूरत होती है:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

insertImage(blobSource, left, top, width, height)

दिए गए चित्र ब्लॉब से दी गई स्थिति और आकार के साथ पेज पर एक चित्र सम्मिलित करता है.

इमेज को शामिल करते समय, दिए गए BlobSource से एक बार इमेज फ़ेच की जाती है और प्रज़ेंटेशन में दिखाने के लिए उसकी एक कॉपी सेव की जाती है. इमेज का साइज़ 50 एमबी से कम होना चाहिए. साथ ही, इमेज का साइज़ 25 मेगापिक्सल से ज़्यादा नहीं होना चाहिए. साथ ही, इमेज PNG, JPEG या GIF फ़ॉर्मैट में ही होनी चाहिए.

इमेज के आसपेक्ट रेशियो को बनाए रखने के लिए, इमेज को दिए गए साइज़ के हिसाब से स्केल और बीच में रखा जाता है.

var slide = SlidesApp.getActivePresentation().getSlides()[0];
// Get the Drive image file with the given ID.
var image = DriveApp.getFileById(fileId);
var position = {left: 0, top: 0};
var size = {width: 300, height: 100};
slide.insertImage(image, position.left, position.top, size.width, size.height);

पैरामीटर

नामTypeब्यौरा
blobSourceBlobSourceइमेज का डेटा.
leftNumberबिंदुओं में इमेज की हॉरिज़ॉन्टल पोज़िशन, जिसे पेज के सबसे ऊपर बाएं कोने से मापा जाता है.
topNumberइमेज की वर्टिकल पोज़िशन को पॉइंट में दिखाया जाता है. इसे पेज के सबसे ऊपर बाएं कोने से मापा जाता है.
widthNumberपॉइंट में इमेज की चौड़ाई.
heightNumberपॉइंट में इमेज की ऊंचाई.

रिटर्न

Image — शामिल की गई इमेज.

अनुमति देना

इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या ज़्यादा स्कोप से अनुमति देने की ज़रूरत होती है:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

insertImage(image)

दिए गए Image की कॉपी को पेज पर शामिल करता है.

इस पेज पर शामिल की गई इमेज की जगह, उस पेज पर सोर्स इमेज की जगह से तय होती है.

अगर दी गई इमेज कोई प्लेसहोल्डर है, जिसे मौजूदा प्रज़ेंटेशन से कॉपी किया जा रहा है, तो शामिल की गई इमेज पर उन प्रॉपर्टी को भी शामिल किया जाएगा जो मास्टर या लेआउट पेजों से इनहेरिट की जा रही हैं.

अगर दी गई इमेज एक प्लेसहोल्डर है, जिसे किसी दूसरे प्रज़ेंटेशन से कॉपी किया जा रहा है, तो मास्टर या लेआउट पेजों से इनहेरिट की गई प्रॉपर्टी को सोर्स प्रज़ेंटेशन से इमेज पर कॉपी किया जाता है. अगर कॉपी की गई प्लेसहोल्डर इमेज खाली है, तो डेस्टिनेशन प्रज़ेंटेशन में कुछ भी नहीं डाला जाएगा.

// Copy an image between presentations.
var otherPresentationSlide = SlidesApp.openById('presentationId').getSlides()[0];
var currentPresentationSlide = SlidesApp.getActivePresentation().getSlides()[0];
var image = otherPresentationSlide.getImages[0];
currentPresentationSlide.insertImage(image);

पैरामीटर

नामTypeब्यौरा
imageImageवह इमेज जिसे कॉपी करके शामिल करना है.

रिटर्न

Image — शामिल की गई इमेज.

अनुमति देना

इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या ज़्यादा स्कोप से अनुमति देने की ज़रूरत होती है:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

insertImage(imageUrl)

पेज के सबसे ऊपर बाएं कोने में दिए गए यूआरएल से डिफ़ॉल्ट साइज़ के साथ एक इमेज इंसर्ट करता है.

इमेज को डालने से वह यूआरएल से एक बार फ़ेच हो जाती है और प्रज़ेंटेशन में दिखाने के लिए उसकी एक कॉपी सेव हो जाती है. इमेज का साइज़ 50 एमबी से कम, 25 मेगापिक्सल से ज़्यादा नहीं होना चाहिए. साथ ही, इमेज PNG, JPEG या GIF फ़ॉर्मैट में होनी चाहिए.

दिया गया यूआरएल सार्वजनिक तौर पर ऐक्सेस करने लायक होना चाहिए. साथ ही, यह 2kB से ज़्यादा का नहीं होना चाहिए. यूआरएल को इमेज के साथ सेव किया जाता है और उसे Image.getSourceUrl() की मदद से दिखाया जाता है.

पैरामीटर

नामTypeब्यौरा
imageUrlStringइमेज का यूआरएल.

रिटर्न

Image — शामिल की गई इमेज.

अनुमति देना

इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या ज़्यादा स्कोप से अनुमति देने की ज़रूरत होती है:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

insertImage(imageUrl, left, top, width, height)

दिए गए यूआरएल से, पेज पर इमेज की दी गई जगह और साइज़ शामिल करता है.

इमेज को डालने से वह यूआरएल से एक बार फ़ेच हो जाती है और प्रज़ेंटेशन में दिखाने के लिए उसकी एक कॉपी सेव हो जाती है. इमेज का साइज़ 50 एमबी से कम, 25 मेगापिक्सल से ज़्यादा नहीं होना चाहिए. साथ ही, इमेज PNG, JPEG या GIF फ़ॉर्मैट में होनी चाहिए.

दिया गया यूआरएल सार्वजनिक तौर पर ऐक्सेस करने लायक होना चाहिए. साथ ही, यह 2kB से ज़्यादा का नहीं होना चाहिए. यूआरएल को इमेज के साथ सेव किया जाता है और उसे Image.getSourceUrl() की मदद से दिखाया जाता है.

इमेज के आसपेक्ट रेशियो को बनाए रखने के लिए, इमेज को दिए गए साइज़ के हिसाब से स्केल और बीच में रखा जाता है.

पैरामीटर

नामTypeब्यौरा
imageUrlStringइमेज का यूआरएल.
leftNumberबिंदुओं में इमेज की हॉरिज़ॉन्टल पोज़िशन, जिसे पेज के सबसे ऊपर बाएं कोने से मापा जाता है.
topNumberइमेज की वर्टिकल पोज़िशन को पॉइंट में दिखाया जाता है. इसे पेज के सबसे ऊपर बाएं कोने से मापा जाता है.
widthNumberपॉइंट में इमेज की चौड़ाई.
heightNumberपॉइंट में इमेज की ऊंचाई.

रिटर्न

Image — शामिल की गई इमेज.

अनुमति देना

इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या ज़्यादा स्कोप से अनुमति देने की ज़रूरत होती है:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

insertLine(line)

दिए गए Line की कॉपी को पेज पर शामिल करता है.

इस पेज पर शामिल किए गए एलिमेंट की स्थिति, सोर्स एलिमेंट की स्थिति से तय होती है.

अगर दिया गया एलिमेंट कोई प्लेसहोल्डर है, जिसे मौजूदा प्रज़ेंटेशन में कॉपी किया जा रहा है, तो मास्टर या लेआउट पेजों से इनहेरिट की जाने वाली प्रॉपर्टी, शामिल किए गए एलिमेंट पर भी लागू होती हैं.

अगर दिया गया एलिमेंट एक प्लेसहोल्डर है, जिसे किसी दूसरे प्रज़ेंटेशन से कॉपी किया जा रहा है, तो मास्टर या लेआउट पेजों से इनहेरिट की जाने वाली प्रॉपर्टी, सोर्स प्रज़ेंटेशन से एलिमेंट पर कॉपी की जाती हैं.

// Copy a line between presentations.
var otherPresentationSlide = SlidesApp.openById('presentationId').getSlides()[0];
var currentPresentationSlide = SlidesApp.getActivePresentation().getSlides()[0];
var line = otherPresentationSlide.getLines[0];
currentPresentationSlide.insertLine(line);

पैरामीटर

नामTypeब्यौरा
lineLineकॉपी करके शामिल की जाने वाली लाइन.

रिटर्न

Line — शामिल की गई लाइन.

अनुमति देना

इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या ज़्यादा स्कोप से अनुमति देने की ज़रूरत होती है:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

insertLine(lineCategory, startConnectionSite, endConnectionSite)

दो connection sites को जोड़ने वाले पेज पर एक लाइन डालता है. इस पेज पर दोनों कनेक्शन साइटें होनी चाहिए.

// Insert a line in the first slide of the presentation connecting two shapes.
var slide = SlidesApp.getActivePresentation().getSlides()[0];
var shape1 = slide.insertShape(SlidesApp.ShapeType.RECTANGLE);
var shape2 = slide.insertShape(SlidesApp.ShapeType.CLOUD);
slide.insertLine(
    SlidesApp.LineCategory.BENT,
    shape1.getConnectionSites()[0],
    shape2.getConnectionSites()[1]);

पैरामीटर

नामTypeब्यौरा
lineCategoryLineCategoryशामिल की जाने वाली पंक्ति की श्रेणी.
startConnectionSiteConnectionSiteकनेक्शन साइट, जहां लाइन की शुरुआत जोड़नी है.
endConnectionSiteConnectionSiteकनेक्शन साइट, जहां लाइन के आखिरी हिस्से को कनेक्ट करना है.

रिटर्न

Line — शामिल की गई लाइन.

अनुमति देना

इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या ज़्यादा स्कोप से अनुमति देने की ज़रूरत होती है:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

insertLine(lineCategory, startLeft, startTop, endLeft, endTop)

पेज पर लाइन शामिल करता है.

// Insert a line in the first slide of the presentation.
var slide = SlidesApp.getActivePresentation().getSlides()[0];
var startPoint = {left: 10, top: 10};
var endPoint = {left: 40, top: 40};
slide.insertLine(
    SlidesApp.LineCategory.STRAIGHT,
    startPoint.left,
    startPoint.top,
    endPoint.left,
    endPoint.top);

पैरामीटर

नामTypeब्यौरा
lineCategoryLineCategoryशामिल की जाने वाली पंक्ति की श्रेणी.
startLeftNumberलाइन के शुरुआती पॉइंट की हॉरिज़ॉन्टल पोज़िशन, जिसे पेज के ऊपर बाएं कोने से पॉइंट में मापा जाता है.
startTopNumberलाइन के शुरुआती पॉइंट की वर्टिकल पोज़िशन, जिसे पेज के सबसे ऊपर बाएं कोने से पॉइंट में मापा जाता है.
endLeftNumberलाइन के एंड पॉइंट की हॉरिज़ॉन्टल पोज़िशन को पेज के ऊपरी बाएं कोने से पॉइंट में मापा जाता है.
endTopNumberलाइन के एंड पॉइंट की वर्टिकल पोज़िशन, जिसे पेज के सबसे ऊपर बाएं कोने से कई पॉइंट में मापा जाता है.

रिटर्न

Line — शामिल की गई लाइन.

अनुमति देना

इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या ज़्यादा स्कोप से अनुमति देने की ज़रूरत होती है:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

insertPageElement(pageElement)

दिए गए PageElement की कॉपी को पेज पर शामिल करता है.

इस पेज पर शामिल किए गए एलिमेंट की स्थिति, सोर्स एलिमेंट की स्थिति से तय होती है.

अगर दिया गया एलिमेंट कोई प्लेसहोल्डर है, जिसे मौजूदा प्रज़ेंटेशन में कॉपी किया जा रहा है, तो मास्टर या लेआउट पेजों से इनहेरिट की जाने वाली प्रॉपर्टी, शामिल किए गए एलिमेंट पर भी लागू होती हैं.

अगर दिया गया एलिमेंट एक प्लेसहोल्डर है, जिसे किसी दूसरे प्रज़ेंटेशन से कॉपी किया जा रहा है, तो मास्टर या लेआउट पेजों से इनहेरिट की जाने वाली प्रॉपर्टी, सोर्स प्रज़ेंटेशन से एलिमेंट पर कॉपी की जाती हैं.

// Copy a page element between presentations.
var otherPresentationSlide = SlidesApp.openById('presentationId').getSlides()[0];
var currentPresentationSlide = SlidesApp.getActivePresentation().getSlides()[0];
var pageElement = otherPresentationSlide.getPageElements()[0];

// Also available for Layout, Master, and Page.
currentPresentationSlide.insertPageElement(pageElement);

पैरामीटर

नामTypeब्यौरा
pageElementPageElementपेज का वह एलिमेंट जिसे कॉपी करके शामिल करना है.

रिटर्न

PageElement — डाला गया पेज एलिमेंट.

अनुमति देना

इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या ज़्यादा स्कोप से अनुमति देने की ज़रूरत होती है:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

insertShape(shape)

दिए गए Shape की कॉपी को पेज पर शामिल करता है.

इस पेज पर शामिल किए गए एलिमेंट की स्थिति, सोर्स एलिमेंट की स्थिति से तय होती है.

अगर दिया गया एलिमेंट कोई प्लेसहोल्डर है, जिसे मौजूदा प्रज़ेंटेशन में कॉपी किया जा रहा है, तो मास्टर या लेआउट पेजों से इनहेरिट की जाने वाली प्रॉपर्टी, शामिल किए गए एलिमेंट पर भी लागू होती हैं.

अगर दिया गया एलिमेंट एक प्लेसहोल्डर है, जिसे किसी दूसरे प्रज़ेंटेशन से कॉपी किया जा रहा है, तो मास्टर या लेआउट पेजों से इनहेरिट की जाने वाली प्रॉपर्टी, सोर्स प्रज़ेंटेशन से एलिमेंट पर कॉपी की जाती हैं.

// Copy a shape between presentations.
var otherPresentationSlide = SlidesApp.openById('presentationId').getSlides()[0];
var currentPresentationSlide = SlidesApp.getActivePresentation().getSlides()[0];
var shape = otherPresentationSlide.getShapes[0];
currentPresentationSlide.insertShape(shape); // Also available for Layout, Master, and Page.

पैरामीटर

नामTypeब्यौरा
shapeShapeकॉपी करके डाला जाने वाला आकार.

रिटर्न

Shape — शामिल किया गया आकार.

अनुमति देना

इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या ज़्यादा स्कोप से अनुमति देने की ज़रूरत होती है:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

insertShape(shapeType)

पेज पर आकार डालता है.

आकार को पेज के सबसे ऊपर बाएं कोने में, डिफ़ॉल्ट साइज़ का इस्तेमाल करके शामिल किया जाता है.

// Insert a shape in the first slide of the presentation.
var slide = SlidesApp.getActivePresentation().getSlides()[0];

// Also available for Layout, Master, and Page.
slide.insertShape(SlidesApp.ShapeType.RECTANGLE);

पैरामीटर

नामTypeब्यौरा
shapeTypeShapeTypeशामिल किए जाने वाले आकार का प्रकार.

रिटर्न

Shape — शामिल किया गया आकार.

अनुमति देना

इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या ज़्यादा स्कोप से अनुमति देने की ज़रूरत होती है:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

insertShape(shapeType, left, top, width, height)

पेज पर आकार डालता है.

पैरामीटर

नामTypeब्यौरा
shapeTypeShapeTypeशामिल किए जाने वाले आकार का प्रकार.
leftNumberआकृति की हॉरिज़ॉन्टल स्थिति, जिसे पेज के ऊपरी बाएं कोने से मापा जाता है.
topNumberआकृति की वर्टिकल पोज़िशन, जिसे पेज के ऊपरी बाएं कोने से मापा जाता है.
widthNumberआकार की चौड़ाई.
heightNumberआकार की ऊंचाई.

रिटर्न

Shape — शामिल किया गया आकार.

अनुमति देना

इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या ज़्यादा स्कोप से अनुमति देने की ज़रूरत होती है:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

insertSheetsChart(sourceChart)

पेज पर Google Sheets चार्ट शामिल करता है.

चार्ट को पेज के सबसे ऊपर बाएं कोने में, डिफ़ॉल्ट साइज़ के साथ डाला जाता है.

शामिल किया गया चार्ट, सोर्स Google Sheets चार्ट से लिंक है, जो इसे अपडेट करने की अनुमति देता है. अन्य सहयोगी, सोर्स स्प्रेडशीट का लिंक देख सकते हैं.

var sheet = SpreadsheetApp.openById('spreadsheetId').getSheets()[0];
var chart = sheet.getCharts()[0];
// Insert the spreadsheet chart in the first slide.
var slide = SlidesApp.getActivePresentation().getSlides()[0];
slide.insertSheetsChart(chart);

पैरामीटर

नामTypeब्यौरा
sourceChartEmbeddedChartपेज में शामिल करने के लिए, स्प्रेडशीट में मौजूद चार्ट.

रिटर्न

SheetsChart — पेज में शामिल किया गया चार्ट.

अनुमति देना

इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या ज़्यादा स्कोप से अनुमति देने की ज़रूरत होती है:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

insertSheetsChart(sourceChart, left, top, width, height)

दी गई पोज़िशन और साइज़ के साथ, पेज पर Google Sheets चार्ट को शामिल करता है.

चार्ट के आसपेक्ट रेशियो को बनाए रखने के लिए, चार्ट को दिए गए साइज़ के हिसाब से स्केल और सेंटर में किया जाता है.

शामिल किया गया चार्ट, सोर्स Google Sheets चार्ट से लिंक है, जो इसे अपडेट करने की अनुमति देता है. अन्य सहयोगी, सोर्स स्प्रेडशीट का लिंक देख सकते हैं.

var sheet = SpreadsheetApp.openById('spreadsheetId').getSheets()[0];
var chart = sheet.getCharts()[0];
// Insert the spreadsheet chart in the first slide.
var slide = SlidesApp.getActivePresentation().getSlides()[0];
var position = {left: 0, top: 0};
var size = {width: 200, height: 200};

// Also available for Layout, Master, and Page.
slide.insertSheetsChart(
    chart,
    position.left,
    position.top,
    size.width,
    size.height);

पैरामीटर

नामTypeब्यौरा
sourceChartEmbeddedChartपेज में शामिल करने के लिए, स्प्रेडशीट में मौजूद चार्ट.
leftNumberबिंदुओं में चार्ट की हॉरिज़ॉन्टल पोज़िशन, जिसे पेज के सबसे ऊपर बाएं कोने से मापा जाता है.
topNumberबिंदुओं में चार्ट की वर्टिकल पोज़िशन, जिसे पेज के सबसे ऊपर बाएं कोने से मापा जाता है.
widthNumberपॉइंट में चार्ट की चौड़ाई.
heightNumberपॉइंट में चार्ट की ऊंचाई.

रिटर्न

SheetsChart — पेज में शामिल किया गया चार्ट.

अनुमति देना

इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या ज़्यादा स्कोप से अनुमति देने की ज़रूरत होती है:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

insertSheetsChart(sheetsChart)

दिए गए SheetsChart की कॉपी को पेज पर शामिल करता है.

इस पेज पर शामिल किए गए एलिमेंट की स्थिति, सोर्स एलिमेंट की स्थिति से तय होती है.

अगर दिया गया एलिमेंट कोई प्लेसहोल्डर है, जिसे मौजूदा प्रज़ेंटेशन में कॉपी किया जा रहा है, तो मास्टर या लेआउट पेजों से इनहेरिट की जाने वाली प्रॉपर्टी, शामिल किए गए एलिमेंट पर भी लागू होती हैं.

अगर दिया गया एलिमेंट एक प्लेसहोल्डर है, जिसे किसी दूसरे प्रज़ेंटेशन से कॉपी किया जा रहा है, तो मास्टर या लेआउट पेजों से इनहेरिट की जाने वाली प्रॉपर्टी, सोर्स प्रज़ेंटेशन से एलिमेंट पर कॉपी की जाती हैं.

// Copy a sheets chart between presentations.
var otherPresentationSlide = SlidesApp.openById('presentationId').getSlides()[0];
var currentPresentationSlide = SlidesApp.getActivePresentation().getSlides()[0];
var sheetsChart = otherPresentationSlide.getSheetsCharts[0];

// Also available for Layout, Master, and Page.
currentPresentationSlide.insertSheetsChart(sheetsChart);

पैरामीटर

नामTypeब्यौरा
sheetsChartSheetsChartशीट के चार्ट को कॉपी करके शामिल किया जाना है.

रिटर्न

SheetsChart — शामिल की गई शीट का चार्ट.

अनुमति देना

इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या ज़्यादा स्कोप से अनुमति देने की ज़रूरत होती है:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

insertSheetsChartAsImage(sourceChart)

Google Sheets चार्ट को पेज पर Image के तौर पर शामिल करता है.

चार्ट की इमेज, पेज के सबसे ऊपर बाएं कोने में डिफ़ॉल्ट साइज़ का इस्तेमाल करके डाली जाती है.

चार्ट की शामिल की गई इमेज, सोर्स Google Sheets चार्ट के साथ लिंक नहीं है.

var sheet = SpreadsheetApp.openById('spreadsheetId').getSheets()[0];
var chart = sheet.getCharts()[0];
// Insert the spreadsheet chart in the first slide.
var slide = SlidesApp.getActivePresentation().getSlides()[0];
slide.insertSheetsChartAsImage(chart); // Also available for Layout, Master, and Page.

पैरामीटर

नामTypeब्यौरा
sourceChartEmbeddedChartपेज में शामिल करने के लिए, स्प्रेडशीट में मौजूद चार्ट.

रिटर्न

Image — पेज में चार्ट की शामिल की गई इमेज.

अनुमति देना

इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या ज़्यादा स्कोप से अनुमति देने की ज़रूरत होती है:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

insertSheetsChartAsImage(sourceChart, left, top, width, height)

दी गई पोज़िशन और साइज़ के साथ, पेज पर Image के तौर पर Google Sheets चार्ट को शामिल करता है.

चार्ट इमेज के आसपेक्ट रेशियो को बनाए रखने के लिए, इमेज को दिए गए साइज़ के हिसाब से स्केल और सेंटर में रखा जाता है.

चार्ट की शामिल की गई इमेज, सोर्स Google Sheets चार्ट के साथ लिंक नहीं है.

var sheet = SpreadsheetApp.openById('spreadsheetId').getSheets()[0];
var chart = sheet.getCharts()[0];
// Insert the spreadsheet chart in the first slide.
var slide = SlidesApp.getActivePresentation().getSlides()[0];
var position = {left: 0, top: 0};
var size = {width: 200, height: 200};

// Also available for Layout, Master, and Page.
slide.insertSheetsChartAsImage(
    chart,
    position.left,
    position.right,
    size.width,
    size.height);

पैरामीटर

नामTypeब्यौरा
sourceChartEmbeddedChartपेज में शामिल करने के लिए, स्प्रेडशीट में मौजूद चार्ट.
leftNumberबिंदुओं में चार्ट की हॉरिज़ॉन्टल पोज़िशन, जिसे पेज के सबसे ऊपर बाएं कोने से मापा जाता है.
topNumberबिंदुओं में चार्ट की वर्टिकल पोज़िशन, जिसे पेज के सबसे ऊपर बाएं कोने से मापा जाता है.
widthNumberपॉइंट में चार्ट की चौड़ाई.
heightNumberपॉइंट में चार्ट की ऊंचाई.

रिटर्न

Image — पेज में चार्ट की शामिल की गई इमेज.

अनुमति देना

इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या ज़्यादा स्कोप से अनुमति देने की ज़रूरत होती है:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

insertTable(numRows, numColumns)

पेज पर टेबल शामिल करता है.

टेबल, डिफ़ॉल्ट साइज़ वाले पेज के बीच में होती है. इसमें लाइन और कॉलम समान रूप से डिस्ट्रिब्यूट होते हैं.

पैरामीटर

नामTypeब्यौरा
numRowsIntegerटेबल में पंक्तियों की संख्या.
numColumnsIntegerटेबल में कॉलम की संख्या.

रिटर्न

Table — शामिल की गई टेबल.

अनुमति देना

इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या ज़्यादा स्कोप से अनुमति देने की ज़रूरत होती है:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

insertTable(numRows, numColumns, left, top, width, height)

दी गई जगह और साइज़ की जानकारी के साथ, पेज पर एक टेबल शामिल करता है.

बनाई गई टेबल में, लाइनें और कॉलम समान रूप से बांटे गए हैं.

पैरामीटर

नामTypeब्यौरा
numRowsIntegerटेबल में पंक्तियों की संख्या.
numColumnsIntegerटेबल में कॉलम की संख्या.
leftNumberटेबल की हॉरिज़ॉन्टल पोज़िशन को पेज के ऊपरी बाएं कोने से मापा जाता है.
topNumberटेबल की वर्टिकल पोज़िशन, जिसे पेज के ऊपरी बाएं कोने से मापा जाता है.
widthNumberटेबल की चौड़ाई.
heightNumberटेबल की कम से कम ऊंचाई. रेंडर की गई टेबल की असल ऊंचाई, टेक्स्ट के फ़ॉन्ट साइज़ जैसी चीज़ों पर निर्भर करती है.

रिटर्न

Table — शामिल की गई टेबल.

अनुमति देना

इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या ज़्यादा स्कोप से अनुमति देने की ज़रूरत होती है:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

insertTable(table)

दिए गए Table की कॉपी को पेज पर शामिल करता है.

इस पेज पर शामिल किए गए एलिमेंट की स्थिति, सोर्स एलिमेंट की स्थिति से तय होती है.

अगर दिया गया एलिमेंट कोई प्लेसहोल्डर है, जिसे मौजूदा प्रज़ेंटेशन में कॉपी किया जा रहा है, तो मास्टर या लेआउट पेजों से इनहेरिट की जाने वाली प्रॉपर्टी, शामिल किए गए एलिमेंट पर भी लागू होती हैं.

अगर दिया गया एलिमेंट एक प्लेसहोल्डर है, जिसे किसी दूसरे प्रज़ेंटेशन से कॉपी किया जा रहा है, तो मास्टर या लेआउट पेजों से इनहेरिट की जाने वाली प्रॉपर्टी, सोर्स प्रज़ेंटेशन से एलिमेंट पर कॉपी की जाती हैं.

// Copy a table between presentations.
var otherPresentationSlide = SlidesApp.openById('presentationId').getSlides()[0];
var currentPresentationSlide = SlidesApp.getActivePresentation().getSlides()[0];
var table = otherPresentationSlide.getTables[0];
currentPresentationSlide.insertTable(table); // Also available for Layout, Master, and Page.

पैरामीटर

नामTypeब्यौरा
tableTableजिस टेबल को कॉपी करके शामिल किया जाना है.

रिटर्न

Table — शामिल की गई टेबल.

अनुमति देना

इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या ज़्यादा स्कोप से अनुमति देने की ज़रूरत होती है:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

insertTextBox(text)

पेज पर दी गई स्ट्रिंग वाले टेक्स्ट बॉक्स Shape को डालता है.

टेक्स्ट बॉक्स का आकार, पेज के सबसे ऊपर बाएं कोने पर डिफ़ॉल्ट साइज़ से डाला जाता है.

// Insert text box with "Hello" on the first slide of presentation.
var slide = SlidesApp.getActivePresentation().getSlides()[0];
slide.insertTextBox('Hello'); // Also available for Layout, Master, and Page.

पैरामीटर

नामTypeब्यौरा
textStringवह स्ट्रिंग जिसमें टेक्स्ट बॉक्स के आकार में शामिल होना चाहिए.

रिटर्न

Shape — शामिल किए गए टेक्स्ट बॉक्स का आकार.

अनुमति देना

इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या ज़्यादा स्कोप से अनुमति देने की ज़रूरत होती है:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

insertTextBox(text, left, top, width, height)

पेज पर दी गई स्ट्रिंग वाले टेक्स्ट बॉक्स Shape को डालता है.

// Insert text box with "Hello" on the first slide of presentation. This text box is a square
// with a length of 10 points on each side.
var slide = SlidesApp.getActivePresentation().getSlides()[0];
slide.insertTextBox('Hello', 0, 0, 10, 10); // Also available for Layout, Master, and Page.

पैरामीटर

नामTypeब्यौरा
textStringवह स्ट्रिंग जिसमें टेक्स्ट बॉक्स के आकार में शामिल होना चाहिए.
leftNumberटेक्स्ट बॉक्स के आकार की हॉरिज़ॉन्टल पोज़िशन, जिसे पेज के सबसे ऊपर बाएं कोने से मापा जाता है.
topNumberटेक्स्ट बॉक्स के आकार की वर्टिकल पोज़िशन, जिसे पेज के सबसे ऊपर बाएं कोने से मापा जाता है.
widthNumberटेक्स्ट बॉक्स के आकार की चौड़ाई.
heightNumberटेक्स्ट बॉक्स के आकार की ऊंचाई.

रिटर्न

Shape — शामिल किए गए टेक्स्ट बॉक्स का आकार.

अनुमति देना

इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या ज़्यादा स्कोप से अनुमति देने की ज़रूरत होती है:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

insertVideo(videoUrl)

पेज के सबसे ऊपर बाएं कोने में, डिफ़ॉल्ट साइज़ के साथ वीडियो डालता है.

फ़िलहाल, सिर्फ़ YouTube वीडियो अपलोड किए जा सकते हैं.

पैरामीटर

नामTypeब्यौरा
videoUrlStringउस वीडियो का यूआरएल डालें जिसे शामिल करना है.

रिटर्न

Video — डाला गया वीडियो.

अनुमति देना

इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या ज़्यादा स्कोप से अनुमति देने की ज़रूरत होती है:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

insertVideo(videoUrl, left, top, width, height)

दी गई पोज़िशन और साइज़ के साथ पेज पर वीडियो डालता है.

फ़िलहाल, सिर्फ़ YouTube वीडियो अपलोड किए जा सकते हैं.

पैरामीटर

नामTypeब्यौरा
videoUrlStringउस वीडियो का यूआरएल डालें जिसे शामिल करना है.
leftNumberपॉइंट में वीडियो की हॉरिज़ॉन्टल पोज़िशन को पेज के सबसे ऊपर बाएं कोने से मापा जाता है.
topNumberवीडियो की वर्टिकल पोज़िशन को पॉइंट में मापा जाता है. इसे पेज के सबसे ऊपर बाएं कोने से मापा जाता है.
widthNumberपॉइंट में वीडियो की चौड़ाई.
heightNumberपॉइंट में वीडियो की ऊंचाई.

रिटर्न

Video — डाला गया वीडियो.

अनुमति देना

इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या ज़्यादा स्कोप से अनुमति देने की ज़रूरत होती है:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

insertVideo(video)

दिए गए Video की कॉपी को पेज पर शामिल करता है.

इस पेज पर शामिल किए गए एलिमेंट की स्थिति, सोर्स एलिमेंट की स्थिति से तय होती है.

अगर दिया गया एलिमेंट कोई प्लेसहोल्डर है, जिसे मौजूदा प्रज़ेंटेशन में कॉपी किया जा रहा है, तो मास्टर या लेआउट पेजों से इनहेरिट की जाने वाली प्रॉपर्टी, शामिल किए गए एलिमेंट पर भी लागू होती हैं.

अगर दिया गया एलिमेंट एक प्लेसहोल्डर है, जिसे किसी दूसरे प्रज़ेंटेशन से कॉपी किया जा रहा है, तो मास्टर या लेआउट पेजों से इनहेरिट की जाने वाली प्रॉपर्टी, सोर्स प्रज़ेंटेशन से एलिमेंट पर कॉपी की जाती हैं.

// Copy a video between presentations.
var otherPresentationSlide = SlidesApp.openById('presentationId').getSlides()[0];
var currentPresentationSlide = SlidesApp.getActivePresentation().getSlides()[0];
var video = otherPresentationSlide.getVideos[0];
currentPresentationSlide.insertVideo(video); // Also available for Layout, Master, and Page.

पैरामीटर

नामTypeब्यौरा
videoVideoवीडियो कॉपी करके शामिल किया जाना है.

रिटर्न

Video — डाला गया वीडियो.

अनुमति देना

इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या ज़्यादा स्कोप से अनुमति देने की ज़रूरत होती है:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

insertWordArt(wordArt)

दिए गए WordArt की कॉपी को पेज पर शामिल करता है.

इस पेज पर शामिल किए गए एलिमेंट की स्थिति, सोर्स एलिमेंट की स्थिति से तय होती है.

अगर दिया गया एलिमेंट कोई प्लेसहोल्डर है, जिसे मौजूदा प्रज़ेंटेशन में कॉपी किया जा रहा है, तो मास्टर या लेआउट पेजों से इनहेरिट की जाने वाली प्रॉपर्टी, शामिल किए गए एलिमेंट पर भी लागू होती हैं.

अगर दिया गया एलिमेंट एक प्लेसहोल्डर है, जिसे किसी दूसरे प्रज़ेंटेशन से कॉपी किया जा रहा है, तो मास्टर या लेआउट पेजों से इनहेरिट की जाने वाली प्रॉपर्टी, सोर्स प्रज़ेंटेशन से एलिमेंट पर कॉपी की जाती हैं.

// Copy a word art between presentations.
var otherPresentationSlide = SlidesApp.openById('presentationId').getSlides()[0];
var currentPresentationSlide = SlidesApp.getActivePresentation().getSlides()[0];
var wordArt = otherPresentationSlide.getWordArts[0];

// Also available for Layout, Master, and Page.
currentPresentationSlide.insertWordArt(wordArt);

पैरामीटर

नामTypeब्यौरा
wordArtWordArtकॉपी करके शामिल किया जाने वाला ग्रुप.

रिटर्न

WordArt — डाला गया वर्ड आर्ट.

अनुमति देना

इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या ज़्यादा स्कोप से अनुमति देने की ज़रूरत होती है:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

remove()

पेज को हटा देता है.

अनुमति देना

इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या ज़्यादा स्कोप से अनुमति देने की ज़रूरत होती है:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

replaceAllText(findText, replaceText)

टेक्स्ट ढूंढने वाले टेक्स्ट के सभी इंस्टेंस को, टेक्स्ट बदलें वाले टेक्स्ट से बदलता है. खोज केस-इनसेंसिटिव होती है.

पैरामीटर

नामTypeब्यौरा
findTextStringढूंढने के लिए टेक्स्ट.
replaceTextStringमेल खाने वाले टेक्स्ट को बदलने के लिए टेक्स्ट.

रिटर्न

Integer — गड़बड़ियों की संख्या में बदलाव हुआ

अनुमति देना

इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या ज़्यादा स्कोप से अनुमति देने की ज़रूरत होती है:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

replaceAllText(findText, replaceText, matchCase)

टेक्स्ट ढूंढने वाले टेक्स्ट के सभी इंस्टेंस को, टेक्स्ट बदलें वाले टेक्स्ट से बदलता है.

पैरामीटर

नामTypeब्यौरा
findTextStringढूंढने के लिए टेक्स्ट.
replaceTextStringमेल खाने वाले टेक्स्ट को बदलने के लिए टेक्स्ट.
matchCaseBooleantrue होने पर, खोज को केस-सेंसिटिव (बड़े और छोटे अक्षरों में अंतर) किया जाता है. अगर false का इस्तेमाल किया जाता है, तो खोज के नतीजे केस-इनसेंसिटिव होते हैं.

रिटर्न

Integer — गड़बड़ियों की संख्या में बदलाव हुआ

अनुमति देना

इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या ज़्यादा स्कोप से अनुमति देने की ज़रूरत होती है:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

selectAsCurrentPage()

यह चालू प्रज़ेंटेशन में Page को current page selection के तौर पर चुनता है और पहले चुने गए सभी विकल्प हटा देता है.

स्क्रिप्ट सिर्फ़ उस उपयोगकर्ता के चुने हुए को ऐक्सेस कर सकती है जो स्क्रिप्ट चला रहा है. वह सिर्फ़ तब ऐक्सेस कर सकता है, जब स्क्रिप्ट प्रज़ेंटेशन के लिए बंधी हो.

// Select the first slide as the current page selection and replace any previous selection.
var slide = SlidesApp.getActivePresentation().getSlides()[0];
slide.selectAsCurrentPage(); // Also available for Layout, Master, and Page.

अनुमति देना

इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या ज़्यादा स्कोप से अनुमति देने की ज़रूरत होती है:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations