CanCloseEditor Method (IEditorActivity)Save PDFSave selected topicSave selected topic and subtopicsSave all topicsShareShare to emailCopy topic URLLast UpdatedAug 21, 20261 minute readHMI and SCADAOperations Management Interface 2026 Called when the editor is closed to allow the activity to prevent the closeSyntax Visual BasicC#C++/CLI 'Declaration Function CanCloseEditor() As Boolean bool CanCloseEditor() bool CanCloseEditor(); Return Valuefalse to prevent the editor closing, otherwise trueRequirementsTarget Platforms:Windows 11 Enterprise, IoT Enterprise 2024 LTSC 24H2 Windows Server 2022 LTSC Standard and Datacenter Windows Server 2025 LTSC Standard and Datacenter See AlsoReferenceIEditorActivity InterfaceIEditorActivity Members In This Topic
Called when the editor is closed to allow the activity to prevent the closeSyntax Visual BasicC#C++/CLI 'Declaration Function CanCloseEditor() As Boolean bool CanCloseEditor() bool CanCloseEditor(); Return Valuefalse to prevent the editor closing, otherwise trueRequirementsTarget Platforms:Windows 11 Enterprise, IoT Enterprise 2024 LTSC 24H2 Windows Server 2022 LTSC Standard and Datacenter Windows Server 2025 LTSC Standard and Datacenter See AlsoReferenceIEditorActivity InterfaceIEditorActivity Members
Called when the editor is closed to allow the activity to prevent the closeSyntax Visual BasicC#C++/CLI 'Declaration Function CanCloseEditor() As Boolean bool CanCloseEditor() bool CanCloseEditor(); Return Valuefalse to prevent the editor closing, otherwise trueRequirementsTarget Platforms:Windows 11 Enterprise, IoT Enterprise 2024 LTSC 24H2 Windows Server 2022 LTSC Standard and Datacenter Windows Server 2025 LTSC Standard and Datacenter See AlsoReferenceIEditorActivity InterfaceIEditorActivity Members
Called when the editor is closed to allow the activity to prevent the closeSyntax Visual BasicC#C++/CLI 'Declaration Function CanCloseEditor() As Boolean bool CanCloseEditor() bool CanCloseEditor(); Return Valuefalse to prevent the editor closing, otherwise trueRequirementsTarget Platforms:Windows 11 Enterprise, IoT Enterprise 2024 LTSC 24H2 Windows Server 2022 LTSC Standard and Datacenter Windows Server 2025 LTSC Standard and Datacenter See AlsoReferenceIEditorActivity InterfaceIEditorActivity Members