OleDiagramOptions
Leave feedback
On this page
Inheritance: java.lang.Object, com.groupdocs.merger.domain.options.ImportDocumentOptions
All Implemented Interfaces: com.groupdocs.merger.domain.options.interfaces.IOleDiagramOptions
public class OleDiagramOptions extends ImportDocumentOptions implements IOleDiagramOptions
Provides options for import of the embedded document to Diagram via OLE.
Learn more
- More about adding document to Diagram via OLE: Add document to Diagram via OLE.
| Constructor | Description |
|---|---|
| OleDiagramOptions(byte[] objectData, byte[] imageData, String extension, int pageNumber) | Initializes a new instance of the OleDiagramOptions class. |
| OleDiagramOptions(String filePath, byte[] imageData, int pageNumber) | Initializes a new instance of the OleDiagramOptions class. |
| OleDiagramOptions(String filePath, int pageNumber) | Initializes a new instance of the OleDiagramOptions class. |
| Method | Description |
|---|---|
| getX() | The X coordinate of the embedded object shape’s pin (center of rotation) in relation to the page. |
| setX(int value) | The X coordinate of the embedded object shape’s pin (center of rotation) in relation to the page. |
| getY() | The Y coordinate of the embedded object shape’s pin (center of rotation) in relation to the page. |
| setY(int value) | The Y coordinate of the embedded object shape’s pin (center of rotation) in relation to the page. |
| getWidth() | The width of the embedded object shape in inches. |
| setWidth(int value) | The width of the embedded object shape in inches. |
| getHeight() | The height of the embedded object shape in inches. |
| setHeight(int value) | The height of the embedded object shape in inches. |
| getImageData() | The image data of the embedded object. |
public OleDiagramOptions(byte[] objectData, byte[] imageData, String extension, int pageNumber)
Initializes a new instance of the OleDiagramOptions class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| objectData | byte[] | The data of the embedded object. |
| imageData | byte[] | The image data of the embedded object. |
| extension | java.lang.String | The extension of the embedded object. |
| pageNumber | int | The page number for adding embedded object. |
public OleDiagramOptions(String filePath, byte[] imageData, int pageNumber)
Initializes a new instance of the OleDiagramOptions class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| filePath | java.lang.String | The file path of the embedded object. |
| imageData | byte[] | The image data of the embedded object. |
| pageNumber | int | The page number for adding embedded object. |
public OleDiagramOptions(String filePath, int pageNumber)
Initializes a new instance of the OleDiagramOptions class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| filePath | java.lang.String | The file path of the embedded object. |
| pageNumber | int | The page number for adding embedded object. |
public final int getX()
The X coordinate of the embedded object shape’s pin (center of rotation) in relation to the page.
Returns: int
public final void setX(int value)
The X coordinate of the embedded object shape’s pin (center of rotation) in relation to the page.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int |
public final int getY()
The Y coordinate of the embedded object shape’s pin (center of rotation) in relation to the page.
Returns: int
public final void setY(int value)
The Y coordinate of the embedded object shape’s pin (center of rotation) in relation to the page.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int |
public final int getWidth()
The width of the embedded object shape in inches.
Returns: int
public final void setWidth(int value)
The width of the embedded object shape in inches.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int |
public final int getHeight()
The height of the embedded object shape in inches.
Returns: int
public final void setHeight(int value)
The height of the embedded object shape in inches.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int |
public final byte[] getImageData()
The image data of the embedded object.
Returns: byte[]
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.