**Inheritance:**
java.lang.Object, [com.aspose.imaging.fileformats.opendocument.OdObject](../../com.aspose.imaging.fileformats.opendocument/odobject), [com.aspose.imaging.fileformats.opendocument.objects.graphic.OdGraphicObject](../../com.aspose.imaging.fileformats.opendocument.objects.graphic/odgraphicobject), [com.aspose.imaging.fileformats.opendocument.objects.graphic.OdStyledObject](../../com.aspose.imaging.fileformats.opendocument.objects.graphic/odstyledobject)
```
public class OdLine extends OdStyledObject
```

线对象
## 构造函数

| 构造函数 | 描述 |
| --- | --- |
| [OdLine(OdObject parent)](#OdLine-com.aspose.imaging.fileformats.opendocument.OdObject-) | 初始化 `OdPage` 类的新实例。 |
## 方法

| 方法 | 描述 |
| --- | --- |
| [getPoint1()](#getPoint1--) | 获取或设置 point1。 |
| [setPoint1(PointF value)](#setPoint1-com.aspose.imaging.PointF-) | 获取或设置 point1。 |
| [getPoint2()](#getPoint2--) | 获取或设置 point2。 |
| [setPoint2(PointF value)](#setPoint2-com.aspose.imaging.PointF-) | 获取或设置 point2。 |
### OdLine(OdObject parent) {#OdLine-com.aspose.imaging.fileformats.opendocument.OdObject-}
```
public OdLine(OdObject parent)
```


初始化 `OdPage` 类的新实例。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| parent | [OdObject](../../com.aspose.imaging.fileformats.opendocument/odobject) | 父级。 |

### getPoint1() {#getPoint1--}
```
public PointF getPoint1()
```


获取或设置 point1。

**Returns:**
[PointF](../../com.aspose.imaging/pointf) - The point1.
### setPoint1(PointF value) {#setPoint1-com.aspose.imaging.PointF-}
```
public void setPoint1(PointF value)
```


获取或设置 point1。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| value | [PointF](../../com.aspose.imaging/pointf) | 点1。 |

### getPoint2() {#getPoint2--}
```
public PointF getPoint2()
```


获取或设置 point2。

**Returns:**
[PointF](../../com.aspose.imaging/pointf) - The point2.
### setPoint2(PointF value) {#setPoint2-com.aspose.imaging.PointF-}
```
public void setPoint2(PointF value)
```


获取或设置 point2。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| value | [PointF](../../com.aspose.imaging/pointf) | 点2。 |

