GetProperty Method Example

The following example retrieves the value of the Caption property of the Text object Text1.

Dim vValue As Variant

Text1.GetProperty "Caption", vValue

The following example retrieves the value of the FillStyle property of the Rectangle object Rect1.

Dim vValue As Variant

Rect1.GetProperty "FillStyle", vValue