Overview | Package | Class | Tree | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## application.workbooks.workbook.style.fill
Class PictureAttribute

    java.lang.Object
      application.workbooks.workbook.style.fill.PictureAttribute

public class PictureAttribute
extends java.lang.Object

此类用于设置图片信息。

Method Summary
`java.lang.String` | `getPath()` 得到图片的路径。
`void` | `setPath(java.lang.String path)` 设置图片路径。

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Method Detail

### getPath

    public java.lang.String getPath()

  得到图片的路径。

  Returns:
    图片的路径

    例子:

         Shapes shapes = Application.getWorkbooks().getActiveWorkbook().getActiveShapes() ;
         ShapeRange shape = shapes.getRange() ;
         javax.swing.JOptionPane.showMessageDialog(null,"当前填充图片的路径是"+shape.getFillFormat().getPictureInfo().getPath()) ;

### setPath

    public void setPath(java.lang.String path)

  设置图片路径。

  Parameters:
    `path` - 图片路径

    例子:

         Shapes shapes = Application.getWorkbooks().getActiveWorkbook().getActiveShapes() ;
         ShapeRange shape = shapes.getRange() ;
         shape.getFillFormat().getPictureInfo().setPath("C:/id.jpg") ;

Overview | Package | Class | Tree | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

版权所有 2001-2004 无锡永中科技有限公司