Interior

更新时间:
复制 MD 格式

This topic describes the API operations that are related to the Interior object of table documents.

Interior

Range.Interior

Queries the internal properties of a specified range.

  • Syntax

    expression.Range.Interior

    expression: the document type application object.

  • Example

    async function example() {
      await instance.ready();
    
      const app = instance.Application;
      
      // Query a range object.
      const range = await app.Range('A1');
    
      // Query the interior properties of the range.
      const interior = await range.Interior;
    }

Properties

Range.Interior.Color

Queries the interior color of a specified range by using the Color property.

  • Syntax

    expression.Range.Interior.Color

    expression: the document type application object.

  • Example

    async function example() {
      await instance.ready();
    
      const app = instance.Application;
      
      // Query a range object.
      const range = await app.Range('A1');
    
      // Query the interior properties of the range.
      const interior = await range.Interior;
    
      // Set the interior color of the range.
      interior.Color = '#e1ff02';
    
      setTimeout(async () => {
        // Query the interior color after 3000 ms.
        const color = await interior.Color;
        console.log(color);
      }, 3000);
    }