다음을 통해 공유


Attachment.SizeToFit Method (Access)

You can use the SizeToFit method to size a control so it fits the text or image that it contains.

Version Information

추가된 버전: Access 2007

Syntax

.SizeToFit

A variable that represents an Attachment object.

Remarks

For example, you can apply the SizeToFit method to a command button that is too small to display all the text in its Caption property.

You can apply the SizeToFit method to controls only in form Design view or report Design view.

The SizeToFit method will make a control larger or smaller, depending on the size of the text or image it contains.

You can use the SizeToFit method in conjunction with the CreateControl method to size new controls that you have created in code.

참고 항목

개념

Attachment Object Members

Attachment Object