←Select platform

SetCellBorder Method

Summary

Sets the cell border style to a specified border with a customized type.

Syntax

C#
C++/CLI
Python
public void SetCellBorder( 
   BorderType borderType, 
   CellBorder border 
) 
public:  
   void SetCellBorder( 
      BorderType^ borderType, 
      CellBorder^ border 
   ) 
def SetCellBorder(self,borderType,border): 

Parameters

borderType

The BorderType enumeration value specifying which border of the cell to modify.

border

An instance of the CellBorder class that defines the style of the border. This parameter allows for detailed customization of the border's appearance.

Remarks

This method provides a way to individually customize the borders of a cell. This is useful for highlighting certain cells, creating visually distinct sections within a table, or simply for aesthetic customization. The method uses the BorderType enumeration to specify which border to modify, and the CellBorder class to define the new border's characteristics.

Requirements

Target Platforms

See Also

CellStyle Class

CellStyle Members

Leadtools.Document.LEADOffice.Sheet Namespace

Help Version 23.0.2024.4.15
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Document.LEADOffice Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.