Object: CommentSelectedElement
- Updated2024-09-12
- 1 minute(s) read
(Collections | Comment) > CommentSelectedElements > Object: CommentSelectedElement
Object: CommentSelectedElement
The CommentSelectedElement object provides a selected element from a comment in DIAdem REPORT.
The following example displays the selected elements of a comment:
| VBScript | Python |
Dim oMyReportObj, oMyReportObjects, oMySelection, sOutput sOutput = "" Set oMyReportObjects = Report.ActiveSheet.Objects For Each oMyReportObj in oMyReportObjects If oMyReportObj.ObjectType = eReportObjectComment Then Call MsgBoxDisp("Object name: " & oMyReportObj.Name & _ vbCrLf & "Number of selected elements: " & oMyReportObj.SelectedElements.Count) For Each oMySelection in oMyReportObj.SelectedElements sOutput = sOutput & "Element type: " & oMySelection.Type & vbCrLf Next End If Next Call MsgBoxDisp(sOutput)
Properties
Returned From
CommentSelectedElements.AddComment | CommentSelectedElements.Item