WPS 基础接口 > 文字 API 参考 > InlineShape > 属性 > InlineShape.IsPictureBullet 属性
如果为 True,则表明 InlineShape 对象是图片项目符号。Boolean 类型,只读。

语法

表达式.IsPictureBullet

表达式   返回 InlineShape 对象的表达式。

说明

虽然图片项目符号被看作嵌入式图形,但是搜索文档的 InlineShapes 集合并不返回图片项目符号。

示例

如果选定列表的格式被设为图片项目符号,本示例设置该列表的格式,否则,显示一条消息。

示例代码
function IsSelectionAPictureBullet(shp){
    try{
        if(shp.IsPictureBullet == true){
          shp.Width = InchesToPoints(0.5)
          shp.Height = InchesToPoints(0.05)
        }
    }
    catch(exception){
          MsgBox("The selection is not a list or " + "does not contain picture bullets.")
    }
}

使用下列代码调用以上程序。

示例代码
function CallPic(){
    IsSelectionAPictureBullet(Selection.Range.ListFormat.ListPictureBullet)
}


请参阅