Annotation.ResizeToContent Method ()

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: