IPane.Pens [Property][Get]
- Last UpdatedJul 18, 2023
- 1 minute read
Gets a reference to the pens collection object containing the pens for this pane.
Defined As
-
[VBA] Object Pens
-
[Cicode] OBJECT Pens
-
[C++] IPens* Pens
Execution Result
If the property get succeeds the return value will be Success. If the pane is deleted the return value will be GeneralFailure.
Calling Syntax
This example assumes there is a valid Pane object to be passed into the example methods.
[VBA]
Sub Example(pane As Object)
Dim pens As Object
`Getting Property value
Set pens = pane.Pens
End Sub
[Cicode]
FUNCTION Example(OBJECT hPane)
// Getting property value
OBJECT hPens = _ObjectGetProperty(hPane, "Pens");
END