←Select platform

GetColumnWidthInPixel Method

Summary

Retrieves the width of a specified column within the sheet.

Syntax

C#
C++/CLI
Python
public int GetColumnWidthInPixel( 
   int columnIndex 
) 
public:  
   Int32 GetColumnWidthInPixel( 
      Int32 columnIndex 
   ) 
def GetColumnWidthInPixel(self,columnIndex): 

Parameters

columnIndex

An int specifying the zero-based index of the column whose width is to be retrieved.

Return Value

An integer representing the width of the specified column in pixels.

Remarks

The ability to obtain column widths in pixel units is essential for tasks that require precise control over sheet layout and presentation. Pixel measurements provide a consistent unit of measure across different display environments, supporting accurate layout decisions.

Requirements

Target Platforms

See Also

Sheet Class

Sheet 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.