InhibitSelectChange property

Microsoft Visio Developer Reference

InhibitSelectChange property

See also   Example   

Determines whether shapes are selected in the drawing window.

Version added

2002

Syntax

boolRet = object.InhibitSelectChange
object.InhibitSelectChange = boolExpression

boolRet

Boolean. True if shapes are not selected; otherwise, False.

object

Required. An expression that returns an Application object.

boolExpression

Required Boolean. True to not select shapes; otherwise, False.

Remarks

Use the InhibitSelectChange property to control shape selection and increase performance when dropping a series of shapes in the drawing window. When the InhibitSelectChange property is True, Visio does not select any shapes after they are dropped. Your solution, however, can select shapes.

Additionally, Visio attempts to preserve currently selected shapes whenever possible, unless shapes are deselected by the solution.

If a program neglects to turn the InhibitSelectChange property off (False) after turning it on, the Visio instance will turn it back off when the user performs an operation.