Label Property

A String type property. The label of a custom property.

Applies to: CustomProp object

Syntax

[[Let] labelStrRet = ] object.Label

[Let] object.Label = labelStrSet

The Label property syntax has these parts:

Part Description
object Required. An expression that returns a CustomProp object.
labelStrRet Optional. A String type variable.
labelStrSet Required. An expression that returns a String value.

 

Example

This example demonstrates working with the CustomProp object.

Dim MyShape As Shape, MyProperty as  CustomProp

' Create a Shape
MyShape = thisDoc.ActivePage.DrawRect(100,100,1000,1000)
' Create custom properties for MyShape MyProperty = MyShape.AddCustomProp()
' Working with the properties of MyProperty MyProperty.Label = "IP"
MyProperty.Prompt = "TCP/IP address"
MyProperty.Type = 3
MyProperty.Format = "192.168.0.1;192.168.0.2;192.168.0.3"
MyProperty.Value = "192.168.0.1"
MyProperty.Invisible = FALSE
MyProperty.Verify = TRUE