CalloutAnnotation 类

定义

表示标注批注。Represents a callout annotation.

public ref class CalloutAnnotation : System::Windows::Forms::DataVisualization::Charting::TextAnnotation
public class CalloutAnnotation : System.Windows.Forms.DataVisualization.Charting.TextAnnotation
type CalloutAnnotation = class
    inherit TextAnnotation
Public Class CalloutAnnotation
Inherits TextAnnotation
继承

注解

标注批注是在注释位置和定位点之间绘制连接的唯一批注。A callout annotation is the only annotation that draws a connection between the annotation position and the anchor point. 此类还可以显示文本并自动计算其所需的大小。This class can also display text and automatically calculate its required size.

支持不同的标注样式。Different callout styles are supported.

构造函数

CalloutAnnotation()

初始化 CalloutAnnotation 类的新实例。Initializes a new instance of the CalloutAnnotation class.

属性

Alignment

获取或设置批注的内容对齐方式。Gets or sets the content alignment of an annotation.

(继承自 Annotation)
AllowAnchorMoving

获取或设置一个标志,该标志指定是否允许最终用户使用鼠标移动批注定位点。Gets or sets a flag that specifies whether the end user is allowed to move the annotation anchor using a mouse.

(继承自 Annotation)
AllowMoving

获取或设置一个标志,该标志指定是否允许最终用户使用鼠标移动批注。Gets or sets a flag that specifies whether the end user is allowed to move an annotation using a mouse.

(继承自 Annotation)
AllowPathEditing

获取或设置一个标志,该标志指定是否允许最终用户使用鼠标移动多边形批注点。Gets or sets a flag that specifies whether the end user is allowed to move the points of a polygon annotation using a mouse.

(继承自 Annotation)
AllowResizing

获取或设置一个标志,该标志指定是否允许最终用户使用鼠标调整批注的大小。Gets or sets a flag that specifies whether the end user is allowed to resize an annotation using a mouse.

(继承自 Annotation)
AllowSelecting

获取或设置一个标志,该标志指定是否允许最终用户使用鼠标选择批注。Gets or sets a flag that specifies whether the end user is allowed to select an annotation using a mouse.

(继承自 Annotation)
AllowTextEditing

获取或设置一个标志,该标志指定当最终用户双击批注中的文本时是否可以编辑这些文本。Gets or sets a flag that specifies whether the text in an annotation may be edited when the end user double clicks the text.

(继承自 Annotation)
AnchorAlignment

获取或设置批注相对于定位点的位置对齐方式。Gets or sets the annotation position alignment to the anchor point.

AnchorDataPoint

获取或设置批注所定位到的数据点。Gets or sets the data point to which an annotation is anchored.

(继承自 Annotation)
AnchorDataPointName

获取或设置批注所定位到的数据点的名称。Gets or sets the name of a data point to which an annotation is anchored.

(继承自 Annotation)
AnchorOffsetX

获取或设置批注的 X 位置相对于定位点的偏移量。Gets or sets the offset that the X-position of the annotation has from the anchor point.

AnchorOffsetY

获取或设置批注的 Y 位置相对于定位点的偏移量。Gets or sets the offset that the Y-position of the annotation has from the anchor point.

AnchorX

获取或设置批注所定位到的 X 坐标。Gets or sets the X coordinate to which the annotation is anchored.

(继承自 Annotation)
AnchorY

获取或设置批注所定位到的 Y 坐标。Gets or sets the Y coordinate to which the annotation is anchored.

(继承自 Annotation)
AnnotationGroup

获取批注所属的组(如果有)。Gets the group, if any, to which the annotation belongs.

(继承自 Annotation)
AnnotationType

获取或设置批注类型名称。Gets or sets the annotation type name. 仅供内部使用,不得另作他用。For internal use, should not be used.

AxisX

获取或设置批注所附加到的 X 轴。Gets or sets the X axis to which an annotation is attached.

(继承自 Annotation)
AxisXName

获取或设置批注所附加到的 X 轴的名称。Gets or sets the name of the X axis to which an annotation is attached.

(继承自 Annotation)
AxisY

获取或设置批注所附加到的 Y 轴。Gets or sets the Y axis to which an annotation is attached.

(继承自 Annotation)
AxisYName

获取或设置批注所附加到的 Y 轴的名称。Gets or sets the name of the Y axis which an annotation is attached to.

(继承自 Annotation)
BackColor

获取或设置批注的背景色。Gets or sets the background color of the annotation.

BackGradientStyle

获取或设置批注的背景渐变样式。Gets or sets the annotation background gradient style.

BackHatchStyle

获取或设置批注的背景阴影样式。Gets or sets the background hatch style of the annotation.

BackSecondaryColor

获取或设置批注背景的辅助颜色。Gets or sets the secondary color for the annotation background.

Bottom

获取或设置批注位置的下边界。Gets or sets the bottom boundary of an annotation position.

(继承自 Annotation)
CalloutAnchorCap

获取或设置标注线条定位点端的样式。Gets or sets the style of the callout line anchor cap.

CalloutStyle

