> 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/shellproperty.zh.md).

# ShellProperty

**ShellProperty** 对象代表一个 Shell 属性 - 一个来自 Windows 或第三方扩展（与 Opus 本地元数据系统中的元数据不同）的文件或文件夹的元数据项。

[**FSUtil**](/directory-opus/guan-fang-shou-ce/readme.zh-10/readme.zh-3/readme.zh/fsutil.zh.md)**.GetShellPropertyList** 方法允许您检索可用 Shell 属性的列表。然后，您可以使用 [**FSUtil**](/directory-opus/guan-fang-shou-ce/readme.zh-10/readme.zh-3/readme.zh/fsutil.zh.md)**.GetShellProperty** 或 [**Item**](/directory-opus/guan-fang-shou-ce/readme.zh-10/readme.zh-3/readme.zh/item.zh.md)**.ShellProp** 来检索特定文件的属性值。

| 属性名称              | 返回类型     | 描述                                                                                                                                         |
| ----------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| **defwidth**      | *int*    | 显示此属性的列应使用的默认宽度（以像素为单位）。                                                                                                                   |
| **display\_name** | *string* | 此属性的显示名称（应该显示给用户的名称）。                                                                                                                      |
| **isviewable**    | *bool*   | 该属性旨在供用户查看（例如，在列中）。                                                                                                                        |
| **justify**       | *string* | 此属性的默认列对齐方式（**left**、**right**、**center**）。                                                                                                |
| **pkey**          | *string* | 此属性的 PKEY（属性键）。这是属性的唯一 ID，也是引用属性的规范方法。您也可以使用 **raw\_name** 和 **display\_name** 值来访问属性，但它们可能不准确（因为可能存在两个具有相同名称的属性），并且速度也较慢，因为每次都需要通过名称查找属性。 |
| **raw\_name**     | *string* | 属性提供程序使用的内部名称。                                                                                                                             |
| **type**          | *string* | 此属性返回的数据类型；**string**、**number**、**datetime** 是目前支持的唯一类型。                                                                                  |
