Annotation.ResizeToContent Method

Definition

Resizes an annotation according to its content size.

C#
public virtual void ResizeToContent();

Remarks

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

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

Note

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

Applies to

Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1