Enum ContentType
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
نوع محتوا یک مقدار enum که نوع محتوای محتوای تولید شده توسط یک Update Draft Action Response
را مشخص میکند.
برای فراخوانی یک enum، کلاس والد، نام و ویژگی آن را فراخوانی می کنید. به عنوان مثال، CardService.ContentType.TEXT
.
خواص
اموال | تایپ کنید | توضیحات |
---|
TEXT | Enum | نشان می دهد که محتوای تولید شده متن ساده است. پیش فرض |
MUTABLE_HTML | Enum | نشان می دهد که محتوای تولید شده به صورت HTML فرمت شده است. محتوا پس از تولید قابل ویرایش است. |
IMMUTABLE_HTML | Enum | نشان می دهد که محتوای تولید شده به صورت HTML فرمت شده است، اما این محتوا پس از تولید قابل ویرایش نیست. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003e\u003ccode\u003eContentType\u003c/code\u003e is an enum used to define the type of content generated by \u003ccode\u003eUpdateDraftActionResponse\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eContent types include \u003ccode\u003eTEXT\u003c/code\u003e (default plain text), \u003ccode\u003eMUTABLE_HTML\u003c/code\u003e (editable HTML), and \u003ccode\u003eIMMUTABLE_HTML\u003c/code\u003e (non-editable HTML).\u003c/p\u003e\n"],["\u003cp\u003eTo specify a content type, use the syntax: \u003ccode\u003eCardService.ContentType.PROPERTY\u003c/code\u003e, replacing \u003ccode\u003ePROPERTY\u003c/code\u003e with the desired type.\u003c/p\u003e\n"]]],["The `ContentType` enum specifies the type of content generated by an `UpdateDraftActionResponse`. It has three properties: `TEXT`, `MUTABLE_HTML`, and `IMMUTABLE_HTML`. `TEXT` indicates plain text, which is the default. `MUTABLE_HTML` represents editable HTML content, while `IMMUTABLE_HTML` represents HTML content that cannot be edited after generation. These properties are accessed via `CardService.ContentType` followed by the chosen type, such as `TEXT`.\n"],null,["# Enum ContentType\n\nContentType\n\nAn enum value that specifies the content type of the content generated by a [UpdateDraftActionResponse](/apps-script/reference/card-service/update-draft-action-response).\n\nTo call an enum, you call its parent class, name, and property. For example, `\nCardService.ContentType.TEXT`. \n\n### Properties\n\n| Property | Type | Description |\n|------------------|--------|---------------------------------------------------------------------------------------------------------------------|\n| `TEXT` | `Enum` | Indicates that the generated content is plain text. Default. |\n| `MUTABLE_HTML` | `Enum` | Indicates that the generated content is formatted as HTML. The content can be edited after it is generated. |\n| `IMMUTABLE_HTML` | `Enum` | Indicates that the generated content is formatted as HTML, but this content cannot be edited after it is generated. |"]]