Export (0) Print
Expand All

Annotation.ResizeToContent Method

Resizes an annotation according to its content size.

Namespace:  System.Windows.Forms.DataVisualization.Charting
Assembly:  System.Windows.Forms.DataVisualization (in System.Windows.Forms.DataVisualization.dll)

public virtual void ResizeToContent()

Sets the annotation width and height to fit the specified text.

This method applies to TextAnnotation, RectangleAnnotation, EllipseAnnotation and CalloutAnnotation objects only.

NoteNote

 This method requires that the annotation be added to the AnnotationCollection to function correctly.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft