Application.ScreenUpdating property (Visio)
Determines whether the screen is updated (redrawn) during a series of actions. Read/write.
Syntax
expression.ScreenUpdating
expression A variable that represents an Application object.
Return value
Integer
Remarks
Use the ScreenUpdating property to increase performance during a series of actions. For example, you can turn off screen updating while a series of shapes are created so that the screen is not redrawn after each shape appears. Then you can turn screen updating on to update the screen.
If you send a large number of commands to a Microsoft Visio instance while screen updating is turned off, the Visio instance may redisplay the screen occasionally to flush its buffers.
If a program neglects to turn screen updating on after turning it off, the Visio instance turns screen updating back on when a user performs an operation.
Note
The ShowChanges and ScreenUpdating properties are similar in that they are both designed to increase performance during a series of actions, but they work differently. Setting the ShowChanges property also sets the ScreenUpdating property, but setting the ScreenUpdating property does not set the ShowChanges property. For a comparison of these two properties, see the ShowChanges property.
Example
This Microsoft Visual Basic code snippet shows how to use the ScreenUpdating property.
'Turn off screen updating to improve performance during
'the series of actions that follow.
Visio.Application.ScreenUpdating = False
'Drop several shapes.
'Set the shapes' text.
'Connect the shapes.
'Format the connectors.
'Turn screen updating on again when the actions are complete.
Visio.Application.ScreenUpdating = True
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기