获取或设置批注的标注样式。Gets or sets the annotation callout style.

ClipToChartArea

获取或设置批注所剪辑到的图表区域的名称。Gets or sets the name of the chart area to which an annotation is clipped.

(继承自 Annotation)
Font

获取或设置批注文本的字体。Gets or sets the font for the annotation text.

(继承自 TextAnnotation)
ForeColor

获取或设置批注的文本颜色。Gets or sets the text color of an annotation.

(继承自 Annotation)
Height

获取或设置批注的高度。Gets or sets the height of an annotation.

(继承自 Annotation)
IsMultiline

获取或设置一个指示批注文本是否为多行的标志。Gets or sets a flag that indicates whether the annotation text is multiline.

(继承自 TextAnnotation)
IsSelected

获取或设置用于确定是否已选择批注的标志。Gets or sets a flag that determines if an annotation is selected.

(继承自 Annotation)
IsSizeAlwaysRelative

获取或设置一个标志,该标志指定是否始终用相对图表坐标来定义批注的大小。Gets or sets a flag that specifies whether the size of an annotation is always defined in relative chart coordinates.

(继承自 Annotation)
LineColor

获取或设置批注的线条颜色。Gets or sets the annotation line color.

LineDashStyle

获取或设置批注的线条样式。Gets or sets the annotation line style.

LineWidth

获取或设置批注的线条宽度。Gets or sets the line width of the annotation.

Name

获取或设置批注的唯一名称。Gets or sets the unique name of an annotation.

(继承自 Annotation)
Right

获取或设置批注的右边界位置。Gets or sets the right boundary position of an annotation.

(继承自 Annotation)
ShadowColor

获取或设置批注阴影的颜色。Gets or sets the color of an annotation's shadow.

(继承自 Annotation)
ShadowOffset

获取或设置批注阴影的大小。Gets or sets the size of an annotation's shadow.

(继承自 Annotation)
SmartLabelStyle

获取或设置批注的智能标签样式。Gets or sets the smart label style of an annotation.

(继承自 Annotation)
Tag

获取或设置与此图表元素关联的对象。Gets or sets an object associated with this chart element.

(继承自 ChartElement)
Text

获取或设置批注的文本。Gets or sets the text of the annotation.

(继承自 TextAnnotation)
TextStyle

获取或设置批注的文本样式。Gets or sets the text style of an annotation.

(继承自 Annotation)
ToolTip

获取或设置批注的工具提示文本。Gets or sets the tooltip text for an annotation.

(继承自 Annotation)
Visible

获取或设置指定批注是否可见的标志。Gets or sets a flag that specifies whether an annotation is visible.

(继承自 Annotation)
Width

获取或设置批注的宽度(以像素为单位)。Gets or sets the width, in pixels, of an annotation.

(继承自 Annotation)
X

获取或设置批注的 X 坐标。Gets or sets the X coordinate of an annotation.

(继承自 Annotation)
Y

获取或设置批注的 Y 坐标。Gets or sets the Y coordinate of the annotation.

(继承自 Annotation)
YAxisName

获取或设置批注所附加到的 Y 轴的名称。Gets or sets the name of the Y axis to which an annotation is attached.

(继承自 Annotation)

方法

BeginPlacement()

使最终用户开始使用鼠标放置批注。Begins the end user placement of an annotation using the mouse.

(继承自 Annotation)
BeginTextEditing()

使最终用户开始编辑批注文本。Begins editing of the annotation text by an end-user.

(继承自 TextAnnotation)
BringToFront()

将某个批注置于所有批注的前面。Brings an annotation to the front of all annotations.

(继承自 Annotation)
Dispose()

释放由 ChartElement 占用的资源。Releases the resources used by the ChartElement.

(继承自 ChartElement)
Dispose(Boolean)

释放非托管资源和(可选)托管资源。Releases unmanaged resources and, optionally, managed resources.

(继承自 Annotation)
EndPlacement()

使用户结束放置批注。Ends user placement of an annotation.

(继承自 TextAnnotation)
Equals(Object)

确定指定的 Object 是否等于当前 ChartElementDetermines whether the specified Object is equal to the current ChartElement.

(继承自 ChartElement)
GetHashCode()

返回特定类型的哈希算法。Returns a hash function for a particular type.

(继承自 ChartElement)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ResizeToContent()

根据批注的内容大小调整批注的大小。Resizes an annotation according to its content size.

(继承自 Annotation)
SendToBack()

将某个批注置于所有批注的后面。Sends an annotation to the back of all the annotations.

(继承自 Annotation)
SetAnchor(DataPoint)

将某个批注定位到指定的数据点。Anchors an annotation to the specified data point.

(继承自 Annotation)
SetAnchor(DataPoint, DataPoint)

将某个批注定位到两个数据点。Anchors an annotation to two data points.

(继承自 Annotation)
StopTextEditing()

使最终用户停止编辑批注文本。Stops end-user editing of the annotation text.

(继承自 TextAnnotation)
ToString()

返回表示当前 Object 的字符串。Returns a string that represents the current Object.

(继承自 ChartElement)

适用于