Annotation.ResizeToContent 方法

定义

根据批注的内容大小调整批注的大小。Resizes an annotation according to its content size.

public:
 virtual void ResizeToContent();
public virtual void ResizeToContent ();
abstract member ResizeToContent : unit -> unit
override this.ResizeToContent : unit -> unit
Public Overridable Sub ResizeToContent ()

注解

设置批注的宽度和高度以适合指定的文本。Sets the annotation width and height to fit the specified text.

此方法仅适用 TextAnnotationRectangleAnnotationEllipseAnnotationCalloutAnnotation 对象。This method applies to TextAnnotation, RectangleAnnotation, EllipseAnnotation and CalloutAnnotation objects only.

备注

此方法要求将批注添加到 AnnotationCollection 以便正常工作。This method requires that the annotation be added to the AnnotationCollection to function correctly.

适用于