SectionExists property

Microsoft Visio Developer Reference

SectionExists property

   Example   

Determines whether a ShapeSheet section exists for a particular shape.

Version added

4.0

Syntax

intRet = object.SectionExists(section, fExistsLocally)

intRet

Integer. False (0) if section doesn't exist; otherwise, True (1).

object

Required. An expression that returns a Shape object.

section

Required Integer. The section index.

fExistsLocally

Required Integer. The scope of the search.

Remarks

If fExistsLocally is False (0), the SectionExists property returns True if the object either contains or inherits the section. If fExistsLocally is True (non-zero), the SectionExists property returns True only if the object contains the section locally; if the section is inherited, the SectionExists property returns False.

Constants representing sections are prefixed with visSection and are declared by the Visio type library in VisSectionIndices. You can also view a list of constants in the AddSection method.