- منبع: سند
- تب
- ویژگیهای برگه
- برگه سند
- بدن
- عنصر ساختاری
- پاراگراف
- عنصر پاراگراف
- متنران
- سبک متن
- رنگ اختیاری
- رنگ
- رنگ RGB
- ابعاد
- واحد
- خانواده فونت وزندار
- افست پایه
- پیوند
- بوکمارکلینک
- لینک عنوان
- سبک متن پیشنهادی
- پیشنهاد سبک متن
- متن خودکار
- نوع
- صفحهشکن
- ستونشکن
- پاورقی
- قانون افقی
- معادله
- عنصر شیء درونخطی
- شخص
- ویژگیهای شخص
- ریچلینک
- RichLinkProperties
- سبک پاراگراف
- نامگذاریشدهسبکنوع
- ترازبندی
- جهت محتوا
- حالت فاصلهگذاری
- حاشیه پاراگراف
- استایل دَش
- تباستاپ
- ترازبندی TabStop
- سایه زنی
- سبک پاراگراف پیشنهادی
- حالت پاراگرافپیشنهادسبک
- حالت پیشنهادی سایه
- گلوله
- گلوله پیشنهادی
- BulletSuggestionState
- ارجاعات شیء
- بخشبندی
- سبک بخش
- ویژگیهای بخش-ستون
- سبک جداکننده ستون
- نوع بخش
- میز
- ردیف جدول
- سلول جدولی
- سبک سلول جدول
- حاشیه سلول جدول
- ترازبندی محتوا
- سبک پیشنهادی سلول جدول
- جدولسبکسلولپیشنهادوضعیت
- سبک ردیف جدول
- سبک پیشنهادی سطر جدول
- جدولسبکسبکپیشنهادوضعیت
- سبک جدول
- ویژگیهای ستون جدول
- عرضنوع
- فهرست مطالب
- سربرگ
- پاورقی
- پاورقی
- سبک سند
- پیشینه
- اندازه
- سبک سند پیشنهادی
- سبک سندپیشنهادوضعیت
- پیشنهاد پسزمینهوضعیت
- اندازهپیشنهادوضعیت
- سبکهای نامگذاریشده
- سبک نامگذاری شده
- سبکهای پیشنهادی
- NamedStylesSuggestionState
- NamedStyleSuggestionState
- فهرست
- لیست ویژگیها
- سطح تودرتو
- ترازبندی گلوله
- گلیف تایپ
- ویژگیهای لیست پیشنهادی
- لیست ویژگیهاپیشنهاداتوضعیت
- وضعیت پیشنهادی در سطح تودرتو
- محدودههای نامگذاریشده
- محدوده نامگذاری شده
- محدوده
- شیء درونخطی
- ویژگیهای شیء درونخطی
- شیء جاسازیشده
- ویژگیهای ترسیم جاسازیشده
- ویژگیهای تصویر
- خواص محصول
- مرز شیء جاسازیشده
- املاک و مستغلات
- مرجع محتوای پیوندی
- SheetsChartReference
- ویژگیهای پیشنهادی شیء درونخطی
- ویژگی های شیء درون خطیپیشنهادحالت
- EmbeddedObjectSuggestionState
- ویژگیهای ترسیم جاسازیشده، حالت پیشنهاد
- ویژگیهای تصویر، پیشنهاد، وضعیت
- ویژگیهای محصولپیشنهادوضعیت
- EmbeddedObjectBorderSuggestionState
- LinkedContentReferenceSuggestionState
- SheetsChartReferenceSuggestionState
- شیء موقعیتی
- ویژگیهای شیء موقعیتی
- موقعیتیابی شیء موقعیتیابی
- طرحبندی شیء موقعیتی
- ویژگیهای شیء موقعیتیابیشدهی پیشنهادی
- ویژگی های شیء موقعیتیپیشنهادحالت
- شیء موقعیتیابیشدهپیشنهادموقعیتیابیحالت
- پیشنهاداتحالت نمایش
- روشها
منبع: سند
یک سند گوگل داکز.
نمایش JSON |
---|
{ "documentId": string, "title": string, "tabs": [ { object ( |
فیلدها | |
---|---|
documentId | فقط خروجی. شناسه سند. |
title | عنوان سند. |
tabs[] | تبهایی که بخشی از یک سند هستند. تبها میتوانند شامل تبهای فرزند باشند، تبی که درون تب دیگری قرار گرفته است. تبهای فرزند توسط فیلد |
revisionId | فقط خروجی. شناسهی ویرایش سند. میتواند در درخواستهای بهروزرسانی برای مشخص کردن اینکه بهروزرسانیها روی کدام ویرایش سند اعمال شوند و اگر سند از آن ویرایش ویرایش شده باشد، درخواست چگونه باید رفتار کند، استفاده شود. فقط در صورتی پر میشود که کاربر دسترسی ویرایش به سند را داشته باشد. شناسهی بازبینی یک عدد ترتیبی نیست، بلکه یک رشتهی مبهم است. قالب شناسهی بازبینی ممکن است با گذشت زمان تغییر کند. یک شناسهی بازبینیِ برگردانده شده فقط تا ۲۴ ساعت پس از برگردانده شدن معتبر است و نمیتوان آن را بین کاربران به اشتراک گذاشت. اگر شناسهی بازبینی بین فراخوانیها بدون تغییر باشد، سند تغییر نکرده است. برعکس، یک شناسهی تغییر یافته (برای همان سند و کاربر) معمولاً به این معنی است که سند بهروزرسانی شده است. با این حال، یک شناسهی تغییر یافته همچنین میتواند به دلیل عوامل داخلی مانند تغییرات قالب شناسه باشد. |
suggestionsViewMode | فقط خروجی. حالت نمایش پیشنهادات روی سند اعمال میشود. توجه: هنگام ویرایش یک سند، تغییرات باید بر اساس سندی با |
body | فقط خروجی. بدنه اصلی سند. فیلد قدیمی: در عوض، از |
headers | فقط خروجی. سرصفحههای موجود در سند، که با شناسه سرصفحه مشخص شدهاند. فیلد قدیمی: در عوض، از |
footers | فقط خروجی. پاورقیهای موجود در سند، که با شناسه پاورقی مشخص شدهاند. فیلد قدیمی: در عوض، از |
footnotes | فقط خروجی. پاورقیهای موجود در سند، که با شناسه پاورقی مشخص شدهاند. فیلد قدیمی: در عوض، از |
documentStyle | فقط خروجی. سبک سند. فیلد قدیمی: در عوض، از |
suggestedDocumentStyleChanges | فقط خروجی. تغییرات پیشنهادی در سبک سند، که با شناسه پیشنهاد مشخص شدهاند. فیلد قدیمی: در عوض، از |
namedStyles | فقط خروجی. سبکهای نامگذاری شدهی سند. فیلد قدیمی: در عوض، از |
suggestedNamedStylesChanges | فقط خروجی. تغییرات پیشنهادی در سبکهای نامگذاری شده سند، که با شناسه پیشنهاد مشخص شدهاند. فیلد قدیمی: در عوض، از |
lists | فقط خروجی. لیستهای موجود در سند، که با شناسه لیست کلیدگذاری شدهاند. فیلد قدیمی: در عوض، از |
namedRanges | فقط خروجی. محدودههای نامگذاری شده در سند، که با نام کلیدگذاری شدهاند. فیلد قدیمی: در عوض، از |
inlineObjects | فقط خروجی. اشیاء درونخطی در سند، که با شناسه شیء کلیدگذاری شدهاند. فیلد قدیمی: در عوض، از |
positionedObjects | فقط خروجی. اشیاء موقعیتیابیشده در سند، که با شناسه شیء کلیدگذاری شدهاند. فیلد قدیمی: در عوض، از |
تب
یک برگه در یک سند.
نمایش JSON |
---|
{ "tabProperties": { object ( |
فیلدها | |
---|---|
tabProperties | ویژگیهای برگه، مانند شناسه و عنوان. |
childTabs[] | تبهای فرزند درون این تب قرار گرفتهاند. |
content فیلد Union. محتوای تب. content میتواند فقط یکی از موارد زیر باشد: | |
documentTab | یک برگه با محتوای سند، مانند متن و تصاویر. |
ویژگیهای برگه
ویژگیهای یک برگه.
نمایش JSON |
---|
{ "tabId": string, "title": string, "parentTabId": string, "index": integer, "nestingLevel": integer } |
فیلدها | |
---|---|
tabId | فقط خروجی. شناسه برگه. این فیلد قابل تغییر نیست. |
title | نام تب که توسط کاربر قابل مشاهده است. |
parentTabId | اختیاری. شناسهی برگهی والد. وقتی برگهی فعلی یک برگهی سطح ریشه است، یعنی هیچ والد ندارد، خالی است. |
index | اندیس مبتنی بر صفرِ تبِ درون والد. |
nestingLevel | فقط خروجی. عمق تب درون سند. تبهای سطح ریشه از ۰ شروع میشوند. |
برگه سند
یک برگه با محتوای سند.
نمایش JSON |
---|
{ "body": { object ( |
فیلدها | |
---|---|
body | بدنه اصلی تب سند. |
headers | سربرگهای موجود در برگه سند، که با شناسه سربرگ تنظیم شدهاند. |
footers | پاورقیهای موجود در برگه سند، که با شناسه پاورقی مشخص شدهاند. |
footnotes | پاورقیها در برگه سند، که با شناسه پاورقی مشخص شدهاند. |
documentStyle | سبک تب سند. |
suggestedDocumentStyleChanges | تغییرات پیشنهادی برای سبک تب سند، که با شناسه پیشنهاد مشخص شدهاند. |
namedStyles | سبکهای نامگذاریشدهی تب سند. |
suggestedNamedStylesChanges | تغییرات پیشنهادی برای سبکهای نامگذاریشدهی برگهی سند، که با شناسهی پیشنهاد مشخص شدهاند. |
lists | فهرستهای موجود در برگه سند، که با شناسه فهرست تنظیم شدهاند. |
namedRanges | محدودههای نامگذاری شده در برگه سند، که بر اساس نام تنظیم شدهاند. |
inlineObjects | اشیاء درونخطی در برگه سند، که با شناسه شیء مشخص شدهاند. |
positionedObjects | اشیاء موقعیتیابیشده در برگه سند، که با شناسه شیء تنظیم شدهاند. |
بدن
بدنه سند.
بدنه معمولاً شامل کل محتوای سند به جز headers
، footers
و footnotes
است.
نمایش JSON |
---|
{
"content": [
{
object ( |
فیلدها | |
---|---|
content[] | محتویات بدن. شاخصهای محتوای بدنه از صفر شروع میشوند. |
عنصر ساختاری
یک عنصر ساختاری (StructuralElement) محتوایی را توصیف میکند که به سند ساختار میدهد.
نمایش JSON |
---|
{ "startIndex": integer, "endIndex": integer, // Union field |
فیلدها | |
---|---|
startIndex | اندیس شروع مبتنی بر صفر این عنصر ساختاری، در واحدهای کد UTF-16. |
endIndex | اندیس پایانی مبتنی بر صفر این عنصر ساختاری، منحصراً در واحدهای کد UTF-16. |
content فیلد Union. محتوای عنصر ساختاری. content میتواند فقط یکی از موارد زیر باشد: | |
paragraph | یک عنصر ساختاری از نوع پاراگراف. |
sectionBreak | نوعی المان سازهای از نوع شکست مقطعی. |
table | نوعی عنصر سازهای از نوع میز. |
tableOfContents | یک عنصر ساختاری از نوع فهرست مطالب. |
پاراگراف
یک StructuralElement
که نمایانگر یک پاراگراف است. یک پاراگراف، محدودهای از محتوا است که با یک کاراکتر خط جدید (newline) خاتمه مییابد.
نمایش JSON |
---|
{ "elements": [ { object ( |
فیلدها | |
---|---|
elements[] | محتوای پاراگراف، که به اجزای تشکیلدهندهاش تقسیم شده است. |
paragraphStyle | سبک این پاراگراف. |
suggestedParagraphStyleChanges | سبک پاراگراف پیشنهادی به این پاراگراف تغییر میکند، که با شناسه پیشنهاد کلیدگذاری شده است. |
bullet | علامت اختصاری برای این پاراگراف. اگر وجود نداشته باشد، پاراگراف به فهرست تعلق ندارد. |
suggestedBulletChanges | تغییرات پیشنهادی برای بخش پایانی این پاراگراف. |
positionedObjectIds[] | شناسههای اشیاء موقعیتیابیشده که به این پاراگراف متصل شدهاند. |
suggestedPositionedObjectIds | شناسههای اشیاء موقعیتیابیشده که پیشنهاد شده به این پاراگراف پیوست شوند، با شناسه پیشنهاد کلیدگذاری شدهاند. |
عنصر پاراگراف
یک ParagraphElement محتوای درون یک Paragraph
را توصیف میکند.
نمایش JSON |
---|
{ "startIndex": integer, "endIndex": integer, // Union field |
فیلدها | |
---|---|
startIndex | اندیس شروع مبتنی بر صفر این عنصر پاراگراف، در واحدهای کد UTF-16. |
endIndex | اندیس انتهاییِ صفر-پایهی این عنصر پاراگراف، منحصراً در واحدهای کد UTF-16. |
content فیلد Union. محتوای عنصر پاراگراف. content میتواند فقط یکی از موارد زیر باشد: | |
textRun | یک عنصر پاراگراف با اجرای متن. |
autoText | یک عنصر پاراگراف متن خودکار. |
pageBreak | یک عنصر پاراگراف برای جدا کردن صفحه. |
columnBreak | یک عنصر پاراگراف برای شکستن ستون. |
footnoteReference | یک عنصر پاراگراف مرجع پاورقی. |
horizontalRule | یک عنصر پاراگراف با قاعده افقی. |
equation | یک عنصر پاراگراف معادله. |
inlineObjectElement | یک عنصر پاراگراف شیء درونخطی. |
person | یک عنصر پاراگراف که به یک شخص یا آدرس ایمیل لینک میدهد. |
richLink | یک عنصر پاراگراف که به یک منبع گوگل (مانند یک فایل در گوگل درایو، یک ویدیوی یوتیوب یا یک رویداد تقویم) لینک میدهد. |
متنران
یک ParagraphElement
که نشاندهندهی مجموعهای از متن است که همگی سبک یکسانی دارند.
نمایش JSON |
---|
{ "content": string, "suggestedInsertionIds": [ string ], "suggestedDeletionIds": [ string ], "textStyle": { object ( |
فیلدها | |
---|---|
content | متن این اجرا. هر عنصر غیرمتنی در اجرا با کاراکتر یونیکد U+E907 جایگزین میشود. |
suggestedInsertionIds[] | شناسههای درج پیشنهادی. اگر یک |
suggestedDeletionIds[] | شناسههای حذف پیشنهادی. اگر خالی باشد، هیچ حذف پیشنهادی برای این محتوا وجود ندارد. |
textStyle | سبک متن این اجرا. |
suggestedTextStyleChanges | سبک متن پیشنهادی با استفاده از شناسه پیشنهاد، در این اجرا تغییر میکند. |
سبک متن
نشان دهنده سبکی است که می تواند روی متن اعمال شود.
سبکهای متنی ارثبریشده در این پیام به صورت فیلدهای تنظیمنشده نمایش داده میشوند. والد یک سبک متنی به محل تعریف آن سبک متنی بستگی دارد:
- TextStyle متن در یک
Paragraph
ازnamed style type
متناظر پاراگراف ارثبری میکند. - TextStyle روی یک
named style
ازnormal text
با نام style ارث بری میکند. - TextStyle
normal text
با نام style از سبک متن پیشفرض در ویرایشگر Docs ارثبری میکند. - TextStyle روی یک عنصر
Paragraph
که در یک جدول قرار دارد، ممکن است سبک متن خود را از سبک جدول به ارث ببرد.
اگر سبک متن از والد خود ارثبری نکند، فیلدهای غیرفعال، سبک را به مقداری مطابق با پیشفرضهای موجود در ویرایشگر اسناد برمیگردانند.
نمایش JSON |
---|
{ "bold": boolean, "italic": boolean, "underline": boolean, "strikethrough": boolean, "smallCaps": boolean, "backgroundColor": { object ( |
فیلدها | |
---|---|
bold | اینکه متن به صورت پررنگ (بولد) نمایش داده شود یا خیر. |
italic | اینکه متن به صورت مورب نوشته شود یا نه. |
underline | اینکه آیا متن زیرخطدار است یا خیر. |
strikethrough | اینکه آیا متن خط خورده است یا خیر. |
smallCaps | اینکه متن با حروف بزرگ کوچک نوشته شود یا نه. |
backgroundColor | رنگ پسزمینه متن. در صورت تنظیم، بسته به فیلد |
foregroundColor | رنگ پیشزمینه متن. در صورت تنظیم، بسته به فیلد |
fontSize | اندازه فونت متن. |
weightedFontFamily | خانواده فونت و وزن رندر شده متن. اگر یک درخواست بهروزرسانی، مقادیری را برای هر دو اگر اگر |
baselineOffset | انحراف عمودی متن از موقعیت عادی آن. متن با آفستهای خط پایه |
link | مقصد هایپرلینک متن. اگر تنظیم نشده باشد، هیچ پیوندی وجود ندارد. پیوندها از متن والد به ارث نمیرسند. تغییر لینک در یک درخواست بهروزرسانی باعث تغییرات دیگری در سبک متن محدوده میشود:
|
رنگ اختیاری
رنگی که میتواند کاملاً مات یا کاملاً شفاف باشد.
نمایش JSON |
---|
{
"color": {
object ( |
فیلدها | |
---|---|
color | اگر تنظیم شود، به عنوان رنگ مات استفاده میشود. اگر تنظیم نشود، به عنوان رنگ شفاف استفاده میشود. |
رنگ
یک رنگ ثابت.
نمایش JSON |
---|
{
"rgbColor": {
object ( |
فیلدها | |
---|---|
rgbColor | مقدار رنگ RGB. |
رنگ RGB
یک رنگ RGB.
نمایش JSON |
---|
{ "red": number, "green": number, "blue": number } |
فیلدها | |
---|---|
red | جزء قرمز رنگ، از ۰.۰ تا ۱.۰. |
green | جزء سبز رنگ، از ۰.۰ تا ۱.۰. |
blue | جزء آبی رنگ، از ۰.۰ تا ۱.۰. |
ابعاد
بزرگی در یک جهت واحد در واحدهای مشخص شده.
نمایش JSON |
---|
{
"magnitude": number,
"unit": enum ( |
فیلدها | |
---|---|
magnitude | بزرگی. |
unit | واحدهای اندازه گیری بزرگی |
واحد
واحدهای اندازهگیری.
انومها | |
---|---|
UNIT_UNSPECIFIED | واحدها مشخص نیستند. |
PT | یک نقطه، ۱/۷۲ اینچ. |
خانواده فونت وزندار
نشان دهنده یک خانواده فونت و وزن متن است.
نمایش JSON |
---|
{ "fontFamily": string, "weight": integer } |
فیلدها | |
---|---|
fontFamily | خانواده فونت متن. خانواده فونت میتواند هر فونتی از منوی فونت در Docs یا از فونتهای گوگل باشد. اگر نام فونت شناسایی نشود، متن با |
weight | وزن فونت. این فیلد میتواند هر مقداری که مضربی از مقدار پیشفرض وزن فونت تنها یکی از اجزای وزن فونت رندر شده را تشکیل میدهد. ترکیبی از
|
افست پایه
روشهایی که متن میتواند به صورت عمودی از موقعیت عادی خود فاصله بگیرد.
انومها | |
---|---|
BASELINE_OFFSET_UNSPECIFIED | انحراف خط پایه متن از والد به ارث میرسد. |
NONE | متن به صورت عمودی جابجا نشده است. |
SUPERSCRIPT | متن به صورت عمودی به سمت بالا (بالانویس) قرار گرفته است. |
SUBSCRIPT | متن به صورت عمودی به سمت پایین (زیرنویس) جابجا میشود. |
پیوند
ارجاع به بخش دیگری از یک سند یا یک منبع URL خارجی.
نمایش JSON |
---|
{ // Union field |
فیلدها | |
---|---|
فیلد Union destination . لینک destination. destination فقط میتواند یکی از موارد زیر باشد: | |
url | یک آدرس اینترنتی خارجی. |
tabId | شناسهی یک برگه در این سند. |
bookmark | یک نشانک در این سند. در اسنادی که شامل یک تب واحد هستند، لینکهای به بوکمارکهای درون آن تب واحد، در صورتی که پارامتر |
heading | یک عنوان در این سند. در اسنادی که شامل یک تب واحد هستند، لینکهای مربوط به سرتیترهای درون آن تب واحد، در صورتی که پارامتر |
bookmarkId | شناسهی یک نشانهگذاری (بوکمارک) در این سند. فیلد قدیمی: در عوض، اگر این فیلد در یک درخواست نوشتن استفاده شود، نشانک از شناسه برگه مشخص شده در درخواست در نظر گرفته میشود. اگر شناسه برگه در درخواست مشخص نشده باشد، از اولین برگه در سند در نظر گرفته میشود. |
headingId | شناسهی یک عنوان در این سند. فیلد قدیمی: در عوض، اگر این فیلد در یک درخواست نوشتن استفاده شود، عنوان از شناسه برگه مشخص شده در درخواست در نظر گرفته میشود. اگر شناسه برگه در درخواست مشخص نشده باشد، از اولین برگه در سند در نظر گرفته میشود. |
بوکمارکلینک
ارجاع به یک نشانک در این سند.
نمایش JSON |
---|
{ "id": string, "tabId": string } |
فیلدها | |
---|---|
id | شناسهی یک نشانهگذاری (بوکمارک) در این سند. |
tabId | شناسهی برگهای که این نشانک در آن قرار دارد. |
لینک عنوان
ارجاع به یک سرفصل در این سند.
نمایش JSON |
---|
{ "id": string, "tabId": string } |
فیلدها | |
---|---|
id | شناسهی یک عنوان در این سند. |
tabId | شناسهی برگهای که این عنوان را در خود جای داده است. |
سبک متن پیشنهادی
یک تغییر پیشنهادی برای TextStyle
.
نمایش JSON |
---|
{ "textStyle": { object ( |
فیلدها | |
---|---|
textStyle | یک |
textStyleSuggestionState | یک ماسک که نشان میدهد کدام یک از فیلدهای |
پیشنهاد سبک متن
یک ماسک که نشان میدهد کدام یک از فیلدهای TextStyle
پایه در این پیشنهاد تغییر کردهاند. برای هر فیلدی که روی true تنظیم شده باشد، یک مقدار پیشنهادی جدید وجود دارد.
نمایش JSON |
---|
{ "boldSuggested": boolean, "italicSuggested": boolean, "underlineSuggested": boolean, "strikethroughSuggested": boolean, "smallCapsSuggested": boolean, "backgroundColorSuggested": boolean, "foregroundColorSuggested": boolean, "fontSizeSuggested": boolean, "weightedFontFamilySuggested": boolean, "baselineOffsetSuggested": boolean, "linkSuggested": boolean } |
فیلدها | |
---|---|
boldSuggested | نشان میدهد که آیا تغییری برای |
italicSuggested | نشان میدهد که آیا تغییری برای |
underlineSuggested | نشان میدهد که آیا تغییری برای |
strikethroughSuggested | نشان میدهد که آیا تغییری برای |
smallCapsSuggested | نشان میدهد که آیا تغییری برای |
backgroundColorSuggested | نشان میدهد که آیا تغییر پیشنهادی برای |
foregroundColorSuggested | نشان میدهد که آیا تغییر پیشنهادی برای |
fontSizeSuggested | نشان میدهد که آیا تغییری برای |
weightedFontFamilySuggested | نشان میدهد که آیا تغییر پیشنهادی برای |
baselineOffsetSuggested | نشان میدهد که آیا تغییر پیشنهادی برای |
linkSuggested | نشان میدهد که آیا تغییری برای |
متن خودکار
یک ParagraphElement
که نشاندهندهی نقطهای در متن است که به صورت پویا با محتوایی که میتواند در طول زمان تغییر کند، مانند شماره صفحه، جایگزین میشود.
نمایش JSON |
---|
{ "type": enum ( |
فیلدها | |
---|---|
type | نوع این متن خودکار. |
suggestedInsertionIds[] | شناسههای درج پیشنهادی. اگر یک |
suggestedDeletionIds[] | شناسههای حذف پیشنهادی. اگر خالی باشد، هیچ حذف پیشنهادی برای این محتوا وجود ندارد. |
textStyle | سبک متن این AutoText. |
suggestedTextStyleChanges | سبک متن پیشنهادی به این متن خودکار تغییر میکند که با شناسه پیشنهاد تنظیم شده است. |
نوع
انواع متن خودکار
انومها | |
---|---|
TYPE_UNSPECIFIED | نوع متن خودکار نامشخص. |
PAGE_NUMBER | برای متن خودکار که شماره صفحه فعلی را نشان میدهد، تایپ کنید. |
PAGE_COUNT | متن خودکاری را تایپ کنید که تعداد کل صفحات سند را نشان میدهد. |
صفحهشکن
یک ParagraphElement
که نشاندهندهی یک شکست صفحه است. شکست صفحه باعث میشود متن بعدی از بالای صفحهی بعد شروع شود.
نمایش JSON |
---|
{ "suggestedInsertionIds": [ string ], "suggestedDeletionIds": [ string ], "textStyle": { object ( |
فیلدها | |
---|---|
suggestedInsertionIds[] | شناسههای درج پیشنهادی. اگر یک تغییر پیشنهادی تو در تو باشد، یک |
suggestedDeletionIds[] | شناسههای حذف پیشنهادی. اگر خالی باشد، هیچ حذف پیشنهادی برای این محتوا وجود ندارد. |
textStyle | سبک متن این PageBreak. مشابه محتوای متنی، مانند متنهای دنبالهدار و ارجاعات پاورقی، سبک متن یک شکست صفحه میتواند بر طرحبندی محتوا و همچنین سبک متن درج شده در کنار آن تأثیر بگذارد. |
suggestedTextStyleChanges | سبک متن پیشنهادی به این PageBreak تغییر میکند که با شناسه پیشنهاد کلیدگذاری شده است. |
ستونشکن
یک ParagraphElement
که نشاندهندهی شکست ستون است. شکست ستون باعث میشود متن بعدی از بالای ستون بعدی شروع شود.
نمایش JSON |
---|
{ "suggestedInsertionIds": [ string ], "suggestedDeletionIds": [ string ], "textStyle": { object ( |
فیلدها | |
---|---|
suggestedInsertionIds[] | شناسههای درج پیشنهادی. اگر |
suggestedDeletionIds[] | شناسههای حذف پیشنهادی. اگر خالی باشد، هیچ حذف پیشنهادی برای این محتوا وجود ندارد. |
textStyle | سبک متن این ColumnBreak. مشابه محتوای متنی، مانند متنهای جاری و ارجاعات پاورقی، سبک متن یک شکست ستون میتواند بر طرحبندی محتوا و همچنین سبک متن درج شده در کنار آن تأثیر بگذارد. |
suggestedTextStyleChanges | سبک متن پیشنهادی به این ColumnBreak تغییر میکند که با شناسه پیشنهاد کلیدگذاری شده است. |
پاورقی
یک ParagraphElement
که نشاندهندهی ارجاع به پاورقی است. ارجاع به پاورقی، محتوای درونخطی است که با یک عدد رندر میشود و برای شناسایی پاورقی استفاده میشود.
نمایش JSON |
---|
{ "footnoteId": string, "footnoteNumber": string, "suggestedInsertionIds": [ string ], "suggestedDeletionIds": [ string ], "textStyle": { object ( |
فیلدها | |
---|---|
footnoteId | شناسهی |
footnoteNumber | شماره ارائه شده این پاورقی. |
suggestedInsertionIds[] | شناسههای درج پیشنهادی. اگر یک |
suggestedDeletionIds[] | شناسههای حذف پیشنهادی. اگر خالی باشد، هیچ حذف پیشنهادی برای این محتوا وجود ندارد. |
textStyle | سبک متن این مرجع پاورقی. |
suggestedTextStyleChanges | سبک متن پیشنهادی به این FootnoteReference تغییر میکند که با شناسه پیشنهاد کلیدگذاری شده است. |
قانون افقی
یک ParagraphElement
که نشان دهنده یک خط افقی است.
نمایش JSON |
---|
{ "suggestedInsertionIds": [ string ], "suggestedDeletionIds": [ string ], "textStyle": { object ( |
فیلدها | |
---|---|
suggestedInsertionIds[] | شناسههای درج پیشنهادی. اگر یک |
suggestedDeletionIds[] | شناسههای حذف پیشنهادی. اگر خالی باشد، هیچ حذف پیشنهادی برای این محتوا وجود ندارد. |
textStyle | سبک متن این HorizontalRule. مشابه محتوای متنی، مانند خطوط متن و ارجاعات پاورقی، سبک متن یک خط افقی میتواند بر طرحبندی محتوا و همچنین سبک متن درج شده در کنار آن تأثیر بگذارد. |
suggestedTextStyleChanges | سبک متن پیشنهادی به این HorizontalRule تغییر میکند که با شناسه پیشنهاد کلیدگذاری شده است. |
معادله
یک ParagraphElement
که نشان دهنده یک معادله است.
نمایش JSON |
---|
{ "suggestedInsertionIds": [ string ], "suggestedDeletionIds": [ string ] } |
فیلدها | |
---|---|
suggestedInsertionIds[] | شناسههای درج پیشنهادی. اگر یک |
suggestedDeletionIds[] | شناسههای حذف پیشنهادی. اگر خالی باشد، هیچ حذف پیشنهادی برای این محتوا وجود ندارد. |
عنصر شیء درونخطی
یک ParagraphElement
که شامل یک InlineObject
است.
نمایش JSON |
---|
{ "inlineObjectId": string, "suggestedInsertionIds": [ string ], "suggestedDeletionIds": [ string ], "textStyle": { object ( |
فیلدها | |
---|---|
inlineObjectId | شناسهی شیء |
suggestedInsertionIds[] | شناسههای درج پیشنهادی. یک |
suggestedDeletionIds[] | شناسههای حذف پیشنهادی. اگر خالی باشد، هیچ حذف پیشنهادی برای این محتوا وجود ندارد. |
textStyle | سبک متن این InlineObjectElement. مشابه محتوای متنی، مانند متنهای جاری و ارجاعات پاورقی، سبک متن یک عنصر شیء درونخطی میتواند بر طرحبندی محتوا و همچنین سبکبندی متن درج شده در کنار آن تأثیر بگذارد. |
suggestedTextStyleChanges | سبک متن پیشنهادی به این InlineObject تغییر میکند که با شناسه پیشنهاد کلیدگذاری شده است. |
شخص
شخص یا آدرس ایمیلی که در یک سند ذکر شده است. این اشارهها مانند یک عنصر واحد و تغییرناپذیر حاوی نام یا آدرس ایمیل شخص عمل میکنند.
نمایش JSON |
---|
{ "personId": string, "suggestedInsertionIds": [ string ], "suggestedDeletionIds": [ string ], "textStyle": { object ( |
فیلدها | |
---|---|
personId | فقط خروجی. شناسه منحصر به فرد این لینک. |
suggestedInsertionIds[] | شناسههایی برای پیشنهادهایی که پیوند این شخص را در سند درج میکنند. اگر یک تغییر پیشنهادی تو در تو باشد (مثلاً پیشنهادی درون پیشنهادی که توسط کاربر دیگری ارائه شده است)، یک |
suggestedDeletionIds[] | شناسههایی برای پیشنهادهایی که پیوند این شخص را از سند حذف میکنند. اگر مثلاً چندین کاربر پیشنهاد حذف آن را بدهند، یک |
textStyle | سبک متن این |
suggestedTextStyleChanges | سبک متن پیشنهادی به این |
personProperties | فقط خروجی. ویژگیهای این |
ویژگیهای شخص
ویژگیهای مختص به یک Person
پیوند شده.
نمایش JSON |
---|
{ "name": string, "email": string } |
فیلدها | |
---|---|
name | نام شخص، اگر در متن پیوند به جای آدرس ایمیل شخص نمایش داده شده باشد. |
email | آدرس ایمیل مرتبط با این |
ریچلینک
پیوندی به یک منبع گوگل (مانند یک فایل در درایو، یک ویدیوی یوتیوب یا یک رویداد در تقویم).
نمایش JSON |
---|
{ "richLinkId": string, "suggestedInsertionIds": [ string ], "suggestedDeletionIds": [ string ], "textStyle": { object ( |
فیلدها | |
---|---|
richLinkId | فقط خروجی. شناسه این لینک. |
suggestedInsertionIds[] | شناسههایی برای پیشنهادهایی که این لینک را در سند درج میکنند. اگر |
suggestedDeletionIds[] | شناسههایی برای پیشنهادهایی که این پیوند را از سند حذف میکنند. یک |
textStyle | سبک متن این |
suggestedTextStyleChanges | سبک متن پیشنهادی به این |
richLinkProperties | فقط خروجی. ویژگیهای این |
RichLinkProperties
ویژگیهای مختص به یک RichLink
.
نمایش JSON |
---|
{ "title": string, "uri": string, "mimeType": string } |
فیلدها | |
---|---|
title | فقط خروجی. عنوان |
uri | فقط خروجی. آدرس اینترنتی (URI) مربوط به |
mimeType | فقط خروجی. نوع MIME مربوط به |
سبک پاراگراف
سبکهایی که برای کل یک پاراگراف اعمال میشوند.
سبکهای پاراگراف ارثبریشده در این پیام به صورت فیلدهای تنظیمنشده نمایش داده میشوند. والد یک سبک پاراگراف به محل تعریف سبک پاراگراف بستگی دارد:
- ParagraphStyle روی یک
Paragraph
ازnamed style type
متناظر پاراگراف ارثبری میکند. - ParagraphStyle در یک
named style
ازnormal text
با نام style ارث بری میکند. - ParagraphStyle
normal text
با نام style از سبک پاراگراف پیشفرض در ویرایشگر Docs ارثبری میکند. - ParagraphStyle روی یک عنصر
Paragraph
که در یک جدول قرار دارد، ممکن است سبک پاراگراف خود را از سبک جدول به ارث ببرد.
اگر سبک پاراگراف از والد خود ارثبری نکند، فیلدهای لغو تنظیم، سبک را به مقداری مطابق با پیشفرضهای ویرایشگر اسناد برمیگردانند.
نمایش JSON |
---|
{ "headingId": string, "namedStyleType": enum ( |
فیلدها | |
---|---|
headingId | شناسه عنوان پاراگراف. اگر خالی باشد، این پاراگراف عنوان نیست. این خاصیت فقط خواندنی است. |
namedStyleType | نوع سبک نامگذاری شده برای پاراگراف. از آنجایی که بهروزرسانی نوع سبک نامگذاریشده، سایر ویژگیهای درون ParagraphStyle را تحت تأثیر قرار میدهد، نوع سبک نامگذاریشده قبل از بهروزرسانی سایر ویژگیها اعمال میشود. |
alignment | ترازبندی متن برای این پاراگراف. |
lineSpacing | مقدار فضای بین خطوط، به صورت درصدی از مقدار نرمال، که در آن مقدار نرمال به صورت ۱۰۰.۰ نمایش داده میشود. اگر مقدار آن تنظیم نشده باشد، مقدار از والد به ارث میرسد. |
direction | جهت متن این پاراگراف. اگر تنظیم نشده باشد، مقدار پیشفرض |
spacingMode | حالت فاصلهگذاری برای پاراگراف. |
spaceAbove | مقدار فضای اضافی بالای پاراگراف. اگر تنظیم نشده باشد، مقدار از والد به ارث میرسد. |
spaceBelow | مقدار فضای اضافی زیر پاراگراف. اگر تنظیم نشده باشد، مقدار از والد به ارث میرسد. |
borderBetween | مرز بین این پاراگراف و پاراگرافهای بعدی و قبلی. اگر تنظیم نشده باشد، مقدار از والد به ارث میرسد. حاشیه بین زمانی رندر میشود که پاراگراف مجاور دارای ویژگیهای حاشیه و تورفتگی یکسانی باشد. حاشیههای پاراگراف را نمیتوان تا حدی بهروزرسانی کرد. هنگام تغییر حاشیه پاراگراف، حاشیه جدید باید به طور کامل مشخص شود. |
borderTop | حاشیهی بالای این پاراگراف. اگر تنظیم نشده باشد، مقدار از والد به ارث میرسد. حاشیه بالایی زمانی رندر میشود که پاراگراف بالا ویژگیهای حاشیه و تورفتگی متفاوتی داشته باشد. حاشیههای پاراگراف را نمیتوان تا حدی بهروزرسانی کرد. هنگام تغییر حاشیه پاراگراف، حاشیه جدید باید به طور کامل مشخص شود. |
borderBottom | The border at the bottom of this paragraph. If unset, the value is inherited from the parent. The bottom border is rendered when the paragraph below has different border and indent properties. Paragraph borders cannot be partially updated. When changing a paragraph border, the new border must be specified in its entirety. |
borderLeft | The border to the left of this paragraph. If unset, the value is inherited from the parent. Paragraph borders cannot be partially updated. When changing a paragraph border, the new border must be specified in its entirety. |
borderRight | The border to the right of this paragraph. If unset, the value is inherited from the parent. Paragraph borders cannot be partially updated. When changing a paragraph border, the new border must be specified in its entirety. |
indentFirstLine | The amount of indentation for the first line of the paragraph. If unset, the value is inherited from the parent. |
indentStart | The amount of indentation for the paragraph on the side that corresponds to the start of the text, based on the current paragraph direction. If unset, the value is inherited from the parent. |
indentEnd | The amount of indentation for the paragraph on the side that corresponds to the end of the text, based on the current paragraph direction. If unset, the value is inherited from the parent. |
tabStops[] | A list of the tab stops for this paragraph. The list of tab stops is not inherited. This property is read-only. |
keepLinesTogether | Whether all lines of the paragraph should be laid out on the same page or column if possible. If unset, the value is inherited from the parent. |
keepWithNext | Whether at least a part of this paragraph should be laid out on the same page or column as the next paragraph if possible. If unset, the value is inherited from the parent. |
avoidWidowAndOrphan | Whether to avoid widows and orphans for the paragraph. If unset, the value is inherited from the parent. |
shading | The shading of the paragraph. If unset, the value is inherited from the parent. |
pageBreakBefore | Whether the current paragraph should always start at the beginning of a page. If unset, the value is inherited from the parent. Attempting to update |
NamedStyleType
The types of named styles.
Enums | |
---|---|
NAMED_STYLE_TYPE_UNSPECIFIED | The type of named style is unspecified. |
NORMAL_TEXT | Normal text. |
TITLE | Title. |
SUBTITLE | Subtitle. |
HEADING_1 | Heading 1. |
HEADING_2 | Heading 2. |
HEADING_3 | Heading 3. |
HEADING_4 | Heading 4. |
HEADING_5 | Heading 5. |
HEADING_6 | Heading 6. |
Alignment
The types of text alignment for a paragraph.
Enums | |
---|---|
ALIGNMENT_UNSPECIFIED | The paragraph alignment is inherited from the parent. |
START | The paragraph is aligned to the start of the line. Left-aligned for LTR text, right-aligned otherwise. |
CENTER | The paragraph is centered. |
END | The paragraph is aligned to the end of the line. Right-aligned for LTR text, left-aligned otherwise. |
JUSTIFIED | The paragraph is justified. |
ContentDirection
The directions content can flow in.
Enums | |
---|---|
CONTENT_DIRECTION_UNSPECIFIED | The content direction is unspecified. |
LEFT_TO_RIGHT | The content goes from left to right. |
RIGHT_TO_LEFT | The content goes from right to left. |
SpacingMode
The different modes for paragraph spacing.
Enums | |
---|---|
SPACING_MODE_UNSPECIFIED | The spacing mode is inherited from the parent. |
NEVER_COLLAPSE | Paragraph spacing is always rendered. |
COLLAPSE_LISTS | Paragraph spacing is skipped between list elements. |
ParagraphBorder
A border around a paragraph.
JSON representation |
---|
{ "color": { object ( |
فیلدها | |
---|---|
color | The color of the border. |
width | The width of the border. |
padding | The padding of the border. |
dashStyle | The dash style of the border. |
DashStyle
The kinds of dashes with which linear geometry can be rendered. These values are based on the "ST_PresetLineDashVal" simple type described in section 20.1.10.49 of "Office Open XML File Formats - Fundamentals and Markup Language Reference", part 1 of ECMA-376 5th edition .
Enums | |
---|---|
DASH_STYLE_UNSPECIFIED | Unspecified dash style. |
SOLID | Solid line. Corresponds to ECMA-376 ST_PresetLineDashVal value 'solid'. This is the default dash style. |
DOT | Dotted line. Corresponds to ECMA-376 ST_PresetLineDashVal value 'dot'. |
DASH | Dashed line. Corresponds to ECMA-376 ST_PresetLineDashVal value 'dash'. |
TabStop
A tab stop within a paragraph.
JSON representation |
---|
{ "offset": { object ( |
فیلدها | |
---|---|
offset | The offset between this tab stop and the start margin. |
alignment | The alignment of this tab stop. If unset, the value defaults to |
TabStopAlignment
The alignment of the tab stop.
Enums | |
---|---|
TAB_STOP_ALIGNMENT_UNSPECIFIED | The tab stop alignment is unspecified. |
START | The tab stop is aligned to the start of the line. This is the default. |
CENTER | The tab stop is aligned to the center of the line. |
END | The tab stop is aligned to the end of the line. |
Shading
The shading of a paragraph.
JSON representation |
---|
{
"backgroundColor": {
object ( |
فیلدها | |
---|---|
backgroundColor | The background color of this paragraph shading. |
SuggestedParagraphStyle
A suggested change to a ParagraphStyle
.
JSON representation |
---|
{ "paragraphStyle": { object ( |
فیلدها | |
---|---|
paragraphStyle | A |
paragraphStyleSuggestionState | A mask that indicates which of the fields on the base |
ParagraphStyleSuggestionState
A mask that indicates which of the fields on the base ParagraphStyle
have been changed in this suggestion. For any field set to true, there's a new suggested value.
JSON representation |
---|
{
"headingIdSuggested": boolean,
"namedStyleTypeSuggested": boolean,
"alignmentSuggested": boolean,
"lineSpacingSuggested": boolean,
"directionSuggested": boolean,
"spacingModeSuggested": boolean,
"spaceAboveSuggested": boolean,
"spaceBelowSuggested": boolean,
"borderBetweenSuggested": boolean,
"borderTopSuggested": boolean,
"borderBottomSuggested": boolean,
"borderLeftSuggested": boolean,
"borderRightSuggested": boolean,
"indentFirstLineSuggested": boolean,
"indentStartSuggested": boolean,
"indentEndSuggested": boolean,
"keepLinesTogetherSuggested": boolean,
"keepWithNextSuggested": boolean,
"avoidWidowAndOrphanSuggested": boolean,
"shadingSuggestionState": {
object ( |
فیلدها | |
---|---|
headingIdSuggested | Indicates if there was a suggested change to |
namedStyleTypeSuggested | Indicates if there was a suggested change to |
alignmentSuggested | Indicates if there was a suggested change to |
lineSpacingSuggested | Indicates if there was a suggested change to |
directionSuggested | Indicates if there was a suggested change to |
spacingModeSuggested | Indicates if there was a suggested change to |
spaceAboveSuggested | Indicates if there was a suggested change to |
spaceBelowSuggested | Indicates if there was a suggested change to |
borderBetweenSuggested | Indicates if there was a suggested change to |
borderTopSuggested | Indicates if there was a suggested change to |
borderBottomSuggested | Indicates if there was a suggested change to |
borderLeftSuggested | Indicates if there was a suggested change to |
borderRightSuggested | Indicates if there was a suggested change to |
indentFirstLineSuggested | Indicates if there was a suggested change to |
indentStartSuggested | Indicates if there was a suggested change to |
indentEndSuggested | Indicates if there was a suggested change to |
keepLinesTogetherSuggested | Indicates if there was a suggested change to |
keepWithNextSuggested | Indicates if there was a suggested change to |
avoidWidowAndOrphanSuggested | Indicates if there was a suggested change to |
shadingSuggestionState | A mask that indicates which of the fields in |
pageBreakBeforeSuggested | Indicates if there was a suggested change to |
ShadingSuggestionState
A mask that indicates which of the fields on the base Shading
have been changed in this suggested change. For any field set to true, there's a new suggested value.
JSON representation |
---|
{ "backgroundColorSuggested": boolean } |
فیلدها | |
---|---|
backgroundColorSuggested | Indicates if there was a suggested change to the |
Bullet
Describes the bullet of a paragraph.
JSON representation |
---|
{
"listId": string,
"nestingLevel": integer,
"textStyle": {
object ( |
فیلدها | |
---|---|
listId | The ID of the list this paragraph belongs to. |
nestingLevel | The nesting level of this paragraph in the list. |
textStyle | The paragraph-specific text style applied to this bullet. |
SuggestedBullet
A suggested change to a Bullet
.
JSON representation |
---|
{ "bullet": { object ( |
فیلدها | |
---|---|
bullet | A |
bulletSuggestionState | A mask that indicates which of the fields on the base |
BulletSuggestionState
A mask that indicates which of the fields on the base Bullet
have been changed in this suggestion. For any field set to true, there's a new suggested value.
JSON representation |
---|
{
"listIdSuggested": boolean,
"nestingLevelSuggested": boolean,
"textStyleSuggestionState": {
object ( |
فیلدها | |
---|---|
listIdSuggested | Indicates if there was a suggested change to the |
nestingLevelSuggested | Indicates if there was a suggested change to the |
textStyleSuggestionState | A mask that indicates which of the fields in |
ObjectReferences
A collection of object IDs.
JSON representation |
---|
{ "objectIds": [ string ] } |
فیلدها | |
---|---|
objectIds[] | The object IDs. |
SectionBreak
A StructuralElement
representing a section break. A section is a range of content that has the same SectionStyle
. A section break represents the start of a new section, and the section style applies to the section after the section break.
The document body always begins with a section break.
JSON representation |
---|
{
"suggestedInsertionIds": [
string
],
"suggestedDeletionIds": [
string
],
"sectionStyle": {
object ( |
فیلدها | |
---|---|
suggestedInsertionIds[] | The suggested insertion IDs. A |
suggestedDeletionIds[] | The suggested deletion IDs. If empty, then there are no suggested deletions of this content. |
sectionStyle | The style of the section after this section break. |
SectionStyle
The styling that applies to a section.
JSON representation |
---|
{ "columnProperties": [ { object ( |
فیلدها | |
---|---|
columnProperties[] | The section's columns properties. If empty, the section contains one column with the default properties in the Docs editor. A section can be updated to have no more than 3 columns. When updating this property, setting a concrete value is required. Unsetting this property will result in a 400 bad request error. |
columnSeparatorStyle | The style of column separators. This style can be set even when there's one column in the section. When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error. |
contentDirection | The content direction of this section. If unset, the value defaults to When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error. |
marginTop | The top page margin of the section. If unset, the value defaults to When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error. |
marginBottom | The bottom page margin of the section. If unset, the value defaults to When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error. |
marginRight | The right page margin of the section. If unset, the value defaults to When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error. |
marginLeft | The left page margin of the section. If unset, the value defaults to When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error. |
marginHeader | The header margin of the section. If unset, the value defaults to When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error. |
marginFooter | The footer margin of the section. If unset, the value defaults to When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error. |
sectionType | Output only. The type of section. |
defaultHeaderId | The ID of the default header. If unset, the value inherits from the previous This property is read-only. |
defaultFooterId | The ID of the default footer. If unset, the value inherits from the previous This property is read-only. |
firstPageHeaderId | The ID of the header used only for the first page of the section. If This property is read-only. |
firstPageFooterId | The ID of the footer used only for the first page of the section. If This property is read-only. |
evenPageHeaderId | The ID of the header used only for even pages. If the value of DocumentStyle's This property is read-only. |
evenPageFooterId | The ID of the footer used only for even pages. If the value of DocumentStyle's This property is read-only. |
useFirstPageHeaderFooter | Indicates whether to use the first page header / footer IDs for the first page of the section. If unset, it inherits from DocumentStyle's When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error. |
pageNumberStart | The page number from which to start counting the number of pages for this section. If unset, page numbering continues from the previous section. If the value is unset in the first When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error. |
flipPageOrientation | Optional. Indicates whether to flip the dimensions of DocumentStyle's When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error. |
SectionColumnProperties
Properties that apply to a section's column.
JSON representation |
---|
{ "width": { object ( |
فیلدها | |
---|---|
width | Output only. The width of the column. |
paddingEnd | The padding at the end of the column. |
ColumnSeparatorStyle
The style of column separators between columns.
Enums | |
---|---|
COLUMN_SEPARATOR_STYLE_UNSPECIFIED | An unspecified column separator style. |
NONE | No column separator lines between columns. |
BETWEEN_EACH_COLUMN | Renders a column separator line between each column. |
SectionType
Represents how the start of the current section is positioned relative to the previous section.
Enums | |
---|---|
SECTION_TYPE_UNSPECIFIED | The section type is unspecified. |
CONTINUOUS | The section starts immediately after the last paragraph of the previous section. |
NEXT_PAGE | The section starts on the next page. |
Table
A StructuralElement
representing a table.
JSON representation |
---|
{ "rows": integer, "columns": integer, "tableRows": [ { object ( |
فیلدها | |
---|---|
rows | Number of rows in the table. |
columns | Number of columns in the table. It's possible for a table to be non-rectangular, so some rows may have a different number of cells. |
tableRows[] | The contents and style of each row. |
suggestedInsertionIds[] | The suggested insertion IDs. A |
suggestedDeletionIds[] | The suggested deletion IDs. If empty, then there are no suggested deletions of this content. |
tableStyle | The style of the table. |
TableRow
The contents and style of a row in a Table
.
JSON representation |
---|
{ "startIndex": integer, "endIndex": integer, "tableCells": [ { object ( |
فیلدها | |
---|---|
startIndex | The zero-based start index of this row, in UTF-16 code units. |
endIndex | The zero-based end index of this row, exclusive, in UTF-16 code units. |
tableCells[] | The contents and style of each cell in this row. It's possible for a table to be non-rectangular, so some rows may have a different number of cells than other rows in the same table. |
suggestedInsertionIds[] | The suggested insertion IDs. A |
suggestedDeletionIds[] | The suggested deletion IDs. If empty, then there are no suggested deletions of this content. |
tableRowStyle | The style of the table row. |
suggestedTableRowStyleChanges | The suggested style changes to this row, keyed by suggestion ID. |
TableCell
The contents and style of a cell in a Table
.
JSON representation |
---|
{ "startIndex": integer, "endIndex": integer, "content": [ { object ( |
فیلدها | |
---|---|
startIndex | The zero-based start index of this cell, in UTF-16 code units. |
endIndex | The zero-based end index of this cell, exclusive, in UTF-16 code units. |
content[] | The content of the cell. |
tableCellStyle | The style of the cell. |
suggestedInsertionIds[] | The suggested insertion IDs. A |
suggestedDeletionIds[] | The suggested deletion IDs. If empty, then there are no suggested deletions of this content. |
suggestedTableCellStyleChanges | The suggested changes to the table cell style, keyed by suggestion ID. |
TableCellStyle
The style of a TableCell
.
Inherited table cell styles are represented as unset fields in this message. A table cell style can inherit from the table's style.
JSON representation |
---|
{ "rowSpan": integer, "columnSpan": integer, "backgroundColor": { object ( |
فیلدها | |
---|---|
rowSpan | The row span of the cell. This property is read-only. |
columnSpan | The column span of the cell. This property is read-only. |
backgroundColor | The background color of the cell. |
borderLeft | The left border of the cell. |
borderRight | The right border of the cell. |
borderTop | The top border of the cell. |
borderBottom | The bottom border of the cell. |
paddingLeft | The left padding of the cell. |
paddingRight | The right padding of the cell. |
paddingTop | The top padding of the cell. |
paddingBottom | The bottom padding of the cell. |
contentAlignment | The alignment of the content in the table cell. The default alignment matches the alignment for newly created table cells in the Docs editor. |
TableCellBorder
A border around a table cell.
Table cell borders cannot be transparent. To hide a table cell border, make its width 0.
JSON representation |
---|
{ "color": { object ( |
فیلدها | |
---|---|
color | The color of the border. This color cannot be transparent. |
width | The width of the border. |
dashStyle | The dash style of the border. |
ContentAlignment
The types of content alignment.
Derived from a subset of the values of the "ST_TextAnchoringType" simple type in section 20.1.10.60 of "Office Open XML File Formats - Fundamentals and Markup Language Reference", part 1 of ECMA-376 5th edition .
Enums | |
---|---|
CONTENT_ALIGNMENT_UNSPECIFIED | An unspecified content alignment. The content alignment is inherited from the parent if one exists. |
CONTENT_ALIGNMENT_UNSUPPORTED | An unsupported content alignment. |
TOP | An alignment that aligns the content to the top of the content holder. Corresponds to ECMA-376 ST_TextAnchoringType 't'. |
MIDDLE | An alignment that aligns the content to the middle of the content holder. Corresponds to ECMA-376 ST_TextAnchoringType 'ctr'. |
BOTTOM | An alignment that aligns the content to the bottom of the content holder. Corresponds to ECMA-376 ST_TextAnchoringType 'b'. |
SuggestedTableCellStyle
A suggested change to a TableCellStyle
.
JSON representation |
---|
{ "tableCellStyle": { object ( |
فیلدها | |
---|---|
tableCellStyle | A |
tableCellStyleSuggestionState | A mask that indicates which of the fields on the base |
TableCellStyleSuggestionState
A mask that indicates which of the fields on the base TableCellStyle
have been changed in this suggestion. For any field set to true, there's a new suggested value.
JSON representation |
---|
{ "rowSpanSuggested": boolean, "columnSpanSuggested": boolean, "backgroundColorSuggested": boolean, "borderLeftSuggested": boolean, "borderRightSuggested": boolean, "borderTopSuggested": boolean, "borderBottomSuggested": boolean, "paddingLeftSuggested": boolean, "paddingRightSuggested": boolean, "paddingTopSuggested": boolean, "paddingBottomSuggested": boolean, "contentAlignmentSuggested": boolean } |
فیلدها | |
---|---|
rowSpanSuggested | Indicates if there was a suggested change to |
columnSpanSuggested | Indicates if there was a suggested change to |
backgroundColorSuggested | Indicates if there was a suggested change to |
borderLeftSuggested | Indicates if there was a suggested change to |
borderRightSuggested | Indicates if there was a suggested change to |
borderTopSuggested | Indicates if there was a suggested change to |
borderBottomSuggested | Indicates if there was a suggested change to |
paddingLeftSuggested | Indicates if there was a suggested change to |
paddingRightSuggested | Indicates if there was a suggested change to |
paddingTopSuggested | Indicates if there was a suggested change to |
paddingBottomSuggested | Indicates if there was a suggested change to |
contentAlignmentSuggested | Indicates if there was a suggested change to |
TableRowStyle
Styles that apply to a table row.
JSON representation |
---|
{
"minRowHeight": {
object ( |
فیلدها | |
---|---|
minRowHeight | The minimum height of the row. The row will be rendered in the Docs editor at a height equal to or greater than this value in order to show all the content in the row's cells. |
tableHeader | Whether the row is a table header. |
preventOverflow | Whether the row cannot overflow across page or column boundaries. |
SuggestedTableRowStyle
A suggested change to a TableRowStyle
.
JSON representation |
---|
{ "tableRowStyle": { object ( |
فیلدها | |
---|---|
tableRowStyle | A |
tableRowStyleSuggestionState | A mask that indicates which of the fields on the base |
TableRowStyleSuggestionState
A mask that indicates which of the fields on the base TableRowStyle
have been changed in this suggestion. For any field set to true, there's a new suggested value.
JSON representation |
---|
{ "minRowHeightSuggested": boolean } |
فیلدها | |
---|---|
minRowHeightSuggested | Indicates if there was a suggested change to |
TableStyle
Styles that apply to a table.
JSON representation |
---|
{
"tableColumnProperties": [
{
object ( |
فیلدها | |
---|---|
tableColumnProperties[] | The properties of each column. Note that in Docs, tables contain rows and rows contain cells, similar to HTML. So the properties for a row can be found on the row's |
TableColumnProperties
The properties of a column in a table.
JSON representation |
---|
{ "widthType": enum ( |
فیلدها | |
---|---|
widthType | The width type of the column. |
width | The width of the column. Set when the column's |
WidthType
The type of width of the column.
Enums | |
---|---|
WIDTH_TYPE_UNSPECIFIED | The column width type is unspecified. |
EVENLY_DISTRIBUTED | The column width is evenly distributed among the other evenly distributed columns. The width of the column is automatically determined and will have an equal portion of the width remaining for the table after accounting for all columns with specified widths. |
FIXED_WIDTH | A fixed column width. The [width][ google.apps.docs.v1.TableColumnProperties.width property contains the column's width. |
TableOfContents
A StructuralElement
representing a table of contents.
JSON representation |
---|
{
"content": [
{
object ( |
فیلدها | |
---|---|
content[] | The content of the table of contents. |
suggestedInsertionIds[] | The suggested insertion IDs. A |
suggestedDeletionIds[] | The suggested deletion IDs. If empty, then there are no suggested deletions of this content. |
Header
A document header.
JSON representation |
---|
{
"headerId": string,
"content": [
{
object ( |
فیلدها | |
---|---|
headerId | The ID of the header. |
content[] | The contents of the header. The indexes for a header's content begin at zero. |
Footnote
A document footnote.
JSON representation |
---|
{
"footnoteId": string,
"content": [
{
object ( |
فیلدها | |
---|---|
footnoteId | The ID of the footnote. |
content[] | The contents of the footnote. The indexes for a footnote's content begin at zero. |
DocumentStyle
The style of the document.
JSON representation |
---|
{ "background": { object ( |
فیلدها | |
---|---|
background | The background of the document. Documents cannot have a transparent background color. |
defaultHeaderId | The ID of the default header. If not set, there's no default header. This property is read-only. |
defaultFooterId | The ID of the default footer. If not set, there's no default footer. This property is read-only. |
evenPageHeaderId | The ID of the header used only for even pages. The value of This property is read-only. |
evenPageFooterId | The ID of the footer used only for even pages. The value of This property is read-only. |
firstPageHeaderId | The ID of the header used only for the first page. If not set then a unique header for the first page does not exist. The value of This property is read-only. |
firstPageFooterId | The ID of the footer used only for the first page. If not set then a unique footer for the first page does not exist. The value of This property is read-only. |
useFirstPageHeaderFooter | Indicates whether to use the first page header / footer IDs for the first page. |
useEvenPageHeaderFooter | Indicates whether to use the even page header / footer IDs for the even pages. |
pageNumberStart | The page number from which to start counting the number of pages. |
marginTop | The top page margin. Updating the top page margin on the document style clears the top page margin on all section styles. |
marginBottom | The bottom page margin. Updating the bottom page margin on the document style clears the bottom page margin on all section styles. |
marginRight | The right page margin. Updating the right page margin on the document style clears the right page margin on all section styles. It may also cause columns to resize in all sections. |
marginLeft | The left page margin. Updating the left page margin on the document style clears the left page margin on all section styles. It may also cause columns to resize in all sections. |
pageSize | The size of a page in the document. |
marginHeader | The amount of space between the top of the page and the contents of the header. |
marginFooter | The amount of space between the bottom of the page and the contents of the footer. |
useCustomHeaderFooterMargins | Indicates whether DocumentStyle This property is read-only. |
flipPageOrientation | Optional. Indicates whether to flip the dimensions of the |
Background
Represents the background of a document.
JSON representation |
---|
{
"color": {
object ( |
فیلدها | |
---|---|
color | The background color. |
اندازه
A width and height.
JSON representation |
---|
{ "height": { object ( |
فیلدها | |
---|---|
height | The height of the object. |
width | The width of the object. |
SuggestedDocumentStyle
A suggested change to the DocumentStyle
.
JSON representation |
---|
{ "documentStyle": { object ( |
فیلدها | |
---|---|
documentStyle | A |
documentStyleSuggestionState | A mask that indicates which of the fields on the base |
DocumentStyleSuggestionState
A mask that indicates which of the fields on the base DocumentStyle
have been changed in this suggestion. For any field set to true, there's a new suggested value.
JSON representation |
---|
{ "backgroundSuggestionState": { object ( |
فیلدها | |
---|---|
backgroundSuggestionState | A mask that indicates which of the fields in |
defaultHeaderIdSuggested | Indicates if there was a suggested change to |
defaultFooterIdSuggested | Indicates if there was a suggested change to |
evenPageHeaderIdSuggested | Indicates if there was a suggested change to |
evenPageFooterIdSuggested | Indicates if there was a suggested change to |
firstPageHeaderIdSuggested | Indicates if there was a suggested change to |
firstPageFooterIdSuggested | Indicates if there was a suggested change to |
useFirstPageHeaderFooterSuggested | Indicates if there was a suggested change to |
useEvenPageHeaderFooterSuggested | Indicates if there was a suggested change to |
pageNumberStartSuggested | Indicates if there was a suggested change to |
marginTopSuggested | Indicates if there was a suggested change to |
marginBottomSuggested | Indicates if there was a suggested change to |
marginRightSuggested | Indicates if there was a suggested change to |
marginLeftSuggested | Indicates if there was a suggested change to |
pageSizeSuggestionState | A mask that indicates which of the fields in [size] [google.apps.docs.v1.DocumentStyle.size] have been changed in this suggestion. |
marginHeaderSuggested | Indicates if there was a suggested change to |
marginFooterSuggested | Indicates if there was a suggested change to |
useCustomHeaderFooterMarginsSuggested | Indicates if there was a suggested change to |
flipPageOrientationSuggested | Optional. Indicates if there was a suggested change to |
BackgroundSuggestionState
A mask that indicates which of the fields on the base Background
have been changed in this suggestion. For any field set to true, the Backgound
has a new suggested value.
JSON representation |
---|
{ "backgroundColorSuggested": boolean } |
فیلدها | |
---|---|
backgroundColorSuggested | Indicates whether the current background color has been modified in this suggestion. |
SizeSuggestionState
A mask that indicates which of the fields on the base Size
have been changed in this suggestion. For any field set to true, the Size
has a new suggested value.
JSON representation |
---|
{ "heightSuggested": boolean, "widthSuggested": boolean } |
فیلدها | |
---|---|
heightSuggested | Indicates if there was a suggested change to |
widthSuggested | Indicates if there was a suggested change to |
NamedStyles
The named styles. Paragraphs in the document can inherit their TextStyle
and ParagraphStyle
from these named styles.
JSON representation |
---|
{
"styles": [
{
object ( |
فیلدها | |
---|---|
styles[] | The named styles. There's an entry for each of the possible |
NamedStyle
A named style. Paragraphs in the document can inherit their TextStyle
and ParagraphStyle
from this named style when they have the same named style type.
JSON representation |
---|
{ "namedStyleType": enum ( |
فیلدها | |
---|---|
namedStyleType | The type of this named style. |
textStyle | The text style of this named style. |
paragraphStyle | The paragraph style of this named style. |
SuggestedNamedStyles
A suggested change to the NamedStyles
.
JSON representation |
---|
{ "namedStyles": { object ( |
فیلدها | |
---|---|
namedStyles | A |
namedStylesSuggestionState | A mask that indicates which of the fields on the base |
NamedStylesSuggestionState
The suggestion state of a NamedStyles
message.
JSON representation |
---|
{
"stylesSuggestionStates": [
{
object ( |
فیلدها | |
---|---|
stylesSuggestionStates[] | A mask that indicates which of the fields on the corresponding The order of these named style suggestion states matches the order of the corresponding named style within the |
NamedStyleSuggestionState
A suggestion state of a NamedStyle
message.
JSON representation |
---|
{ "namedStyleType": enum ( |
فیلدها | |
---|---|
namedStyleType | The named style type that this suggestion state corresponds to. This field is provided as a convenience for matching the NamedStyleSuggestionState with its corresponding |
textStyleSuggestionState | A mask that indicates which of the fields in |
paragraphStyleSuggestionState | A mask that indicates which of the fields in |
List
A List represents the list attributes for a group of paragraphs that all belong to the same list. A paragraph that's part of a list has a reference to the list's ID in its bullet
.
JSON representation |
---|
{ "listProperties": { object ( |
فیلدها | |
---|---|
listProperties | The properties of the list. |
suggestedListPropertiesChanges | The suggested changes to the list properties, keyed by suggestion ID. |
suggestedInsertionId | The suggested insertion ID. If empty, then this is not a suggested insertion. |
suggestedDeletionIds[] | The suggested deletion IDs. If empty, then there are no suggested deletions of this list. |
ListProperties
The properties of a list
that describe the look and feel of bullets belonging to paragraphs associated with a list.
JSON representation |
---|
{
"nestingLevels": [
{
object ( |
فیلدها | |
---|---|
nestingLevels[] | Describes the properties of the bullets at the associated level. A list has at most 9 levels of nesting with nesting level 0 corresponding to the top-most level and nesting level 8 corresponding to the most nested level. The nesting levels are returned in ascending order with the least nested returned first. |
NestingLevel
Contains properties describing the look and feel of a list bullet at a given level of nesting.
JSON representation |
---|
{ "bulletAlignment": enum ( |
فیلدها | |
---|---|
bulletAlignment | The alignment of the bullet within the space allotted for rendering the bullet. |
glyphFormat | The format string used by bullets at this level of nesting. The glyph format contains one or more placeholders, and these placeholders are replaced with the appropriate values depending on the For example, the glyph format The glyph format can contain placeholders for the current nesting level as well as placeholders for parent nesting levels. For example, a list can have a glyph format of For nesting levels that are ordered, the string that replaces a placeholder in the glyph format for a particular paragraph depends on the paragraph's order within the list. |
indentFirstLine | The amount of indentation for the first line of paragraphs at this level of nesting. |
indentStart | The amount of indentation for paragraphs at this level of nesting. Applied to the side that corresponds to the start of the text, based on the paragraph's content direction. |
textStyle | The text style of bullets at this level of nesting. |
startNumber | The number of the first list item at this nesting level. A value of 0 is treated as a value of 1 for lettered lists and Roman numeral lists. For values of both 0 and 1, lettered and Roman numeral lists will begin at This value is ignored for nesting levels with unordered glyphs. |
Union field glyph_kind . The kind of glyph used by bullets. This defines the bullet glyph that replaces the placeholders in the glyph_format . glyph_kind can be only one of the following: | |
glyphType | The type of glyph used by bullets when paragraphs at this level of nesting is ordered. The glyph type determines the type of glyph used to replace placeholders within the |
glyphSymbol | A custom glyph symbol used by bullets when paragraphs at this level of nesting is unordered. The glyph symbol replaces placeholders within the |
BulletAlignment
The types of alignment for a bullet.
Enums | |
---|---|
BULLET_ALIGNMENT_UNSPECIFIED | The bullet alignment is unspecified. |
START | The bullet is aligned to the start of the space allotted for rendering the bullet. Left-aligned for LTR text, right-aligned otherwise. |
CENTER | The bullet is aligned to the center of the space allotted for rendering the bullet. |
END | The bullet is aligned to the end of the space allotted for rendering the bullet. Right-aligned for LTR text, left-aligned otherwise. |
GlyphType
The types of glyphs used by bullets when paragraphs at this level of nesting is ordered.
Enums | |
---|---|
GLYPH_TYPE_UNSPECIFIED | The glyph type is unspecified or unsupported. |
NONE | An empty string. |
DECIMAL | A number, like 1 , 2 , or 3 . |
ZERO_DECIMAL | A number where single digit numbers are prefixed with a zero, like 01 , 02 , or 03 . Numbers with more than one digit are not prefixed with a zero. |
UPPER_ALPHA | An uppercase letter, like A , B , or C . |
ALPHA | A lowercase letter, like a , b , or c . |
UPPER_ROMAN | An uppercase Roman numeral, like I , II , or III . |
ROMAN | A lowercase Roman numeral, like i , ii , or iii . |
SuggestedListProperties
A suggested change to ListProperties
.
JSON representation |
---|
{ "listProperties": { object ( |
فیلدها | |
---|---|
listProperties | A |
listPropertiesSuggestionState | A mask that indicates which of the fields on the base |
ListPropertiesSuggestionState
A mask that indicates which of the fields on the base ListProperties
have been changed in this suggestion. For any field set to true, there's a new suggested value.
JSON representation |
---|
{
"nestingLevelsSuggestionStates": [
{
object ( |
فیلدها | |
---|---|
nestingLevelsSuggestionStates[] | A mask that indicates which of the fields on the corresponding The nesting level suggestion states are returned in ascending order of the nesting level with the least nested returned first. |
NestingLevelSuggestionState
A mask that indicates which of the fields on the base NestingLevel
have been changed in this suggestion. For any field set to true, there's a new suggested value.
JSON representation |
---|
{
"bulletAlignmentSuggested": boolean,
"glyphTypeSuggested": boolean,
"glyphFormatSuggested": boolean,
"glyphSymbolSuggested": boolean,
"indentFirstLineSuggested": boolean,
"indentStartSuggested": boolean,
"textStyleSuggestionState": {
object ( |
فیلدها | |
---|---|
bulletAlignmentSuggested | Indicates if there was a suggested change to |
glyphTypeSuggested | Indicates if there was a suggested change to |
glyphFormatSuggested | Indicates if there was a suggested change to |
glyphSymbolSuggested | Indicates if there was a suggested change to |
indentFirstLineSuggested | Indicates if there was a suggested change to |
indentStartSuggested | Indicates if there was a suggested change to |
textStyleSuggestionState | A mask that indicates which of the fields in |
startNumberSuggested | Indicates if there was a suggested change to |
NamedRanges
A collection of all the NamedRange
s in the document that share a given name.
JSON representation |
---|
{
"name": string,
"namedRanges": [
{
object ( |
فیلدها | |
---|---|
name | The name that all the |
namedRanges[] | The |
NamedRange
A collection of Range
s with the same named range ID.
Named ranges allow developers to associate parts of a document with an arbitrary user-defined label so their contents can be programmatically read or edited later. A document can contain multiple named ranges with the same name, but every named range has a unique ID.
A named range is created with a single Range
, and content inserted inside a named range generally expands that range. However, certain document changes can cause the range to be split into multiple ranges.
Named ranges are not private. All applications and collaborators that have access to the document can see its named ranges.
JSON representation |
---|
{
"namedRangeId": string,
"name": string,
"ranges": [
{
object ( |
فیلدها | |
---|---|
namedRangeId | The ID of the named range. |
name | The name of the named range. |
ranges[] | The ranges that belong to this named range. |
Range
Specifies a contiguous range of text.
JSON representation |
---|
{ "segmentId": string, "startIndex": integer, "endIndex": integer, "tabId": string } |
فیلدها | |
---|---|
segmentId | The ID of the header, footer, or footnote that this range is contained in. An empty segment ID signifies the document's body. |
startIndex | The zero-based start index of this range, in UTF-16 code units. In all current uses, a start index must be provided. This field is an Int32Value in order to accommodate future use cases with open-ended ranges. |
endIndex | The zero-based end index of this range, exclusive, in UTF-16 code units. In all current uses, an end index must be provided. This field is an Int32Value in order to accommodate future use cases with open-ended ranges. |
tabId | The tab that contains this range. When omitted, the request applies to the first tab. In a document containing a single tab:
In a document containing multiple tabs:
|
InlineObject
An object that appears inline with text. An InlineObject contains an EmbeddedObject
such as an image.
JSON representation |
---|
{ "objectId": string, "inlineObjectProperties": { object ( |
فیلدها | |
---|---|
objectId | The ID of this inline object. Can be used to update an object's properties. |
inlineObjectProperties | The properties of this inline object. |
suggestedInlineObjectPropertiesChanges | The suggested changes to the inline object properties, keyed by suggestion ID. |
suggestedInsertionId | The suggested insertion ID. If empty, then this is not a suggested insertion. |
suggestedDeletionIds[] | The suggested deletion IDs. If empty, then there are no suggested deletions of this content. |
InlineObjectProperties
Properties of an InlineObject
.
JSON representation |
---|
{
"embeddedObject": {
object ( |
فیلدها | |
---|---|
embeddedObject | The embedded object of this inline object. |
EmbeddedObject
An embedded object in the document.
JSON representation |
---|
{ "title": string, "description": string, "embeddedObjectBorder": { object ( |
فیلدها | |
---|---|
title | The title of the embedded object. The |
description | The description of the embedded object. The |
embeddedObjectBorder | The border of the embedded object. |
size | The visible size of the image after cropping. |
marginTop | The top margin of the embedded object. |
marginBottom | The bottom margin of the embedded object. |
marginRight | The right margin of the embedded object. |
marginLeft | The left margin of the embedded object. |
linkedContentReference | A reference to the external linked source content. For example, it contains a reference to the source Google Sheets chart when the embedded object is a linked chart. If unset, then the embedded object is not linked. |
Union field properties . The properties that are specific to each embedded object type. properties can be only one of the following: | |
embeddedDrawingProperties | The properties of an embedded drawing. |
imageProperties | The properties of an image. |
EmbeddedDrawingProperties
This type has no fields.
The properties of an embedded drawing and used to differentiate the object type. An embedded drawing is one that's created and edited within a document. Note that extensive details are not supported.
ImageProperties
The properties of an image.
JSON representation |
---|
{
"contentUri": string,
"sourceUri": string,
"brightness": number,
"contrast": number,
"transparency": number,
"cropProperties": {
object ( |
فیلدها | |
---|---|
contentUri | A URI to the image with a default lifetime of 30 minutes. This URI is tagged with the account of the requester. Anyone with the URI effectively accesses the image as the original requester. Access to the image may be lost if the document's sharing settings change. |
sourceUri | The source URI is the URI used to insert the image. The source URI can be empty. |
brightness | The brightness effect of the image. The value should be in the interval [-1.0, 1.0], where 0 means no effect. |
contrast | The contrast effect of the image. The value should be in the interval [-1.0, 1.0], where 0 means no effect. |
transparency | The transparency effect of the image. The value should be in the interval [0.0, 1.0], where 0 means no effect and 1 means transparent. |
cropProperties | The crop properties of the image. |
angle | The clockwise rotation angle of the image, in radians. |
CropProperties
The crop properties of an image.
The crop rectangle is represented using fractional offsets from the original content's 4 edges.
- If the offset is in the interval (0, 1), the corresponding edge of crop rectangle is positioned inside of the image's original bounding rectangle.
- If the offset is negative or greater than 1, the corresponding edge of crop rectangle is positioned outside of the image's original bounding rectangle.
- If all offsets and rotation angles are 0, the image is not cropped.
JSON representation |
---|
{ "offsetLeft": number, "offsetRight": number, "offsetTop": number, "offsetBottom": number, "angle": number } |
فیلدها | |
---|---|
offsetLeft | The offset specifies how far inwards the left edge of the crop rectangle is from the left edge of the original content as a fraction of the original content's width. |
offsetRight | The offset specifies how far inwards the right edge of the crop rectangle is from the right edge of the original content as a fraction of the original content's width. |
offsetTop | The offset specifies how far inwards the top edge of the crop rectangle is from the top edge of the original content as a fraction of the original content's height. |
offsetBottom | The offset specifies how far inwards the bottom edge of the crop rectangle is from the bottom edge of the original content as a fraction of the original content's height. |
angle | The clockwise rotation angle of the crop rectangle around its center, in radians. Rotation is applied after the offsets. |
EmbeddedObjectBorder
A border around an EmbeddedObject
.
JSON representation |
---|
{ "color": { object ( |
فیلدها | |
---|---|
color | The color of the border. |
width | The width of the border. |
dashStyle | The dash style of the border. |
propertyState | The property state of the border property. |
PropertyState
The possible states of a property.
Enums | |
---|---|
RENDERED | If a property's state is RENDERED, then the element has the corresponding property when rendered in the document. This is the default value. |
NOT_RENDERED | If a property's state is NOT_RENDERED, then the element does not have the corresponding property when rendered in the document. |
LinkedContentReference
A reference to the external linked source content.
JSON representation |
---|
{ // Union field |
فیلدها | |
---|---|
Union field reference . The reference specific to the type of linked content. reference can be only one of the following: | |
sheetsChartReference | A reference to the linked chart. |
SheetsChartReference
A reference to a linked chart embedded from Google Sheets.
JSON representation |
---|
{ "spreadsheetId": string, "chartId": integer } |
فیلدها | |
---|---|
spreadsheetId | The ID of the Google Sheets spreadsheet that contains the source chart. |
chartId | The ID of the specific chart in the Google Sheets spreadsheet that's embedded. |
SuggestedInlineObjectProperties
A suggested change to InlineObjectProperties
.
JSON representation |
---|
{ "inlineObjectProperties": { object ( |
فیلدها | |
---|---|
inlineObjectProperties | An |
inlineObjectPropertiesSuggestionState | A mask that indicates which of the fields on the base |
InlineObjectPropertiesSuggestionState
A mask that indicates which of the fields on the base InlineObjectProperties
have been changed in this suggestion. For any field set to true, there's a new suggested value.
JSON representation |
---|
{
"embeddedObjectSuggestionState": {
object ( |
فیلدها | |
---|---|
embeddedObjectSuggestionState | A mask that indicates which of the fields in |
EmbeddedObjectSuggestionState
A mask that indicates which of the fields on the base EmbeddedObject
have been changed in this suggestion. For any field set to true, there's a new suggested value.
JSON representation |
---|
{ "embeddedDrawingPropertiesSuggestionState": { object ( |
فیلدها | |
---|---|
embeddedDrawingPropertiesSuggestionState | A mask that indicates which of the fields in |
imagePropertiesSuggestionState | A mask that indicates which of the fields in |
titleSuggested | Indicates if there was a suggested change to |
descriptionSuggested | Indicates if there was a suggested change to |
embeddedObjectBorderSuggestionState | A mask that indicates which of the fields in |
sizeSuggestionState | A mask that indicates which of the fields in |
marginLeftSuggested | Indicates if there was a suggested change to |
marginRightSuggested | Indicates if there was a suggested change to |
marginTopSuggested | Indicates if there was a suggested change to |
marginBottomSuggested | Indicates if there was a suggested change to |
linkedContentReferenceSuggestionState | A mask that indicates which of the fields in |
EmbeddedDrawingPropertiesSuggestionState
This type has no fields.
A mask that indicates which of the fields on the base EmbeddedDrawingProperties
have been changed in this suggestion. For any field set to true, there's a new suggested value.
ImagePropertiesSuggestionState
A mask that indicates which of the fields on the base ImageProperties
have been changed in this suggestion. For any field set to true, there's a new suggested value.
JSON representation |
---|
{
"contentUriSuggested": boolean,
"sourceUriSuggested": boolean,
"brightnessSuggested": boolean,
"contrastSuggested": boolean,
"transparencySuggested": boolean,
"cropPropertiesSuggestionState": {
object ( |
فیلدها | |
---|---|
contentUriSuggested | Indicates if there was a suggested change to |
sourceUriSuggested | Indicates if there was a suggested change to [sourceUri] [google.apps.docs.v1.EmbeddedObject.source_uri]. |
brightnessSuggested | Indicates if there was a suggested change to [brightness] [google.apps.docs.v1.EmbeddedObject.brightness]. |
contrastSuggested | Indicates if there was a suggested change to [contrast] [google.apps.docs.v1.EmbeddedObject.contrast]. |
transparencySuggested | Indicates if there was a suggested change to [transparency] [google.apps.docs.v1.EmbeddedObject.transparency]. |
cropPropertiesSuggestionState | A mask that indicates which of the fields in |
angleSuggested | Indicates if there was a suggested change to [angle] [google.apps.docs.v1.EmbeddedObject.angle]. |
CropPropertiesSuggestionState
A mask that indicates which of the fields on the base CropProperties
have been changed in this suggestion. For any field set to true, there's a new suggested value.
JSON representation |
---|
{ "offsetLeftSuggested": boolean, "offsetRightSuggested": boolean, "offsetTopSuggested": boolean, "offsetBottomSuggested": boolean, "angleSuggested": boolean } |
فیلدها | |
---|---|
offsetLeftSuggested | Indicates if there was a suggested change to |
offsetRightSuggested | Indicates if there was a suggested change to |
offsetTopSuggested | Indicates if there was a suggested change to |
offsetBottomSuggested | Indicates if there was a suggested change to |
angleSuggested | Indicates if there was a suggested change to |
EmbeddedObjectBorderSuggestionState
A mask that indicates which of the fields on the base EmbeddedObjectBorder
have been changed in this suggestion. For any field set to true, there's a new suggested value.
JSON representation |
---|
{ "colorSuggested": boolean, "widthSuggested": boolean, "dashStyleSuggested": boolean, "propertyStateSuggested": boolean } |
فیلدها | |
---|---|
colorSuggested | Indicates if there was a suggested change to [color] [google.apps.docs.v1.EmbeddedBorderObject.color]. |
widthSuggested | Indicates if there was a suggested change to [width] [google.apps.docs.v1.EmbeddedBorderObject.width]. |
dashStyleSuggested | Indicates if there was a suggested change to [dashStyle] [google.apps.docs.v1.EmbeddedBorderObject.dash_style]. |
propertyStateSuggested | Indicates if there was a suggested change to [propertyState] [google.apps.docs.v1.EmbeddedBorderObject.property_state]. |
LinkedContentReferenceSuggestionState
A mask that indicates which of the fields on the base LinkedContentReference
have been changed in this suggestion. For any field set to true, there's a new suggested value.
JSON representation |
---|
{
"sheetsChartReferenceSuggestionState": {
object ( |
فیلدها | |
---|---|
sheetsChartReferenceSuggestionState | A mask that indicates which of the fields in |
SheetsChartReferenceSuggestionState
A mask that indicates which of the fields on the base SheetsChartReference
have been changed in this suggestion. For any field set to true, there's a new suggested value.
JSON representation |
---|
{ "spreadsheetIdSuggested": boolean, "chartIdSuggested": boolean } |
فیلدها | |
---|---|
spreadsheetIdSuggested | Indicates if there was a suggested change to |
chartIdSuggested | Indicates if there was a suggested change to |
PositionedObject
An object that's tethered to a Paragraph
and positioned relative to the beginning of the paragraph. A PositionedObject contains an EmbeddedObject
such as an image.
JSON representation |
---|
{ "objectId": string, "positionedObjectProperties": { object ( |
فیلدها | |
---|---|
objectId | The ID of this positioned object. |
positionedObjectProperties | The properties of this positioned object. |
suggestedPositionedObjectPropertiesChanges | The suggested changes to the positioned object properties, keyed by suggestion ID. |
suggestedInsertionId | The suggested insertion ID. If empty, then this is not a suggested insertion. |
suggestedDeletionIds[] | The suggested deletion IDs. If empty, then there are no suggested deletions of this content. |
PositionedObjectProperties
Properties of a PositionedObject
.
JSON representation |
---|
{ "positioning": { object ( |
فیلدها | |
---|---|
positioning | The positioning of this positioned object relative to the newline of the |
embeddedObject | The embedded object of this positioned object. |
PositionedObjectPositioning
The positioning of a PositionedObject
. The positioned object is positioned relative to the beginning of the Paragraph
it's tethered to.
JSON representation |
---|
{ "layout": enum ( |
فیلدها | |
---|---|
layout | The layout of this positioned object. |
leftOffset | The offset of the left edge of the positioned object relative to the beginning of the |
topOffset | The offset of the top edge of the positioned object relative to the beginning of the |
PositionedObjectLayout
The possible layouts of a [PositionedObject][google.aps.docs.v1.PositionedObject].
Enums | |
---|---|
POSITIONED_OBJECT_LAYOUT_UNSPECIFIED | The layout is unspecified. |
WRAP_TEXT | The text wraps around the positioned object. |
BREAK_LEFT | Breaks text such that the positioned object is on the left and text is on the right. |
BREAK_RIGHT | Breaks text such that the positioned object is on the right and text is on the left. |
BREAK_LEFT_RIGHT | Breaks text such that there's no text on the left or right of the positioned object. |
IN_FRONT_OF_TEXT | The positioned object is in front of the text. |
BEHIND_TEXT | The positioned object is behind the text. |
SuggestedPositionedObjectProperties
A suggested change to PositionedObjectProperties
.
JSON representation |
---|
{ "positionedObjectProperties": { object ( |
فیلدها | |
---|---|
positionedObjectProperties | A |
positionedObjectPropertiesSuggestionState | A mask that indicates which of the fields on the base |
PositionedObjectPropertiesSuggestionState
A mask that indicates which of the fields on the base PositionedObjectProperties
have been changed in this suggestion. For any field set to true, there's a new suggested value.
JSON representation |
---|
{ "positioningSuggestionState": { object ( |
فیلدها | |
---|---|
positioningSuggestionState | A mask that indicates which of the fields in |
embeddedObjectSuggestionState | A mask that indicates which of the fields in |
PositionedObjectPositioningSuggestionState
A mask that indicates which of the fields on the base PositionedObjectPositioning
have been changed in this suggestion. For any field set to true, there's a new suggested value.
JSON representation |
---|
{ "layoutSuggested": boolean, "leftOffsetSuggested": boolean, "topOffsetSuggested": boolean } |
فیلدها | |
---|---|
layoutSuggested | Indicates if there was a suggested change to |
leftOffsetSuggested | Indicates if there was a suggested change to |
topOffsetSuggested | Indicates if there was a suggested change to |
SuggestionsViewMode
The suggestions view mode applied to the document that indicates how suggested changes are represented. It provides options for reading the document with all suggestions inline, accepted, or rejected.
Enums | |
---|---|
DEFAULT_FOR_CURRENT_ACCESS | The SuggestionsViewMode applied to the returned document depends on the user's current access level. If the user only has view access, PREVIEW_WITHOUT_SUGGESTIONS is applied. Otherwise, SUGGESTIONS_INLINE is applied. This is the default suggestions view mode. |
SUGGESTIONS_INLINE | The returned document has suggestions inline. Suggested changes will be differentiated from base content within the document. Requests to retrieve a document using this mode will return a 403 error if the user does not have permission to view suggested changes. |
PREVIEW_SUGGESTIONS_ACCEPTED | The returned document is a preview with all suggested changes accepted. Requests to retrieve a document using this mode will return a 403 error if the user does not have permission to view suggested changes. |
PREVIEW_WITHOUT_SUGGESTIONS | The returned document is a preview with all suggested changes rejected if there are any suggestions in the document. |
Methods | |
---|---|
| Applies one or more updates to the document. |
| Creates a blank document using the title given in the request. |
| Gets the latest version of the specified document. |