WPS 基础接口 > 表格 API 参考 > Application > 属性 > Application.DisplayPasteOptions 属性
如果可以显示“粘贴选项”按钮,则该属性值为 TrueBoolean 类型,可读写。

语法

表达式.DisplayPasteOptions

表达式   一个代表 Application 对象的变量。

说明

这是一个 WPS Office 范围的设置。该设置影响所有其他的 WPS Office 应用程序。如果将 DisplayPasteOptions 属性设置为 True,则会关闭 ET 中的“自动填充选项”按钮。“自动填充选项”按钮只存在于 ET 中,而“粘贴选项”按钮存在于所有其他的 WPS Office 应用程序中。

示例

在本示例中,ET 将显示“粘贴选项”按钮的状态通知用户。

示例代码
function CheckDisplayFeature() {
    // Check if the options button can be displayed.
    if(Application.DisplayPasteOptions == true) {
        MsgBox("The ability to display the Paste Options button is on.")
	}
    else {
        MsgBox("The ability to display the Paste Options button is off.")
    }
}


请参阅