safetyAnalysisMgr.getCurrentSelection
Description
Examples
Retrieve Cell from Spreadsheet
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 in the spreadsheet.
myValue = safetyAnalysisMgr.getCurrentSelection
myValue = SpreadsheetCell with properties: Row: 2 Column: 2 ColumnLabel: 'Label2' Value: 'text in cell' Description: ''
Retrieve Cells from Spreadsheet
Suppose you have a spreadsheet open in the Safety Analysis
Manager, and you select two cells. Retrieve the SpreadsheetCell
objects in the spreadsheet.
myValue = safetyAnalysisMgr.getCurrentSelection
myValue = 1×2 SpreadsheetCell array with properties: Row Column ColumnLabel Value Description
Retrieve Rows from Spreadsheet
Since R2024b
Suppose you have a spreadsheet open in the Safety Analysis
Manager, and you select two rows. Retrieve the SpreadsheetRow
objects in the spreadsheet.
myValue = safetyAnalysisMgr.getCurrentSelection
myValue = 1×2 SpreadsheetRow array with properties: Index Cells Description
Output Arguments
value
— Spreadsheet cells
SpreadsheetCell
object array | SpreadsheetRow
object array
Spreadsheet cells, returned as a SpreadsheetCell
(since R2023b) or SpreadsheetRow
(since R2024b) object array.
Version History
Introduced in R2023bR2024b: SpreadsheetRow
Support
The function can also return SpreadsheetRow
objects.
See Also
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)