Format Property

A String value. Gets or sets the formatting of a custom property.

Applies to objects: CustomProp

Syntax

[[Let] RetVal = ] object.Format

[Let] object.Format = SetVal

The Format property syntax has these parts:

Part Description
object A reference to an instance of the object.
RetVal A String type variable.
SetVal A String type variable.

Remarks

The Format property is only effective when the Type property value is a fixed list or a variable list.The Format property contains a list of possible values, separated with ";" (semicolon).

Example

This example demonstrates working with the CustomProp object.

Dim MyShape As Shape, MyProperty as  CustomProp

' Create 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

 

See Also

CustomProp Object, Document Object