Annotation.ResizeToContent Method ()

.NET Framework (current version)
 

Resizes an annotation according to its content size.

Namespace:   System.Web.UI.DataVisualization.Charting
Assembly:  System.Web.DataVisualization (in System.Web.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.

System_CAPS_noteNote

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

.NET Framework
Available since 4.0
Return to top
Show: