Xceed Workbooks for .NET v2.0 Documentation
RemovePageBreakColumn Method
Example 


Xceed.Workbooks.NET Assembly > Xceed.Workbooks.NET Namespace > PageLayout Class : RemovePageBreakColumn Method
The index that corresponds to the target Column; the page break at the left of this Column will be removed.
Removes the page break at the left of a specific Column
Syntax
'Declaration
 
Public Sub RemovePageBreakColumn( _
   ByVal column As Integer _
) 
'Usage
 
Dim instance As PageLayout
Dim column As Integer
 
instance.RemovePageBreakColumn(column)
public void RemovePageBreakColumn( 
   int column
)

Parameters

column
The index that corresponds to the target Column; the page break at the left of this Column will be removed.
Example
public static void PageMarginsAndPageBreaks()
{
  using( var workbook = Workbook.Create( PageLayoutSample.PageLayoutSampleOutputDirectory + @"PageMarginsAndBreaks.xlsx" ))
    {
      // Gets the first worksheet; a workbook always contains at least 1 worksheet.
      var worksheet = workbook.Worksheets[0];
	  
      // Adds a title.
      worksheet.Cells["B1"].Value = "Page Margins and Breaks";
      worksheet.Cells["B1"].Style.Font = new Font() {Bold = true, Size = 15.5d};

      // Inserts page breaks using columns as a reference point for the insertion.
      worksheet.PageLayout.InsertPageBreakColumn(11);
      worksheet.Pagelayout.InsertPageBreakColumn(50);
	  
      // Removes a specific page break.
      worksheet.PageLayout.RemovePageBreakColumn(11);
	
      // Saves workbook to disk.
      workbook.Save();
      Console.WriteLine( "/tCreated:PageMarginsAndBreaks.xlsx/n" );
    }
}
Requirements

Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

PageLayout Class
PageLayout Members