Excel.SearchDirection enum
Especifica la dirección de la búsqueda
Comentarios
Usada por
Ejemplos
await Excel.run(async (context) => {
const sheet = context.workbook.worksheets.getItem("Sample");
const table = sheet.tables.getItem("ExpensesTable");
const searchRange = table.getRange();
// Search for cells that exactly match "TODO", ignoring case, and starting from the top-left of the range and going forward.
const searchCriteria: Excel.SearchCriteria = {
completeMatch: true,
matchCase: false,
searchDirection: Excel.SearchDirection.forward
};
const foundRange = searchRange.findOrNullObject("TODO", searchCriteria);
foundRange.load("address");
await context.sync();
if (foundRange.isNullObject) {
console.log("Text not found");
} else {
console.log(foundRange.address);
}
});
Campos
| backwards = "Backwards" | Buscar en orden inverso. |
| forward = "Forward" | Buscar en orden de avance. |