Skip to main content
A newer version of this page is available. .

TextAnnotation Members

Represents a text annotation.

Constructors

Name Description
TextAnnotation() Initializes a new instance of the TextAnnotation class with the default settings.
TextAnnotation(String, String) Initializes a new instance of the TextAnnotation class with the specified name and text.
TextAnnotation(String) Initializes a new instance of the TextAnnotation class with the specified name.

Properties

Name Description
AnchorPoint Specifies the type of the annotation‘s anchor point. Inherited from Annotation.
AnchorPointSerializable For internal use. This property is used to support serialization of the anchor point. Inherited from Annotation.
Angle Specifies the angle by which the annotation‘s shape is rotated. Inherited from Annotation.
Antialiasing Obsolete. Gets or sets whether anti-aliasing is applied to the annotation‘s text.
AutoSize Specifies whether the annotation should be auto-resized to fit its text.
BackColor Specifies the annotation‘s background color. Inherited from Annotation.
Border Gets the annotation‘s border settings. Inherited from Annotation.
ConnectorStyle Specifies the connector style of the annotation. Inherited from Annotation.
EnableAntialiasing Gets or sets whether anti-aliasing (smoothing) is applied to the annotation‘s text.
FillStyle Gets the annotation‘s background fill style. Inherited from Annotation.
Font Gets or sets the font used to display the annotation‘s contents.
Height Specifies the height (in pixels) of the annotation. Inherited from Annotation.
IsDisposed Gets a value indicating whether the control has been disposed of. Inherited from ChartElement.
LabelMode Specifies whether the annotation should be cut off if it doesn’t fit into the diagram’s dimensions. Inherited from Annotation.
Lines Gets or sets the lines of text within a multiline annotation.
Name Gets or sets the name of the chart element. Inherited from ChartElementNamed.
Padding Specifies the internal space between the annotation‘s content and its edge, in pixels. Inherited from Annotation.
RuntimeAnchoring Specifies whether it’s allowed to re-locate the annotation’s anchor point at runtime. Inherited from Annotation.
RuntimeMoving Specifies whether it’s allowed to re-locate the annotation at runtime. Inherited from Annotation.
RuntimeResizing Specifies whether it’s allowed to resize the annotation at runtime. Inherited from Annotation.
RuntimeRotation Specifies whether it’s allowed to rotate the annotation at runtime. Inherited from Annotation.
Shadow Gets the annotation‘s shadow settings. Inherited from Annotation.
ShapeFillet Specifies the fillet when the annotation’s shape is RoundedRectangle. Inherited from Annotation.
ShapeKind Specifies the shape kind of the annotation. Inherited from Annotation.
ShapePosition Specifies how the annotation‘s position is defined - relative to its container corners, or to its anchor point. Inherited from Annotation.
ShapePositionSerializable For internal use. This property is used to support serialization of the shape position. Inherited from Annotation.
Tag Gets or sets the object that contains data related to the chart element. Inherited from ChartElement.
Text Gets or sets the annotation‘s text.
TextAlignment Specifies the alignment of the annotation‘s text.
TextColor Gets or sets the annotation‘s text color.
TypeNameSerializable Gets the string value used to support serialization of the annotation type. Inherited from Annotation.
Visible Specifies whether the annotation is visible. Inherited from Annotation.
Width Specifies the width (in pixels) of the annotation. Inherited from Annotation.
ZOrder Gets or sets the Z-Order of the annotation. Inherited from Annotation.

Methods

Name Description
Assign(ChartElement) Copies all the settings from the TextAnnotation object passed as the parameter.
Clone() Creates a copy of the current ChartElement object. Inherited from ChartElement.
Dispose() Disposes of the ChartElement object. Inherited from ChartElement.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetType() Gets the Type of the current instance. Inherited from Object.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
ToString() Returns the textual representation of the named chart element. Inherited from ChartElementNamed.
See Also