> For the complete documentation index, see [llms.txt](https://chaoses-ib.gitbook.io/directory-opus/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://chaoses-ib.gitbook.io/directory-opus/guan-fang-shou-ce/readme.zh-10/readme.zh-3/readme.zh/customfielddata.zh.md).

# CustomFieldData

**CustomFieldData** 对象通过 [**GetNewNameData**](/directory-opus/guan-fang-shou-ce/readme.zh-10/readme.zh-3/readme.zh/getnewnamedata.zh.md)**.custom** 属性提供给 [重命名脚本](/directory-opus/guan-fang-shou-ce/readme.zh-8/readme.zh.md)。它提供对脚本添加到 *重命名* 对话框中的任何 [自定义字段](/directory-opus/guan-fang-shou-ce/readme.zh-8/readme.zh/custom_fields_in_the_rename_dialog.zh.md) 的值的访问权限。

| 属性名称      | 返回值类型     | 描述                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| --------- | --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <自定义字段属性> | *variant* | <p><strong>CustomFieldData</strong> 对象的属性完全由脚本本身决定。</p><p>在 <a href="/pages/SekaljUFq4CSA5xNjtpI"><strong>OnGetCustomFields</strong></a> 方法中，将要使用的任何自定义字段的默认值分配给 <a href="/pages/9vqUuR9eZjJqeGpiRHXu"><strong>GetCustomFieldData</strong></a><strong>.fields</strong> 属性。每个默认值的类型控制属性的类型。</p><p><em>重命名</em> 对话框仅支持某些类型的自定义字段变量，因此您只能分配兼容类型的属性。支持的类型：</p><ul><li>布尔选项（<strong>True</strong> 或 <strong>False</strong>） - 变量类型必须为 <em>bool</em></li><li>数字选项 - 变量类型必须为 <em>int</em></li><li>字符串选项 - 变量类型必须为 <em>string</em></li><li>下拉列表 - 变量类型必须为 <a href="/pages/eVUEPeqBMSfDkhV44apF"><strong>Vector</strong></a>，其中第一个元素为 <em>int</em>（用于指定默认选择），其余元素为字符串。</li></ul> |
