Please, a sample code snippet to get the line items in an Estimate, Sales Order, or Invoice

Please, a sample code snippet to get the line items in an Estimate, Sales Order, or Invoice

Please,  a sample code snippet to get the line items in an Estimate, Sales Order, or Invoice