## GraphicContext class

保存当前图形控制参数。 这些参数定义了图形运算符执行的全局框架。

```csharp
public class GraphicContext : ICloneable
```

## 构造函数

| 姓名 | 描述 |
| --- | --- |
| [GraphicContext](graphiccontext/)() | 初始化一个新的实例`GraphicContext`类. |

## 特性

| 姓名 | 描述 |
| --- | --- |
| virtual [CharacterSpacing](../../aspose.html.rendering/graphiccontext/characterspacing/) { get; set; } | 设置或获取字符间距。 |
| virtual [FillBrush](../../aspose.html.rendering/graphiccontext/fillbrush/) { get; set; } | 设置或获取用于填充路径内部的画笔对象。 |
| virtual [Font](../../aspose.html.rendering/graphiccontext/font/) { get; set; } | 设置或获取用于呈现文本的真实字体对象。 |
| virtual [FontSize](../../aspose.html.rendering/graphiccontext/fontsize/) { get; set; } | 设置或获取文本字体大小。 |
| virtual [FontStyle](../../aspose.html.rendering/graphiccontext/fontstyle/) { get; set; } | 设置或获取文本字体样式。 |
| virtual [LineCap](../../aspose.html.rendering/graphiccontext/linecap/) { get; set; } | 设置或获取指定任何被描边的开放路径的端点形状的代码。 |
| virtual [LineDashOffset](../../aspose.html.rendering/graphiccontext/linedashoffset/) { get; set; } | 设置或获取当前虚线模式的相位偏移。 |
| virtual [LineDashPattern](../../aspose.html.rendering/graphiccontext/linedashpattern/) { get; set; } | 设置或获取描边路径时要使用的破折号模式的描述。 |
| virtual [LineDashStyle](../../aspose.html.rendering/graphiccontext/linedashstyle/) { get; set; } | Sets of 获取描边路径的虚线样式。 |
| virtual [LineJoin](../../aspose.html.rendering/graphiccontext/linejoin/) { get; set; } | 设置或获取指定描边路径的连接段之间关节形状的代码。 |
| virtual [LineWidth](../../aspose.html.rendering/graphiccontext/linewidth/) { get; set; } | 设置或获取要描边的路径的厚度。 |
| virtual [MiterLimit](../../aspose.html.rendering/graphiccontext/miterlimit/) { get; set; } | 设置或获取描边路径的斜接线连接的最大长度。 此参数限制线段以锐角连接时产生的“尖峰”长度。 |
| virtual [StrokeBrush](../../aspose.html.rendering/graphiccontext/strokebrush/) { get; set; } | 设置或获取用于描边路径的画笔对象。 |
| virtual [TextInfo](../../aspose.html.rendering/graphiccontext/textinfo/) { get; } | 得到一个[`TextInfo`](../textinfo/)包含有关渲染文本信息的对象。 |
| virtual [TransformationMatrix](../../aspose.html.rendering/graphiccontext/transformationmatrix/) { get; set; } | 设置或获取转换矩阵。 |

## 方法

| 姓名 | 描述 |
| --- | --- |
| virtual [Clone](../../aspose.html.rendering/graphiccontext/clone/)() | 使用与现有实例相同的属性值创建 GraphicContext 类的新实例。 |
| virtual [Transform](../../aspose.html.rendering/graphiccontext/transform/)(Matrix) | 乘以指定矩阵修改当前变换矩阵 |

### 也可以看看

* 命名空间 [Aspose.Html.Rendering](../../aspose.html.rendering/)
* 部件 [Aspose.HTML](../../)


