
**Inheritance:**
java.lang.Object
```
public final class VisualObjectPlacement
```

Represents placement and appearance of [OleObject](../../com.aspose.tasks/oleobject) in a view.
## Constructors

| Constructor | Description |
| --- | --- |
| [VisualObjectPlacement()](#VisualObjectPlacement--) | Initializes a new instance of the [VisualObjectPlacement](../../com.aspose.tasks/visualobjectplacement) class. |
## Methods

| Method | Description |
| --- | --- |
| [getAttachmentPoint()](#getAttachmentPoint--) | Gets alignment of visual object relative to a task when 'Attach to task' options is selected. |
| [getBorderLineColor()](#getBorderLineColor--) | Gets border line color. |
| [getBorderLineThickness()](#getBorderLineThickness--) | Gets border line thickness (allowed values are 0 - 5). |
| [getFillColor()](#getFillColor--) | Gets fill color. |
| [getFillPattern()](#getFillPattern--) | Gets fill pattern. |
| [getHeight()](#getHeight--) | Gets displayed height of visual object. |
| [getHorizontalOffset()](#getHorizontalOffset--) | Gets horizontal offset of visual object. |
| [getOleObjectId()](#getOleObjectId--) | Gets Id of [OleObject](../../com.aspose.tasks/oleobject) object. |
| [getTaskId()](#getTaskId--) | Gets Id of task if 'Attach to task' options is selected, -1 otherwise. |
| [getTimescaleDate()](#getTimescaleDate--) | Gets date placement of visual object when 'Attach to timescale' options is selected. |
| [getVerticalOffset()](#getVerticalOffset--) | Gets vertical offset of visual object. |
| [getWidth()](#getWidth--) | Gets displayed width of visual object. |
| [setAttachmentPoint(int value)](#setAttachmentPoint-int-) | Sets alignment of visual object relative to a task when 'Attach to task' options is selected. |
| [setBorderLineColor(Color value)](#setBorderLineColor-java.awt.Color-) | Sets border line color. |
| [setBorderLineThickness(byte value)](#setBorderLineThickness-byte-) | Sets border line thickness (allowed values are 0 - 5). |
| [setFillColor(Color value)](#setFillColor-java.awt.Color-) | Sets fill color. |
| [setFillPattern(int value)](#setFillPattern-int-) | Sets fill pattern. |
| [setHeight(double value)](#setHeight-double-) | Sets displayed height of visual object. |
| [setHorizontalOffset(double value)](#setHorizontalOffset-double-) | Sets horizontal offset of visual object. |
| [setOleObjectId(int value)](#setOleObjectId-int-) | Sets Id of [OleObject](../../com.aspose.tasks/oleobject) object. |
| [setTaskId(int value)](#setTaskId-int-) | Sets Id of task if 'Attach to task' options is selected, -1 otherwise. |
| [setTimescaleDate(Date value)](#setTimescaleDate-java.util.Date-) | Sets date placement of visual object when 'Attach to timescale' options is selected. |
| [setVerticalOffset(double value)](#setVerticalOffset-double-) | Sets vertical offset of visual object. |
| [setWidth(double value)](#setWidth-double-) | Sets displayed width of visual object. |
### VisualObjectPlacement() {#VisualObjectPlacement--}
```
public VisualObjectPlacement()
```


Initializes a new instance of the [VisualObjectPlacement](../../com.aspose.tasks/visualobjectplacement) class.

### getAttachmentPoint() {#getAttachmentPoint--}
```
public final int getAttachmentPoint()
```


Gets alignment of visual object relative to a task when 'Attach to task' options is selected.

**Returns:**
int - alignment of visual object relative to a task when 'Attach to task' options is selected.
### getBorderLineColor() {#getBorderLineColor--}
```
public final Color getBorderLineColor()
```


Gets border line color.

**Returns:**
java.awt.Color - border line color.
### getBorderLineThickness() {#getBorderLineThickness--}
```
public final byte getBorderLineThickness()
```


Gets border line thickness (allowed values are 0 - 5).

**Returns:**
byte - border line thickness (allowed values are 0 - 5).
### getFillColor() {#getFillColor--}
```
public final Color getFillColor()
```


Gets fill color.

**Returns:**
java.awt.Color - fill color.
### getFillPattern() {#getFillPattern--}
```
public final int getFillPattern()
```


Gets fill pattern.

**Returns:**
int - fill pattern.
### getHeight() {#getHeight--}
```
public final double getHeight()
```


Gets displayed height of visual object.

**Returns:**
double - displayed height of visual object.
### getHorizontalOffset() {#getHorizontalOffset--}
```
public final double getHorizontalOffset()
```


Gets horizontal offset of visual object.

**Returns:**
double - horizontal offset of visual object.
### getOleObjectId() {#getOleObjectId--}
```
public final int getOleObjectId()
```


Gets Id of [OleObject](../../com.aspose.tasks/oleobject) object.

**Returns:**
int - Id of [OleObject](../../com.aspose.tasks/oleobject) object.
### getTaskId() {#getTaskId--}
```
public final int getTaskId()
```


Gets Id of task if 'Attach to task' options is selected, -1 otherwise.

**Returns:**
int - Id of task if 'Attach to task' options is selected, -1 otherwise.
### getTimescaleDate() {#getTimescaleDate--}
```
public final Date getTimescaleDate()
```


Gets date placement of visual object when 'Attach to timescale' options is selected.

**Returns:**
java.util.Date - date placement of visual object when 'Attach to timescale' options is selected.
### getVerticalOffset() {#getVerticalOffset--}
```
public final double getVerticalOffset()
```


Gets vertical offset of visual object.

**Returns:**
double - vertical offset of visual object.
### getWidth() {#getWidth--}
```
public final double getWidth()
```


Gets displayed width of visual object.

**Returns:**
double - displayed width of visual object.
### setAttachmentPoint(int value) {#setAttachmentPoint-int-}
```
public final void setAttachmentPoint(int value)
```


Sets alignment of visual object relative to a task when 'Attach to task' options is selected.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int | alignment of visual object relative to a task when 'Attach to task' options is selected. |

### setBorderLineColor(Color value) {#setBorderLineColor-java.awt.Color-}
```
public final void setBorderLineColor(Color value)
```


Sets border line color.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.awt.Color | border line color. |

### setBorderLineThickness(byte value) {#setBorderLineThickness-byte-}
```
public final void setBorderLineThickness(byte value)
```


Sets border line thickness (allowed values are 0 - 5).

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | byte | border line thickness (allowed values are 0 - 5). |

### setFillColor(Color value) {#setFillColor-java.awt.Color-}
```
public final void setFillColor(Color value)
```


Sets fill color.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.awt.Color | fill color. |

### setFillPattern(int value) {#setFillPattern-int-}
```
public final void setFillPattern(int value)
```


Sets fill pattern.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int | fill pattern. |

### setHeight(double value) {#setHeight-double-}
```
public final void setHeight(double value)
```


Sets displayed height of visual object.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | double | displayed height of visual object. |

### setHorizontalOffset(double value) {#setHorizontalOffset-double-}
```
public final void setHorizontalOffset(double value)
```


Sets horizontal offset of visual object.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | double | horizontal offset of visual object. |

### setOleObjectId(int value) {#setOleObjectId-int-}
```
public final void setOleObjectId(int value)
```


Sets Id of [OleObject](../../com.aspose.tasks/oleobject) object.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int | Id of [OleObject](../../com.aspose.tasks/oleobject) object. |

### setTaskId(int value) {#setTaskId-int-}
```
public final void setTaskId(int value)
```


Sets Id of task if 'Attach to task' options is selected, -1 otherwise.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int | Id of task if 'Attach to task' options is selected, -1 otherwise. |

### setTimescaleDate(Date value) {#setTimescaleDate-java.util.Date-}
```
public final void setTimescaleDate(Date value)
```


Sets date placement of visual object when 'Attach to timescale' options is selected.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.util.Date | date placement of visual object when 'Attach to timescale' options is selected. |

### setVerticalOffset(double value) {#setVerticalOffset-double-}
```
public final void setVerticalOffset(double value)
```


Sets vertical offset of visual object.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | double | vertical offset of visual object. |

### setWidth(double value) {#setWidth-double-}
```
public final void setWidth(double value)
```


Sets displayed width of visual object.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | double | displayed width of visual object. |

