**Inheritance:**
java.lang.Object
```
public class OdGraphicStyle
```

开放文档的图形样式。
## 构造函数

| 构造函数 | 描述 |
| --- | --- |
| [OdGraphicStyle()](#OdGraphicStyle--) |  |
## 方法

| 方法 | 描述 |
| --- | --- |
| [getBrush()](#getBrush--) | 获取画刷。 |
| [setBrush(OdBrush value)](#setBrush-com.aspose.imaging.fileformats.opendocument.objects.brush.OdBrush-) | 画笔。 |
| [getPen()](#getPen--) | 获取笔。 |
| [getFont()](#getFont--) | 获取字体。 |
| [getTextColor()](#getTextColor--) | 获取或设置文本的颜色。 |
| [setTextColor(int value)](#setTextColor-int-) | 获取或设置文本的颜色。 |
| [getTextAlign()](#getTextAlign--) | 获取文本对齐方式。 |
| [setTextAlign(int value)](#setTextAlign-int-) | 设置文本对齐方式。 |
| [getLineHeight()](#getLineHeight--) | 获取或设置行的高度。 |
| [setLineHeight(int value)](#setLineHeight-int-) | 获取或设置行的高度。 |
| [getTransformInfo()](#getTransformInfo--) | 获取变换信息。 |
| [getStartMarker()](#getStartMarker--) | 获取或设置起始标记。 |
| [setStartMarker(OdMarker value)](#setStartMarker-com.aspose.imaging.fileformats.opendocument.objects.graphic.OdMarker-) | 获取或设置起始标记。 |
| [getEndMarker()](#getEndMarker--) | 获取或设置结束标记。 |
| [setEndMarker(OdMarker value)](#setEndMarker-com.aspose.imaging.fileformats.opendocument.objects.graphic.OdMarker-) | 获取或设置结束标记。 |
| [getStartMarkerWidth()](#getStartMarkerWidth--) | 获取或设置标记的起始宽度。 |
| [setStartMarkerWidth(float value)](#setStartMarkerWidth-float-) | 获取或设置标记的起始宽度。 |
| [getEndMarkerWidth()](#getEndMarkerWidth--) | 获取或设置标记的结束宽度。 |
| [setEndMarkerWidth(float value)](#setEndMarkerWidth-float-) | 获取或设置标记的结束宽度。 |
| [getOpacity()](#getOpacity--) | 获取或设置不透明度。 |
| [setOpacity(int value)](#setOpacity-int-) | 获取或设置不透明度。 |
| [getSpaceBefore()](#getSpaceBefore--) | 获取或设置前置间距。 |
| [setSpaceBefore(float value)](#setSpaceBefore-float-) | 获取或设置前置间距。 |
| [getPaddingTop()](#getPaddingTop--) | 获取或设置顶部内边距。 |
| [setPaddingTop(float value)](#setPaddingTop-float-) | 获取或设置顶部内边距。 |
| [getPaddingLeft()](#getPaddingLeft--) | 获取或设置左侧内边距。 |
| [setPaddingLeft(float value)](#setPaddingLeft-float-) | 获取或设置左侧内边距。 |
| [getPaddingRight()](#getPaddingRight--) | 获取或设置右侧内边距。 |
| [setPaddingRight(float value)](#setPaddingRight-float-) | 获取或设置右侧内边距。 |
| [getPaddingBottom()](#getPaddingBottom--) | 获取或设置底部内边距。 |
| [setPaddingBottom(float value)](#setPaddingBottom-float-) | 获取或设置底部内边距。 |
| [getMarginBottom()](#getMarginBottom--) | 获取或设置底部外边距。 |
| [setMarginBottom(float value)](#setMarginBottom-float-) | 获取或设置底部外边距。 |
| [getMarginTop()](#getMarginTop--) | 获取或设置顶部外边距。 |
| [setMarginTop(float value)](#setMarginTop-float-) | 获取或设置顶部外边距。 |
| [getStartGuide()](#getStartGuide--) | 获取或设置起始指南。 |
| [setStartGuide(float value)](#setStartGuide-float-) | 获取或设置起始指南。 |
| [getEndGuide()](#getEndGuide--) | 获取或设置结束指南。 |
| [setEndGuide(float value)](#setEndGuide-float-) | 获取或设置结束指南。 |
| [getMeasureLineDistance()](#getMeasureLineDistance--) | 获取或设置测量线距离。 |
| [setMeasureLineDistance(float value)](#setMeasureLineDistance-float-) | 获取或设置测量线距离。 |
| [getStylePosition()](#getStylePosition--) | 获取或设置样式位置。 |
| [setStylePosition(float value)](#setStylePosition-float-) | 获取或设置样式位置。 |
| [copy()](#copy--) | 复制此实例。 |
### OdGraphicStyle() {#OdGraphicStyle--}
```
public OdGraphicStyle()
```


### getBrush() {#getBrush--}
```
public final OdBrush getBrush()
```


获取画刷。

值：画笔。

**Returns:**
[OdBrush](../../com.aspose.imaging.fileformats.opendocument.objects.brush/odbrush) - the brush.
### setBrush(OdBrush value) {#setBrush-com.aspose.imaging.fileformats.opendocument.objects.brush.OdBrush-}
```
public final void setBrush(OdBrush value)
```


画笔。

值：画笔。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| value | [OdBrush](../../com.aspose.imaging.fileformats.opendocument.objects.brush/odbrush) | 画刷。 |

### getPen() {#getPen--}
```
public OdPen getPen()
```


获取笔。

**Returns:**
[OdPen](../../com.aspose.imaging.fileformats.opendocument.objects.pen/odpen) - The pen.
### getFont() {#getFont--}
```
public OdFont getFont()
```


获取字体。

**Returns:**
[OdFont](../../com.aspose.imaging.fileformats.opendocument.objects.font/odfont) - The font.
### getTextColor() {#getTextColor--}
```
public int getTextColor()
```


获取或设置文本的颜色。

**Returns:**
int - 文本的颜色。
### setTextColor(int value) {#setTextColor-int-}
```
public void setTextColor(int value)
```


获取或设置文本的颜色。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 值 | int | 文本的颜色。 |

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


获取文本对齐方式。

**Returns:**
int - 文本对齐方式。
### setTextAlign(int value) {#setTextAlign-int-}
```
public final void setTextAlign(int value)
```


设置文本对齐方式。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 值 | int | 文本对齐方式。 |

### getLineHeight() {#getLineHeight--}
```
public int getLineHeight()
```


获取或设置行的高度。

**Returns:**
int - 行的高度。
### setLineHeight(int value) {#setLineHeight-int-}
```
public void setLineHeight(int value)
```


获取或设置行的高度。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 值 | int | 行的高度。 |

### getTransformInfo() {#getTransformInfo--}
```
public OdTransformInfo getTransformInfo()
```


获取变换信息。

**Returns:**
[OdTransformInfo](../../com.aspose.imaging.fileformats.opendocument.objects/odtransforminfo) - The transform information.
### getStartMarker() {#getStartMarker--}
```
public OdMarker getStartMarker()
```


获取或设置起始标记。

**Returns:**
[OdMarker](../../com.aspose.imaging.fileformats.opendocument.objects.graphic/odmarker) - The start marker.
### setStartMarker(OdMarker value) {#setStartMarker-com.aspose.imaging.fileformats.opendocument.objects.graphic.OdMarker-}
```
public void setStartMarker(OdMarker value)
```


获取或设置起始标记。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| value | [OdMarker](../../com.aspose.imaging.fileformats.opendocument.objects.graphic/odmarker) | 起始标记。 |

### getEndMarker() {#getEndMarker--}
```
public OdMarker getEndMarker()
```


获取或设置结束标记。

**Returns:**
[OdMarker](../../com.aspose.imaging.fileformats.opendocument.objects.graphic/odmarker) - The end marker.
### setEndMarker(OdMarker value) {#setEndMarker-com.aspose.imaging.fileformats.opendocument.objects.graphic.OdMarker-}
```
public void setEndMarker(OdMarker value)
```


获取或设置结束标记。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| value | [OdMarker](../../com.aspose.imaging.fileformats.opendocument.objects.graphic/odmarker) | 结束标记。 |

### getStartMarkerWidth() {#getStartMarkerWidth--}
```
public float getStartMarkerWidth()
```


获取或设置标记的起始宽度。

**Returns:**
float - 标记的起始宽度。
### setStartMarkerWidth(float value) {#setStartMarkerWidth-float-}
```
public void setStartMarkerWidth(float value)
```


获取或设置标记的起始宽度。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 值 | float | 标记的起始宽度。 |

### getEndMarkerWidth() {#getEndMarkerWidth--}
```
public float getEndMarkerWidth()
```


获取或设置标记的结束宽度。

**Returns:**
float - 标记的结束宽度。
### setEndMarkerWidth(float value) {#setEndMarkerWidth-float-}
```
public void setEndMarkerWidth(float value)
```


获取或设置标记的结束宽度。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 值 | float | 标记的结束宽度。 |

### getOpacity() {#getOpacity--}
```
public int getOpacity()
```


获取或设置不透明度。

**Returns:**
int - 不透明度。
### setOpacity(int value) {#setOpacity-int-}
```
public void setOpacity(int value)
```


获取或设置不透明度。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 值 | int | 不透明度。 |

### getSpaceBefore() {#getSpaceBefore--}
```
public float getSpaceBefore()
```


获取或设置前置间距。

**Returns:**
float - 前置间距。
### setSpaceBefore(float value) {#setSpaceBefore-float-}
```
public void setSpaceBefore(float value)
```


获取或设置前置间距。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 值 | float | 前置间距。 |

### getPaddingTop() {#getPaddingTop--}
```
public float getPaddingTop()
```


获取或设置顶部内边距。

**Returns:**
float - 顶部内边距。
### setPaddingTop(float value) {#setPaddingTop-float-}
```
public void setPaddingTop(float value)
```


获取或设置顶部内边距。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 值 | float | 顶部内边距。 |

### getPaddingLeft() {#getPaddingLeft--}
```
public float getPaddingLeft()
```


获取或设置左侧内边距。

**Returns:**
float - 左侧内边距。
### setPaddingLeft(float value) {#setPaddingLeft-float-}
```
public void setPaddingLeft(float value)
```


获取或设置左侧内边距。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 值 | float | 左侧内边距。 |

### getPaddingRight() {#getPaddingRight--}
```
public float getPaddingRight()
```


获取或设置右侧内边距。

**Returns:**
float - 右侧内边距。
### setPaddingRight(float value) {#setPaddingRight-float-}
```
public void setPaddingRight(float value)
```


获取或设置右侧内边距。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 值 | float | 右侧内边距。 |

### getPaddingBottom() {#getPaddingBottom--}
```
public float getPaddingBottom()
```


获取或设置底部内边距。

**Returns:**
float - 底部填充。
### setPaddingBottom(float value) {#setPaddingBottom-float-}
```
public void setPaddingBottom(float value)
```


获取或设置底部内边距。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 值 | float | 底部填充。 |

### getMarginBottom() {#getMarginBottom--}
```
public float getMarginBottom()
```


获取或设置底部外边距。

**Returns:**
float - 底部外边距。
### setMarginBottom(float value) {#setMarginBottom-float-}
```
public void setMarginBottom(float value)
```


获取或设置底部外边距。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 值 | float | 底部外边距。 |

### getMarginTop() {#getMarginTop--}
```
public float getMarginTop()
```


获取或设置顶部外边距。

**Returns:**
float - 顶部外边距。
### setMarginTop(float value) {#setMarginTop-float-}
```
public void setMarginTop(float value)
```


获取或设置顶部外边距。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 值 | float | 顶部外边距。 |

### getStartGuide() {#getStartGuide--}
```
public float getStartGuide()
```


获取或设置起始指南。

**Returns:**
float - 起始导向。
### setStartGuide(float value) {#setStartGuide-float-}
```
public void setStartGuide(float value)
```


获取或设置起始指南。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 值 | float | 起始导向。 |

### getEndGuide() {#getEndGuide--}
```
public float getEndGuide()
```


获取或设置结束指南。

**Returns:**
float - 结束导向。
### setEndGuide(float value) {#setEndGuide-float-}
```
public void setEndGuide(float value)
```


获取或设置结束指南。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 值 | float | 结束导向。 |

### getMeasureLineDistance() {#getMeasureLineDistance--}
```
public float getMeasureLineDistance()
```


获取或设置测量线距离。

**Returns:**
float - 测量线距离。
### setMeasureLineDistance(float value) {#setMeasureLineDistance-float-}
```
public void setMeasureLineDistance(float value)
```


获取或设置测量线距离。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 值 | float | 测量线距离。 |

### getStylePosition() {#getStylePosition--}
```
public float getStylePosition()
```


获取或设置样式位置。

**Returns:**
float - 样式位置。
### setStylePosition(float value) {#setStylePosition-float-}
```
public void setStylePosition(float value)
```


获取或设置样式位置。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 值 | float | 样式位置。 |

### copy() {#copy--}
```
public OdGraphicStyle copy()
```


复制此实例。

**Returns:**
[OdGraphicStyle](../../com.aspose.imaging.fileformats.opendocument.objects/odgraphicstyle) - Gets the copy of this instance.
