设置等级
RatingField.MaxRating(属性)
说明
可读写
只对等级字段有效,设置等级字段最大值,取值范围为1-5
返回值
Number
浏览器环境示例
javascript
async function example() {
await instance.ready();
const app = instance.Application;
const field = await app.Sheets(1).FieldDescriptors(2)
const prop = await field.Rating
prop.MaxRating = 5
field.Apply()
console.log(await prop.MaxRating)
}
脚本编辑器 示例
javascript
function main() {
const field = Application.Sheets(1).FieldDescriptors(2)
const prop = await field.Rating
prop.MaxRating = 5
field.Apply()
console.log(prop.MaxRating)
}
main()