Main Content

safetyAnalysisMgr.getCurrentSelection

Get current cell in Safety Analysis Manager spreadsheet

Since R2023b

Description

example

value = safetyAnalysisMgr.getCurrentSelection returns the currently selected items in the Safety Analysis Manager.

Examples

collapse all

Suppose you have a spreadsheet open in the Safety Analysis Manager, and you select the cell in the second row and second column. Retrieve the SpreadsheetCell object of the spreadsheet.

myValue = safetyAnalysisMgr.getCurrentSelection
myValue = 

  SpreadsheetCell with properties:

            Row: 2
         Column: 2
    ColumnLabel: 'Label2'
          Value: 'text in cell'
    Description: ''

Suppose you have a spreadsheet open in the Safety Analysis Manager, and you select two cells. Retrieve the SpreadsheetCell object of the spreadsheet.

myValue = safetyAnalysisMgr.getCurrentSelection
myValue = 

  1×2 SpreadsheetCell array with properties:

    Row
    Column
    ColumnLabel
    Value
    Description

Output Arguments

collapse all

Spreadsheet cells, returned as a SpreadsheetCell object array.

Version History

Introduced in R2023b