1 /* 2 * The contents of this file is dual-licensed under 2 3 * alternative Open Source/Free licenses: LGPL 2.1 or later and 4 * Apache License 2.0. (starting with JNA version 4.0.0). 5 * 6 * You can freely decide which license you want to apply to 7 * the project. 8 * 9 * You may obtain a copy of the LGPL License at: 10 * 11 * http://www.gnu.org/licenses/licenses.html 12 * 13 * A copy is also included in the downloadable source code package 14 * containing JNA, in file "LGPL2.1". 15 * 16 * You may obtain a copy of the Apache License at: 17 * 18 * http://www.apache.org/licenses/ 19 * 20 * A copy is also included in the downloadable source code package 21 * containing JNA, in file "AL2.0". 22 */ 23 24 package com.sun.jna.platform.win32.COM.util.office.excel; 25 26 import com.sun.jna.platform.win32.COM.util.annotation.ComInterface; 27 import com.sun.jna.platform.win32.COM.util.annotation.ComMethod; 28 import com.sun.jna.platform.win32.COM.util.annotation.ComProperty; 29 30 @ComInterface(iid = "{00020846-0000-0000-C000-000000000046}") 31 public interface ComIRange { 32 33 @ComProperty getApplication()34 ComIApplication getApplication(); 35 36 @ComProperty getText()37 String getText(); 38 39 @ComMethod Select()40 void Select(); 41 42 @ComProperty setValue(String value)43 void setValue(String value); 44 45 @ComMethod Activate()46 void Activate(); 47 48 @ComProperty getItem(Object rowIndex, Object columnIndex)49 ComIRange getItem(Object rowIndex, Object columnIndex); 50 51 @ComProperty setValue(Object data)52 void setValue(Object data); 53 54 @ComProperty getValue()55 Object getValue(); 56 57 @ComProperty setFormula(String data)58 void setFormula(String data); 59 60 @ComProperty getFormula()61 String getFormula(); 62 63 @ComProperty setNumberFormat(String data)64 void setNumberFormat(String data); 65 66 @ComProperty getNumberFormat()67 String getNumberFormat(); 68 69 @ComProperty getEntireColumn()70 ComIRange getEntireColumn(); 71 72 @ComMethod AutoFit()73 void AutoFit(); 74 75 @ComProperty getResize(Object rowSize, Object columnSize)76 public ComIRange getResize(Object rowSize, Object columnSize); 77 78 @ComProperty setOrientation(int degree)79 void setOrientation(int degree); 80 81 @ComProperty getOrientation()82 int getOrientation(); 83 84 @ComProperty setWrapText(boolean wrap)85 void setWrapText(boolean wrap); 86 87 @ComProperty getWrapText()88 boolean getWrapText(); 89 90 @ComProperty getInterior()91 Interior getInterior(); 92 93 @ComProperty getBorders()94 Borders getBorders(); 95 96 @ComProperty getTop()97 int getTop(); 98 99 @ComProperty setTop(int value)100 void setTop(int value); 101 102 @ComProperty getLeft()103 int getLeft(); 104 105 @ComProperty setLeft(int value)106 void setLeft(int value); 107 108 @ComProperty getName()109 String getName(); 110 111 @ComProperty setName(String name)112 void setName(String name); 113 114 @ComProperty setAddress(String name)115 void setAddress(String name); 116 } 117