Description

A read/write name string property to be used for display purposes.

Property type

A String value.  

Syntax

object.DisplayName [= value]

The DisplayName Property syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McObject.
valueA String value.

Remarks

Only named objects may have a non-empty DisplayName. If the DisplayName property has never been assigned to, then it will be the same as the object's Name property (or an empty string if the object is unnamed).

If you assign an empty string to DisplayName, then the DisplayName will again become the same as the Name property.

The assigned DisplayName is truncated at 1023 characters.

Exceptions

Attempting to assign a DisplayName for an unnamed object is illegal.