RectangleAnnotation 类 
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示矩形批注。
public ref class RectangleAnnotation : System::Windows::Forms::DataVisualization::Charting::TextAnnotationpublic class RectangleAnnotation : System.Windows.Forms.DataVisualization.Charting.TextAnnotationtype RectangleAnnotation = class
    inherit TextAnnotationPublic Class RectangleAnnotation
Inherits TextAnnotation- 继承
- 派生
注解
除了仅显示为矩形外,矩形批注还可以在矩形内显示文本。 因此,可以使用矩形或包含其内部文本的矩形进行批注。
构造函数
| RectangleAnnotation() | 初始化 AnnotationPathPoint 类的新实例。 | 
属性
| Alignment | 获取或设置批注的内容对齐方式。(继承自 Annotation) | 
| AllowAnchorMoving | 获取或设置一个标志,该标志指定是否允许最终用户使用鼠标移动批注定位点。(继承自 Annotation) | 
| AllowMoving | 获取或设置一个标志,该标志指定是否允许最终用户使用鼠标移动批注。(继承自 Annotation) | 
| AllowPathEditing | 获取或设置一个标志,该标志指定是否允许最终用户使用鼠标移动多边形批注点。(继承自 Annotation) | 
| AllowResizing | 获取或设置一个标志,该标志指定是否允许最终用户使用鼠标调整批注的大小。(继承自 Annotation) | 
| AllowSelecting | 获取或设置一个标志,该标志指定是否允许最终用户使用鼠标选择批注。(继承自 Annotation) | 
| AllowTextEditing | 获取或设置一个标志,该标志指定当最终用户双击批注中的文本时是否可以编辑这些文本。(继承自 Annotation) | 
| AnchorAlignment | 获取或设置批注相对于定位点的对齐方式。(继承自 Annotation) | 
| AnchorDataPoint | 获取或设置批注所定位到的数据点。(继承自 Annotation) | 
| AnchorDataPointName | 获取或设置批注所定位到的数据点的名称。(继承自 Annotation) | 
| AnchorOffsetX | 获取或设置批注的 X 位置相对于定位点的偏移量。(继承自 Annotation) | 
| AnchorOffsetY | 获取或设置批注的 Y 位置相对于定位点的偏移量。(继承自 Annotation) | 
| AnchorX | 获取或设置批注所定位到的 X 坐标。(继承自 Annotation) | 
| AnchorY | 获取或设置批注所定位到的 Y 坐标。(继承自 Annotation) | 
| AnnotationGroup | 获取批注所属的组(如果有)。(继承自 Annotation) | 
| AnnotationType | 获取批注类型。 | 
| AxisX | 获取或设置批注所附加到的 X 轴。(继承自 Annotation) | 
| AxisXName | 获取或设置批注所附加到的 X 轴的名称。(继承自 Annotation) | 
| AxisY | 获取或设置批注所附加到的 Y 轴。(继承自 Annotation) | 
| AxisYName | 获取或设置批注所附加到的 Y 轴的名称。(继承自 Annotation) | 
| BackColor | 获取或设置批注的背景色。 | 
| BackGradientStyle | 获取或设置批注的渐变样式。 | 
| BackHatchStyle | 获取或设置批注背景的阴影样式。 | 
| BackSecondaryColor | 获取或设置批注背景的辅助颜色。 | 
| Bottom | 获取或设置批注位置的下边界。(继承自 Annotation) | 
| ClipToChartArea | 获取或设置批注所剪辑到的图表区域的名称。(继承自 Annotation) | 
| Font | 获取或设置批注文本的字体。(继承自 TextAnnotation) | 
| ForeColor | 获取或设置批注的文本颜色。(继承自 Annotation) | 
| Height | 获取或设置批注的高度。(继承自 Annotation) | 
| IsMultiline | 获取或设置一个指示批注文本是否为多行的标志。(继承自 TextAnnotation) | 
| IsSelected | 获取或设置用于确定是否已选择批注的标志。(继承自 Annotation) | 
| IsSizeAlwaysRelative | 获取或设置一个标志,该标志指定是否始终用相对图表坐标来定义批注的大小。(继承自 Annotation) | 
| LineColor | 获取或设置批注的线条颜色。 | 
| LineDashStyle | 获取或设置批注的线条样式。 | 
| LineWidth | 获取或设置批注的线条宽度(以像素为单位)。 | 
| Name | 获取或设置批注的唯一名称。(继承自 Annotation) | 
| Right | 获取或设置批注的右边界位置。(继承自 Annotation) | 
| ShadowColor | 获取或设置批注阴影的颜色。(继承自 Annotation) | 
| ShadowOffset | 获取或设置批注阴影的大小。(继承自 Annotation) | 
| SmartLabelStyle | 获取或设置批注的智能标签样式。(继承自 Annotation) | 
| Tag | 获取或设置与此图表元素关联的对象。(继承自 ChartElement) | 
| Text | 获取或设置批注的文本。(继承自 TextAnnotation) | 
| TextStyle | 获取或设置批注的文本样式。(继承自 Annotation) | 
| ToolTip | 获取或设置批注的工具提示文本。(继承自 Annotation) | 
| Visible | 获取或设置指定批注是否可见的标志。(继承自 Annotation) | 
| Width | 获取或设置批注的宽度(以像素为单位)。(继承自 Annotation) | 
| X | 获取或设置批注的 X 坐标。(继承自 Annotation) | 
| Y | 获取或设置批注的 Y 坐标。(继承自 Annotation) | 
| YAxisName | 获取或设置批注所附加到的 Y 轴的名称。(继承自 Annotation) | 
方法
| BeginPlacement() | 使最终用户开始使用鼠标放置批注。(继承自 Annotation) | 
| BeginTextEditing() | 使最终用户开始编辑批注文本。(继承自 TextAnnotation) | 
| BringToFront() | 将某个批注置于所有批注的前面。(继承自 Annotation) | 
| Dispose() | 释放由 ChartElement 占用的资源。(继承自 ChartElement) | 
| Dispose(Boolean) | 释放非托管资源和(可选)托管资源。(继承自 Annotation) | 
| EndPlacement() | 使用户结束放置批注。(继承自 TextAnnotation) | 
| Equals(Object) | 确定指定的 Object 是否等同于当前的 ChartElement。(继承自 ChartElement) | 
| GetHashCode() | 返回特定类型的哈希算法。(继承自 ChartElement) | 
| GetType() | 获取当前实例的 Type。(继承自 Object) | 
| MemberwiseClone() | 创建当前 Object 的浅表副本。(继承自 Object) | 
| ResizeToContent() | 根据批注的内容大小调整批注的大小。(继承自 Annotation) | 
| SendToBack() | 将某个批注置于所有批注的后面。(继承自 Annotation) | 
| SetAnchor(DataPoint) | 将某个批注定位到指定的数据点。(继承自 Annotation) | 
| SetAnchor(DataPoint, DataPoint) | 将某个批注定位到两个数据点。(继承自 Annotation) | 
| StopTextEditing() | 使最终用户停止编辑批注文本。(继承自 TextAnnotation) | 
| ToString() | 返回表示当前 Object 的字符串。(继承自 ChartElement) |