Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Description

Excerpt

Freezes panes in a worksheet or returns the cell at which the panes are split. Set the property to a Cell object. The cell specified in Worksheet.FreezePanes is the first unfrozen cell; freeze panes will be applied to all rows above the cell and all columns to the left of the cell.

Freeze panes can only be applied to the first few rows or first few columns of a worksheet. This is a limitation of Excel and not ExcelWriter.

{signature}
{remarks}
Freeze panes can only be applied to the first few rows or first few columns of a worksheet. This is a limitation of Excel and not ExcelWriter.


{web-only:.}!Excel_FreezePane_Options.png!{web-only}

{remarks}
{example}{code:csharp|title=C#}

          //--- Get FreezePanes
          Cell freezeCell = ws.FreezePanes;

          //--- Set FreezePanes for rows 1-5 and columns A, B
          ws.FreezePanes = ws.Cells["C5"];
        
{code}
{code:vb.net
|title=vb.net
}

          '--- Get FreezePanes
          Dim freezeCell As Cell = ws.FreezePanes

          '--- Set FreezePanes for rows 1-5 and columns A, B
          ws.FreezePanes = ws.Cells("C5");
        {code}

{example}
Signature
C#C#
Wiki Markup
{description}
{excerpt}Freezes panes in a worksheet or returns the cell at which the panes are split. Set the property to a [Cell|Cell] object. The cell specified in {{Worksheet.FreezePanes}} is the first unfrozen cell; freeze panes will be applied to all rows above the cell and all columns to the left of the cell. {excerpt}
{signature:C#}
 public Cell FreezePanes{ get; set; }
Signature
{signature}{signature:vb.net
vb.net
}
Public Property FreezePanes() As Cell
Remarks
Web only
..

Image Removed

Example
Code Block
csharpcsharp
titleC#
Code Block
vb.nettitle