Skip to content

Latest commit

 

History

History
53 lines (42 loc) · 863 Bytes

method-set.md

File metadata and controls

53 lines (42 loc) · 863 Bytes

setCol

// setCol(val: string | number): this

/**
 * Sets a value to the start column
 */

// Example
new A1('B2:C4').setCol(1);  // A2:C4
new A1('B2:C4').setCol('1');// A2:C4
new A1('B2:C4').setCol('A');// A2:C4

setLastCol

// setLastCol(val: string | number): this

/**
 * Sets a value to the end column
 */

// Example
new A1('B2:C4').setLastCol(6);  // B2:F4
new A1('B2:C4').setLastCol('6');// B2:F4
new A1('B2:C4').setLastCol('F');// B2:F4

setRow

// setRow(val: string | number): this

/**
 * Sets a value to the start row
 */

// Example
new A1('B2:C4').setRow(3);  // B3:C4
new A1('B2:C4').setRow('3');// B3:C4

setLastRow

// setLastRow(val: string | number): this

/**
 * Sets a value to the end row
 */

// Example
new A1('B2:C4').setLastRow(7);  // B2:C7
new A1('B2:C4').setLastRow('7');// B2:C7