<κλάση header="doc-nav" aria-label="Πλοήγηση τεκμηρίωσης"> Τεκμηρίωση HotXLS <κλάση nav="doc-links"> Περιεχόμενα Αρχική Επισκόπηση TGridToXLS IXLSWorkbook <κλάση div="nav topic-quick-nav" aria-label="Topic shortcuts"> Αρχική Περιεχόμενα Επισκόπηση

Delete μέθοδος

<κλάση div="indent"> <κλάση div="txt"> Deletes a cell or a range of cells from the Worksheet

Σύνταξη

<κλάση div="indent"> <κλάση div="txt"> function Delete(Shift: OleVariant): OleVariant; <κλάση table="synd"> <κλάση td="syni">Shift <κλάση td="synid">OleVariant. Καθορίζει how to shift cells to replace deleted cells. Can be one of the following XlDeleteShiftDirection constants: xlShiftToLeft or xlShiftUp

Παράδειγμα

<κλάση div="indent"> <κλάση div="txt"> This example deletes row 3 from sheet one
<κλάση pre="code"> Workbook.Sheets[1].Range['A3', 'A3'].EntireRow.Delete(xlShiftUp); <κλάση footer="reference-footer">Copyright © 2010-2026 losLab Software