概述 | 软件包 | 类 | 使用 | 树 | 索引 | 帮助

上一个类 下一个类 | 框架 无框架
摘要： 嵌套 | 字段 | 构造函数 | 方法 | 详细信息： 字段 | 构造函数 | 方法

## application.workbooks.workbook.presentations.presentation.slide.pgshapes
类 PgShape

    java.lang.Object
      application.workbooks.workbook.shapes.Shape
          application.workbooks.workbook.presentations.presentation.slide.pgshapes.PgShape

    public class PgShape

extends Shape

该类定义了对简报制作中的单个图形对象的一些操作，如设置得到动作设置等

方法摘要
`application.workbooks.workbook.presentations.presentation.slide.ActionSetting` | `getActionSetting(int mouseType)` 得到其动作设置
`void` | `setActionSetting(application.workbooks.workbook.presentations.presentation.slide.ActionSetting action)` 动作设置

从类 application.workbooks.workbook.shapes.Shape 继承的方法
`beginEdit, changeConnector, changeOrder, changeType, copyFormatInfo, delete, duplicate, flipHorizontal, flipVertical, getCanDelete, getConnectFormat, getDataObject, getEndPoint, getFillAttribute, getHalfDrag, getHeight, getHorAlignLeft, getHorAlignLeftByCentimeters, getLineFormat, getName, getNodes, getPictureFormat, getPlugID, getPlugInData, getPlugSubID, getRelativeHorizontalPosition, getRelativeVerAlignPosition, getRotateAngle, getShadowFormat, getShapeText, getStartPoint, getTextEffectFormat, getTextFrame, getThreeDFormat, getType, getVerAlignTop, getVerAlignTopByCentimeters, getWidth, hasTextFrame, isAllOverlap, isAnchorLock, isCanFlip, isCanGroup, isCanMoveLocation, isCanRotate, isConnectable, isEditable, isGroup, isLockLocation, isLockRatio, isLockSize, isPicture, isPrintShape, isSelected, isTextEffect, move, moveByValue, pasteFormatInfo, reShape, select, setAllowOverlap, setAnchorLock, setCanDelete, setCanFlip, setCanGroup, setCanMoveLocation, setCanRotate, setDefaultProperties, setFillAttribute, setHalfDrag, setHeight, setHorAlignLeft, setHorAlignLeftByCentimeters, setHorizonAlignment, setLayoutIndex, setLevelDown, setLevelLeft, setLevelRight, setLevelUp, setLocation, setLockLocation, setLockPosition, setLockRatio, setLockSize, setMovedByText, setPlugID, setPlugInData, setPlugSubID, setPosition, setPrintShape, setRelativeHorizontalPosition, setRelativeVerAlignPosition, setRotateAngle, setRotateAngleByDegree, setSurroundType, setVerAlignTop, setVerAlignTopByCentimeters, setWidth, stopEdit, unSelect`

从类 java.lang.Object 继承的方法
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

方法详细信息

### getActionSetting

    public application.workbooks.workbook.presentations.presentation.slide.ActionSetting getActionSetting(int mouseType)

  得到其动作设置

  参数：
    `mouseType` - 得到鼠标类型，0：点击，1：移过
  返回：
    动作设置

    例子：

         PgShape shape =  Application.getWorkbooks().getActiveWorkbook().getActiveShapes().getAllShapes()[2];
         ActionSetting set0 =shape.getActionSetting(0);
         set0.setRunMacro("Module1.a");
         set0.setPlaySound(true);
         set0.setSoundOption(ActionSettingConstants.SOUND_SCREECHINGBREAK);
         set0.setHighLight(true);
         shape.setActionSetting(set0);
         System.out.println(shape.getActionSetting(0).isHighLight());

### setActionSetting

    public void setActionSetting(application.workbooks.workbook.presentations.presentation.slide.ActionSetting action)

  动作设置

  参数：
    `ActionSetting` - 设置的动作

    例子：

         PgShape shape =  Application.getWorkbooks().getActiveWorkbook().getActiveShapes().getAllShapes()[2];
         ActionSetting set0 =shape.getActionSetting(0);
         set0.setRunMacro("Module1.a");
         set0.setPlaySound(true);
         set0.setSoundOption(ActionSettingConstants.SOUND_SCREECHINGBREAK);
         set0.setHighLight(true);
         shape.setActionSetting(set0);
         System.out.println(shape.getActionSetting(0).isHighLight());

概述 | 软件包 | 类 | 使用 | 树 | 索引 | 帮助

上一个类 下一个类 | 框架 无框架
摘要： 嵌套 | 字段 | 构造函数 | 方法 | 详细信息： 字段 | 构造函数 | 方法